Skip to content

Commit

Permalink
s1kd-brexcheck: Add SAXON_C_DIR make variable
Browse files Browse the repository at this point in the history
  • Loading branch information
kibook committed Jul 29, 2020
1 parent afe4b29 commit 52bbe74
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tools/s1kd-brexcheck/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ INSTALL_PREFIX=$(PREFIX)/bin
INSTALL=install -Ds

ifeq ($(BREXCHECK_XPATH_ENGINE),saxon)
ifeq ($(OS),Windows_NT)
SAXON_C_DIR=/cygdrive/c/Progra~1/Saxonica/SaxonHEC1.2.1
else
SAXON_C_DIR=/usr/lib
endif

SAXON_C_API=saxon/Saxon.C.API

SAXON_OBJECTS+=saxon/saxon.o
Expand All @@ -44,7 +50,7 @@ ifeq ($(BREXCHECK_XPATH_ENGINE),saxon)

SOURCE+=$(SAXON_OBJECTS)
CFLAGS+=-DUSE_SAXON
LDFLAGS+=-lstdc++ -lsaxonhec
LDFLAGS+=-lstdc++ -L$(SAXON_C_DIR) -lsaxonhec

ifneq ($(OSTYPE),msys)
LDFLAGS+=-ldl
Expand Down

0 comments on commit 52bbe74

Please sign in to comment.