forked from lordmundi/shuttleCP
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (23 loc) · 795 Bytes
/
Copy pathMakefile
File metadata and controls
33 lines (23 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Copyright 2013 Eric Messick (FixedImagePhoto.com/Contact)
# Change GPIO_SUPPORT to 0 to disable driving and reading of Raspi GPIO pins
#CFLAGS=-g -W -Wall -I /usr/local/include/nopoll -DGPIO_SUPPORT=1
CFLAGS=-O3 -W -Wall -I /usr/local/include/nopoll -DGPIO_SUPPORT=1
# You can also remove wiringPi from the LIBS if you are removing GPIO_SUPPORT
LIBS=-lwiringPi -lnopoll -lcurl
INSTALL_DIR=/usr/local/bin
OBJ=\
shuttlecp.o\
websocket.o\
led_control.o\
raspi_switches.o
all: shuttlecp
install: all
install shuttle shuttlecp ${INSTALL_DIR}
shuttlecp: ${OBJ}
gcc ${CFLAGS} ${OBJ} -o shuttlecp ${LIBS} -Wl,-rpath -Wl,/usr/local/lib
clean:
rm -f shuttlecp keys.h $(OBJ)
shuttlecp.o: shuttle.h
led_control.o: led_control.h
raspi_switches.o: raspi_switches.h
websocket.o: websocket.h