Build tests with magic if WITH_MAGIC != 0

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
Sebastian Ramacher 2013-02-22 15:58:13 +01:00
parent 0a92abe720
commit 9134040300

View File

@ -21,6 +21,12 @@ else
ZSOURCE = $(filter-out ../database-sqlite.c,$(ZOSOURCE))
endif
ifneq ($(WITH_MAGIC),0)
INCS += $(MAGIC_INC)
LIBS += $(MAGIC_LIB)
CPPFLAGS += -DWITH_MAGIC
endif
ZOBJECTS = ${ZSOURCE:.c=.o}
all: ${PROJECT}