SujetTP3-2017: Makefile
File Makefile, 463 bytes (added by , 8 years ago) |
---|
Line | |
---|---|
1 | RPI?=20 |
2 | SRC=src |
3 | APP=lcd_user |
4 | DST=lacas/lab3 |
5 | |
6 | CFLAGS=-Wall -Wfatal-errors -O2 |
7 | LDFLAGS=-static -L$(LIB) -lgpio |
8 | |
9 | KERNELDIR = /dsk/l1/misc/linux-rpi-3.18.y |
10 | CROSSDIR = /users/enseig/franck/peri |
11 | CROSS_COMPILE = $(CROSSDIR)/arm-bcm2708hardfp-linux-gnueabi/bin/bcm2708hardfp- |
12 | |
13 | all: $(APP).x upload |
14 | |
15 | $(APP).x: $(APP).c |
16 | $(CROSS_COMPILE)gcc -o $@ $< -I$(INC) -O2 -static |
17 | |
18 | upload: |
19 | scp -P50$(RPI) $(APP).x pi@132.227.102.36:$(DST) |
20 | |
21 | clean: |
22 | rm -f *.o *.x *~ |