]> Pileus Git - ~andy/csm213a-hw/blob - hw2/makefile
Cleanup comments and move test.cpp
[~andy/csm213a-hw] / hw2 / makefile
1 PROG  = mbed
2 UART0 = /dev/ttyACM0
3 UART1 = /dev/ttyACM1
4 OBJS  = main.o serial_irq.o serial_dma.o timer_dma.o
5
6 CPPFLAGS =
7 LDFLAGS  = -lm
8
9 default: info run
10
11 control: control.c messages.h
12         gcc -Wall -o $@ $<
13
14 run: all control install.sh
15         @./install.sh $(PROG).bin
16         @./control $(UART0) 1
17         @./control $(UART1) 2 sync
18
19 terms:
20         term /dev/ttyACM0 &
21         term /dev/ttyACM1 &
22
23 dist:
24         zip mbed.zip makefile ../common.mk *.{c,cpp,h} */*.{cpp,.h}
25
26 -include ../config.mk
27 -include ../common.mk