summaryrefslogtreecommitdiff
path: root/bootloader/midi/test/Makefile
diff options
context:
space:
mode:
authorbzztbomb <skinny@knowhere.net>2011-04-05 19:57:16 -0700
committerbzztbomb <skinny@knowhere.net>2011-04-05 19:57:16 -0700
commit73e16950d73578900d54f3470b57402a9e908c30 (patch)
tree4e24dd9b04bd432139c3ed61866459ac77e4024a /bootloader/midi/test/Makefile
parent6827a350052baf3999cfa336411f5ec89bb9e769 (diff)
Public firmware release.
Diffstat (limited to 'bootloader/midi/test/Makefile')
-rw-r--r--bootloader/midi/test/Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/bootloader/midi/test/Makefile b/bootloader/midi/test/Makefile
new file mode 100644
index 0000000..03547b6
--- /dev/null
+++ b/bootloader/midi/test/Makefile
@@ -0,0 +1,28 @@
+CFLAGS += -I. -I../ -g -Wall -DDEBUG
+DUMMY_SRC = dummy_device.c ../midi.c ../midi_device.c ../bytequeue/bytequeue.c ../bytequeue/interrupt_setting.c
+DUMMY_OBJ = ${DUMMY_SRC:.c=.o}
+
+SYSEX_SRC = sysex_test.c ../sysex_tools.c
+SYSEX_OBJ = ${SYSEX_SRC:.c=.o}
+
+.c.o:
+ @echo CC $<
+ @$(CC) -c $(CFLAGS) -o $*.o $<
+
+dummy_test: clean $(DUMMY_OBJ)
+ @$(CC) -o dummy_test $(DUMMY_OBJ)
+
+sysex_test: clean $(SYSEX_OBJ)
+ @$(CC) -o sysex_test $(SYSEX_OBJ)
+
+run_tests: sysex_test dummy_test
+ ./dummy_test
+ ./sysex_test
+
+all: run_tests
+
+#-------------------
+clean:
+ rm -f *.o *.map *.out *.hex *.tar.gz ../*.o ../bytequeue/*.o dummy_test sysex_test
+#-------------------
+