Also use system synctex in tests if possible

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
Sebastian Ramacher 2014-06-30 13:55:53 +02:00
parent 5a858846f7
commit a9d3d390ad

View file

@ -8,7 +8,7 @@ PROJECT = tests
SOURCE = tests.c $(wildcard test_*.c)
OBJECTS = ${SOURCE:.c=.o}
ZOSOURCE = $(filter-out ../main.c,$(wildcard ../*.c) $(wildcard ../synctex/*.c))
ZOSOURCE = $(filter-out ../main.c,$(wildcard ../*.c))
ifneq (${WITH_SQLITE},0)
INCS += $(SQLITE_INC)
@ -27,6 +27,27 @@ LIBS += $(MAGIC_LIB)
CPPFLAGS += -DWITH_MAGIC
endif
ifneq ($(WITH_SYSTEM_SYNCTEX),0)
INCS += $(SYNCTEX_INC)
LIBS += $(SYNCTEX_LIB)
else
INCS += $(ZLIB_INC)
LIBS += $(ZLIB_LIB)
ZSOURCE += $(wildcard ../synctex/*.c)
CPPFLAGS += -I../synctex
ifeq (,$(findstring -DSYNCTEX_VERBOSE=0,${CPPFLAGS}))
CPPFLAGS += -DSYNCTEX_VERBOSE=0
endif
endif
ifeq (,$(findstring -Isynctex,${CPPFLAGS}))
CPPFLAGS += -Isynctex
endif
ifeq (,$(findstring -DSYNCTEX_VERBOSE=0,${CPPFLAGS}))
CPPFLAGS += -DSYNCTEX_VERBOSE=0
endif
ZOBJECTS = ${ZSOURCE:.c=.o}
all: ${PROJECT}