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