SujetTP3-2017: Makefile

File Makefile, 463 bytes (added by franck, 8 years ago)

Makefile de compilation à modifier

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