]> mj.ucw.cz Git - home-hw.git/blob - influx/Makefile
BSB daemon: Temperature is signed
[home-hw.git] / influx / Makefile
1 PC=pkg-config
2 UCW_CFLAGS := $(shell $(PC) --cflags libucw)
3 UCW_LIBS := $(shell $(PC) --libs libucw)
4
5 CURL_CFLAGS := $(shell curl-config --cflags)
6 CURL_LIBS := $(shell curl-config --libs)
7
8 CFLAGS=$(UCW_CFLAGS) $(CURL_CFLAGS) -std=gnu99
9 LDFLAGS=$(UCW_LIBS) $(CURL_LIBS) -lmosquitto
10
11 all: burrow-influx
12
13 burrow-influx: burrow-influx.c
14
15 install: all
16         install burrow-influx /usr/local/sbin/