]> Pileus Git - ~andy/csm213a-hw/blobdiff - hw2/makefile
Make control script more configurable
[~andy/csm213a-hw] / hw2 / makefile
index fef6181cf37059e3ce8b0b7a3eac18ed075289df..36f60c86d70f0e8370bd42c8c656c2588b928440 100644 (file)
@@ -9,7 +9,7 @@ CPPFLAGS =
 LDFLAGS  = -lm
 
 # Common rules
-all: mbed.elf tester.elf control
+all: mbed.bin tester.bin control
 
 terms:
        test -c $(UART0) && term $(UART0) &
@@ -24,9 +24,9 @@ mbed.elf: main.o main_time.o main_emit.o main_comm.o \
 
 mbed-run: mbed.bin control install.sh
        @./install.sh $<
-       @./control $(UART0) 1
-       @./control $(UART0) 2
-       @./control $(UART0) 2 sync
+       @./control -d1    $(UART0)
+       @./control -d2    $(UART0)
+       @./control -d2 -y $(UART0)
 
 # Testing mbed (mbed3)
 tester.elf: tester.o serial_irq.o timer_dma.o messages.o