From 190e74a80b8afed89c8f1404bb67b27345184cd1 Mon Sep 17 00:00:00 2001 From: heck Date: Thu, 12 Dec 2019 03:00:04 +0100 Subject: [PATCH] test/Makefile Add DYLD_ and LD_LIBRARY_PATH --- test/Makefile | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/test/Makefile b/test/Makefile index e3dc5b8..7f26a6b 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,15 +1,28 @@ +include ../Makefile.conf + +$(info If on Mac, make sure to disable SIP, or copy the libpEpEngine.dylib into here) +ifeq ($(BUILD_FOR),Linux) + ifndef LD_LIBRARY_PATH + export LD_LIBRARY_PATH=$(ENGINE_LIB_PATH) + endif +else ifeq ($(BUILD_FOR),Darwin) + ifndef DYLD_LIBRARY_PATH + export DYLD_LIBRARY_PATH=$(ENGINE_LIB_PATH) + endif +endif + CLASSPATH=.:../src VM=java -Xcheck:jni -Djava.library.path=../src #VM=lldb java -- -Xcheck:jni -Djava.library.path=../src +.PHONY: test clean + test: Testing.class SyncCallbacks.class HOME=$(PWD) CLASSPATH=$(CLASSPATH) time $(VM) Testing %.class: %.java CLASSPATH=$(CLASSPATH) javac $< -.PHONY: clean - clean: rm -f *.class rm -f *.log