import JIT settings to colvars library makefile

This commit is contained in:
Axel Kohlmeyer
2022-12-27 15:16:58 -05:00
parent 353f4cb361
commit 2a3d1a1ba5

View File

@ -63,9 +63,24 @@ COLVARS_SRCS = \
# Allow to selectively turn off Lepton
ifeq ($(COLVARS_LEPTON),no)
LEPTON_INCFLAGS =
else
LEPTON_INCFLAGS = -I../lepton/include -DLEPTON
# imported from ../lepton/Common.mk
ENABLE_JIT=0
ifeq ($(shell uname -m),x86_64)
ENABLE_JIT=1
endif
ifeq ($(shell uname -m),amd64)
ENABLE_JIT=1
endif
LEPTON_INCFLAGS = -I../lepton/include -DLEPTON -DLEPTON_BUILDING_STATIC_LIBRARY=1
ifeq ($(ENABLE_JIT),1)
LEPTON_INCLFLAGS += -I../lepton -DLEPTON_USE_JIT=1 -DASMJIT_BUILD_X86=1 -DASMJIT_STATIC=1 -DASMJIT_BUILD_RELEASE=1
endif
endif
COLVARS_OBJS = $(COLVARS_SRCS:.cpp=.o)