Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

gdp / demo / 201501 / Makefile @ master

History | View | Annotate | Download (624 Bytes)

1
GDPROOT=	../..
2
LIBROOT=	${GDPROOT}
3
LIBADD=
4
LIBSEARCH=	-L${LIBROOT}/ep -L${LIBROOT}/gdp ${LIBADD}
5
LDFLAGS=	${LIBSEARCH} -lgdp -lep -levent -levent_pthreads -pthread \
6
		-lcrypto -ljansson -lwiringPi
7
INCADD=
8
INCS=		-I${GDPROOT} ${INCADD}
9

    
10
ALL=		pi-reader pi-writer ble-reader
11

    
12
all:		${ALL}
13

    
14
pi-reader:	pi-reader.o
15
	cc -o $@ pi-reader.o ${LDFLAGS}
16

    
17
pi-reader.o:	pi-reader.c
18
	cc -c ${INCS} pi-reader.c
19

    
20
pi-writer:	pi-writer.o
21
	cc -o $@ pi-writer.o ${LDFLAGS}
22

    
23
pi-writer.o:	pi-writer.c
24
	cc -c ${INCS} pi-writer.c
25

    
26
ble-reader:	ble-reader.o
27
	cc -o $@ ble-reader.o ${LDFLAGS}
28

    
29
ble-reader.o:	ble-reader.c
30
	cc -c ${INCS} ble-reader.c