p≡p for Java
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.6 KiB

  1. JAVA_PKG_BASENAME=foundation.pEp.jniadapter.test
  2. JAVA_PKG_BASEPATH=foundation/pEp/jniadapter/test
  3. REPOROOT=../..
  4. DIST_DIR=$(REPOROOT)/dist
  5. JAVA_CWD=../../../../../
  6. JAVA_RESOURCES_DIR=../resources
  7. JAVA_PEP_HOME_DIR_ALICE=$(JAVA_RESOURCES_DIR)/per-user-dirs/alice
  8. JAVA_PEP_HOME_DIR_BOB=$(JAVA_RESOURCES_DIR)/per-user-dirs/bob
  9. JAVA_PEP_HOME_DIR_CAROL=$(JAVA_RESOURCES_DIR)/per-user-dirs/carol
  10. JAVA_PEP_HOME_DIR=$(JAVA_PEP_HOME_DIR_ALICE)
  11. PEP_HOME_DIR_ALICE=$(JAVA_CWD)$(JAVA_PEP_HOME_DIR_ALICE)
  12. PEP_HOME_DIR_BOB=$(JAVA_CWD)$(JAVA_PEP_HOME_DIR_BOB)
  13. PEP_HOME_DIR_CAROL=$(JAVA_CWD)$(JAVA_PEP_HOME_DIR_CAROL)
  14. PEP_HOME_DIR=$(PEP_HOME_DIR_ALICE)
  15. CLASSPATH=.:$(DIST_DIR)/pEp.jar
  16. LD_LIB_PATH=.:$(DIST_DIR)
  17. # Java cmd-line options
  18. JAVA_OPT_ASSERTIONS=-enableassertions
  19. JAVA_OPT_XCHECK=-Xcheck:jni
  20. # JAVA_OPT_REMOTE_DEBUGGER=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=localhost:5005 -cp $(CLASSPATH) -Djava.library.path=$(LD_LIB_PATH)
  21. JAVA_OPT_CLASSPATH=-cp $(CLASSPATH) -Djava.library.path=$(LD_LIB_PATH)
  22. JAVA_OPT_LIBARY_PATH=-Djava.library.path=$(LD_LIB_PATH)
  23. JAVA_OPTS=$(JAVA_OPT_ASSERTIONS) $(JAVA_OPT_XCHECK) $(JAVA_OPT_REMOTE_DEBUGGER) $(JAVA_OPT_CLASSPATH) $(JAVA_OPT_LIBARY_PATH)
  24. JAVA=java $(JAVA_OPTS)
  25. UTIL_SOURCES=$(wildcard ../utils/*.java)
  26. UTIL_CLASSES=$(subst .java,.class,$(UTIL_SOURCES))
  27. JAVA_CLASSES+=$(UTIL_CLASSES)
  28. PITYTEST_DIR=../../../pitytest
  29. ifdef ENGINE_LIB_PATH
  30. ifeq ($(PLATFORM),linux)
  31. ifndef LD_LIBRARY_PATH
  32. export LD_LIBRARY_PATH=$(ENGINE_LIB_PATH)
  33. endif
  34. else ifeq ($(PLATFORM),darwin)
  35. ifndef DYLD_LIBRARY_PATH
  36. export DYLD_LIBRARY_PATH=$(ENGINE_LIB_PATH)
  37. endif
  38. endif
  39. endif