]> Pileus Git - ~andy/csm213a-hw/blobdiff - hw2/makefile
Cleanup and test messages and events
[~andy/csm213a-hw] / hw2 / makefile
index b32f808bd8aab647de4043adab4be95f2f069788..07982822dc6d5f9c0c50a8310a621a3e61e6e3f5 100644 (file)
@@ -1,18 +1,20 @@
-PROG = mbed
-UART = /dev/ttyACM0
-OBJS = main.o test.o serial_irq.o serial_dma.o timer_dma.o
+PROG  = mbed
+UART0 = /dev/ttyACM0
+UART1 = /dev/ttyACM1
+OBJS  = main.o test.o serial_irq.o serial_dma.o timer_dma.o
 
 CPPFLAGS =
 LDFLAGS  = -lm
 
 default: info run
 
-control: control.c
-       gcc -Wall -o control control.c
+control: control.c messages.h
+       gcc -Wall -o $@ $<
 
 run: all control install.sh
        @./install.sh $(PROG).bin
-       @./control $(UART)
+       @./control $(UART0) 0
+       @./control $(UART1) 1 sync
 
 terms:
        term /dev/ttyACM0 &