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)) ZSOURCE = $(filter-out ../database-sqlite.c,$(ZOSOURCE))
endif endif
ifneq ($(WITH_MAGIC),0)
INCS += $(MAGIC_INC)
LIBS += $(MAGIC_LIB)
CPPFLAGS += -DWITH_MAGIC
endif
ZOBJECTS = ${ZSOURCE:.c=.o} ZOBJECTS = ${ZSOURCE:.c=.o}
all: ${PROJECT} all: ${PROJECT}