]> Pileus Git - ~andy/csm213a-hw/blob - hw2/makefile
Debug PWM output
[~andy/csm213a-hw] / hw2 / makefile
1 PROG  = mbed
2 UART0 = /dev/ttyACM0
3 UART1 = /dev/ttyACM1
4 OBJS  = main.o test.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) 0
17         @sleep 0.0001
18         @./control $(UART1) 1 sync
19
20 terms:
21         term /dev/ttyACM0 &
22         term /dev/ttyACM1 &
23
24 dist:
25         zip mbed.zip makefile ../common.mk *.{c,cpp,h} */*.{cpp,.h}
26
27 -include ../config.mk
28 -include ../common.mk