Skip to content

Commit

Permalink
Merge pull request #13 from jserv/fix-jni-build
Browse files Browse the repository at this point in the history
Fix JNI build
  • Loading branch information
WEI, CHEN committed Mar 16, 2018
2 parents a8c5271 + ffd48bd commit fa4452f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ CFLAGS += \
LDFLAGS += -L$(OPENCL_LIB) -lOpenCL
endif

# FIXME: avoid hardcoded OS path
ifneq ("$(DISABLE_JNI)","1")
CFLAGS += \
CFLAGS_JNI = \
-I$(OPENJDK_PATH)/include \
-I$(OPENJDK_PATH)/include/linux
endif
Expand Down Expand Up @@ -75,6 +76,9 @@ $(OUT)/test_%.o: test/test_%.c
$(Q)$(CC) -o $@ $(CFLAGS) -c -MMD -MF $@.d $<

$(OUT)/jni/%.o: jni/%.c
$(VECHO) " CC\t$@\n"
$(Q)$(CC) -o $@ $(CFLAGS) $(CFLAGS_JNI) -c -MMD -MF $@.d $<

$(OUT)/trinary/%.o: $(SRC)/trinary/%.c
$(OUT)/hash/%.o: $(SRC)/hash/%.c
$(OUT)/%.o: $(SRC)/%.c
Expand Down

0 comments on commit fa4452f

Please sign in to comment.