Gordons Projects

--> Projects Top-Level GIT

Minor update to make sure it's all OK with wiringPi v2
[halloweenPi] / Makefile
1 #
2 # Makefile:
3 #       Halloween Pi!
4
5 #DEBUG  = -g -O0
6 DEBUG   = -O2
7 CC      = gcc
8 INCLUDE = -I/usr/local/include
9 CFLAGS  = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe
10
11 LDFLAGS = -L/usr/local/lib
12 LIBS    = -lwiringPi -lpthread
13
14 # Should not alter anything below this line
15 ###############################################################################
16
17 SRC     =       halloween.c ledPatterns.c ledControl.c
18
19 OBJ     =        $(SRC:.c=.o)
20
21 all:            halloween
22
23 halloween:      $(OBJ)
24         @echo [LD] $@
25         @$(CC) $(LDFLAGS) -o halloween $(OBJ) $(LIBS) $(LD2)
26
27 .c.o:
28         @echo [CC] $<
29         @$(CC) -c $(CFLAGS) $< -o $@
30
31 .PHONEY:        clean
32 clean:
33         rm -f $(OBJ) *~ core tags halloween *.bak
34
35 .PHONEY:        tags
36 tags:   $(SRC)
37         @echo [ctags]
38         @ctags $(SRC)
39
40 .PHONEY:        depend
41 depend:
42         makedepend -Y $(SRC)
43
44
45 # DO NOT DELETE
46
47 halloween.o: ledControl.h ledPatterns.h
48 ledPatterns.o: ledControl.h ledPatterns.h
49 ledControl.o: ledControl.h