recorder/Makefile

33 lines
933 B
Makefile
Raw Normal View History

2015-08-15 03:50:16 -07:00
include config.mk
LIBS = -lcurl -lmosquitto
2015-08-14 09:40:35 -07:00
CFLAGS=-Wall -Werror -g
2015-08-15 03:50:16 -07:00
ifneq ($(HAVE_REDIS),no)
CFLAGS += -DHAVE_REDIS=1
LIBS += -lhiredis
endif
2015-08-14 09:40:35 -07:00
all: ot-recorder #### ot-reader
ot-reader: ot-reader.c json.o utstring.h ghash.o mkpath.o jget.o
2015-08-15 03:50:16 -07:00
$(CC) $(CFLAGS) ot-reader.c -o ot-reader json.o ghash.o mkpath.o jget.o $(LIBS)
2015-08-14 09:40:35 -07:00
2015-08-14 23:14:34 -07:00
ot-recorder: ot-recorder.c json.o utarray.h utstring.h geo.o geohash.o mkpath.o file.o safewrite.o base64.o ghash.o config.h udata.h misc.o
2015-08-15 03:50:16 -07:00
$(CC) $(CFLAGS) ot-recorder.c -o ot-recorder json.o geo.o geohash.o mkpath.o file.o safewrite.o base64.o ghash.o misc.o $(LIBS)
2015-08-14 09:40:35 -07:00
geo.o: geo.h geo.c udata.h
geohash.o: geohash.h geohash.c udata.h
2015-08-15 03:41:22 -07:00
file.o: file.h file.c config.h misc.h
2015-08-14 09:40:35 -07:00
base64.o: base64.h base64.c
2015-08-15 03:41:22 -07:00
ghash.o: ghash.h ghash.c config.h udata.h misc.h
2015-08-14 09:40:35 -07:00
safewrite.o: safewrite.h safewrite.c
jget.o: jget.c jget.h json.h
2015-08-15 01:46:46 -07:00
misc.o: misc.c misc.h udata.h
2015-08-15 03:50:16 -07:00
clean:
rm -f *.o
clobber: clean
rm -f ot-recorder ocat