diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -11,13 +11,12 @@ HTTPTARGET = epghttpd HISTFILE = "HISTORY.h" BASELIBS += -lrt -lz -larchive -ldl -lcrypto -luuid -BASELIBS += $(shell mysql_config --libs_r) +BASELIBS += $(shell $(SQLCFG) --libs_r) BASELIBS += $(shell pkg-config --cflags --libs jansson) HLIB = -L./lib -lhorchi DLIBS = $(HLIB) $(BASELIBS) -lcurl $(shell pkg-config libxml-2.0 --libs) $(shell pkg-config libxslt --libs) -lexslt HTTPLIBS = $(HLIB) -lmicrohttpd $(BASELIBS) -lcurl $(shell pkg-config libxml-2.0 --libs) $(shell pkg-config libxslt --libs) -lexslt -ljpeg $(shell pkg-config imlib2 --libs) -CFLAGS += $(shell mysql_config --include) VERSION = $(shell grep 'define _VERSION ' $(HISTFILE) | awk '{ print $$3 }' | sed -e 's/[";]//g') ARCHIVE = $(TARGET)-$(VERSION) @@ -33,15 +32,15 @@ HLIBDEP = ./lib/libhorchi.a export DESTDIR ifdef GIT_REV - DEFINES += -DGIT_REV='"$(GIT_REV)"' + DEFINES += -DGIT_REV='"$(GIT_REV)"' endif ifdef SYSD_NOTIFY - ifdef SYSDLIB_210 - BASELIBS += $(shell pkg-config --libs libsystemd) - else - BASELIBS += $(shell pkg-config --libs libsystemd-daemon) - endif + ifdef SYSDLIB_210 + BASELIBS += $(shell pkg-config --libs libsystemd) + else + BASELIBS += $(shell pkg-config --libs libsystemd-daemon) + endif endif # object files |