]> Pileus Git - ~andy/csm213a-hw/blobdiff - hw2/makefile
Refactor main into separate files
[~andy/csm213a-hw] / hw2 / makefile
index aba2af875cb9ac92d1d3250800def469a482257f..8e8b2ee95b2bd38d2a8858dfd50ccd6938e881ab 100644 (file)
@@ -7,7 +7,7 @@ CPPFLAGS =
 LDFLAGS  = -lm
 
 # Common rules
-default: mbed-run
+default: all
 
 all: mbed.elf tester.elf control
 
@@ -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 $<