]> Pileus Git - ~andy/csm213a-hw/blobdiff - hw2/makefile
Refactor main into separate files
[~andy/csm213a-hw] / hw2 / makefile
index 11824a8e20aa1dd86a22b8b29ef2fa6088ea63da..8e8b2ee95b2bd38d2a8858dfd50ccd6938e881ab 100644 (file)
@@ -19,7 +19,8 @@ dist:
        zip mbed.zip makefile ../common.mk *.{c,cpp,h} */*.{cpp,.h}
 
 # Primary mbed (mbed1/mbed2)
-mbed.elf: main.o serial_irq.o serial_dma.o timer_dma.o messages.o
+mbed.elf: main.o main_time.o main_emit.o main_comm.o \
+       serial_irq.o serial_dma.o timer_dma.o messages.o
 
 mbed-run: mbed.bin control install.sh
        @./install.sh $<
@@ -27,7 +28,7 @@ mbed-run: mbed.bin control install.sh
        @./control $(UART1) 2 sync
 
 # Testing mbed (mbed3)
-tester.elf: tester.o
+tester.elf: tester.o serial_irq.o timer_dma.o messages.o
 
 tester-run: tester.bin install.sh
        @./install.sh $< /dev/sdb /mnt/usb