X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=hw2%2Fmakefile;h=54e987246accffe2a32c74d17a2d972e60f49192;hb=af693a35ec651f1264e5332d30eca558e07a188f;hp=e7c5b4006ffe77909e783aeed7958813a3f0dbb4;hpb=a9299548b2cae6dfe9050dd7d054c5496e5c07c3;p=~andy%2Fcsm213a-hw diff --git a/hw2/makefile b/hw2/makefile index e7c5b40..54e9872 100644 --- a/hw2/makefile +++ b/hw2/makefile @@ -1,3 +1,5 @@ +-include config.mk + # Common settings UART0 = /dev/ttyACM0 UART1 = /dev/ttyACM1 @@ -7,8 +9,6 @@ CPPFLAGS = LDFLAGS = -lm # Common rules -default: all - all: mbed.elf tester.elf control terms: @@ -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 +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