aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Mork <bjorn@mork.no>2019-05-24 10:42:01 +0200
committerBjørn Mork <bjorn@mork.no>2019-05-24 10:42:01 +0200
commit39943db5a583639d3482e107eed754e92429e6d2 (patch)
treea218641c962b14876acd0b4e2c2113f83c935311
parent13595f045002720966f1cdc8b7412476ec6b6fe5 (diff)
move all compiletime defs to CFLAGS
Signed-off-by: Bjørn Mork <bjorn@mork.no>
-rw-r--r--Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 86d9fb6..df5e6e2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,7 @@
VERSION := 0.01
-CC=gcc -g -DVERSION='"$(VERSION)"'
LDFLAGS=$(shell pkg-config --libs json-c) $(shell pkg-config --libs libmosquitto)
-CFLAGS=-Wall $(shell pkg-config --cflags json-c) $(shell pkg-config --cflags libmosquitto)
+CFLAGS=-Wall $(shell pkg-config --cflags json-c) $(shell pkg-config --cflags libmosquitto) -DVERSION='"$(VERSION)"' -DDEBUG -DWITH_TLS
BINARIES=obinsectd
@@ -12,5 +11,5 @@ all: $(BINARIES)
rm -f *.o *.so *.lo *~ $(BINARIES)
obinsectd: obinsectd.c
- $(CC) $(CFLAGS) -DDEBUG -DWITH_TLS $(LDFLAGS) -o $@ $^
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^