no jni check needed

This commit is contained in:
Matthew Kennedy 2023-02-28 03:26:26 -08:00
parent 1adc62deaf
commit d19b394439
1 changed files with 0 additions and 21 deletions

View File

@ -137,27 +137,6 @@ OD = $(TRGT)objdump
HEX = $(CP) -O ihex
BIN = $(CP) -O binary
ifndef JAVA_HOME
$(error JAVA_HOME is undefined - due to JNI integration unit tests depend on JAVA_HOME)
endif
ifneq (1,$(words [$(JAVA_HOME)]))
$(error JAVA_HOME $(JAVA_HOME) seems to contain spaces this would not work well. please use folder name without space often progra~1)
endif
AOPT = -fPIC -I$(JAVA_HOME)/include
ifeq ($(OS),Windows_NT)
# TODO: add validation to assert that we do not have Windows slash in JAVA_HOME variable
AOPT += -I$(JAVA_HOME)/include/win32
else
ifeq ($(IS_MAC),yes)
AOPT += -I$(JAVA_HOME)/include/darwin
else
AOPT += -I$(JAVA_HOME)/include/linux
endif
endif
# Define C warning options here
CWARN = -Wall -Wextra -Wstrict-prototypes -pedantic -Wmissing-prototypes -Wold-style-definition