Skip to content

Commit

Permalink
Modify Makefile to use the version defined in $JAVA_HOME
Browse files Browse the repository at this point in the history
  • Loading branch information
JaimeChavarriaga committed Oct 19, 2017
1 parent 8bc673a commit 0bbd8cf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Makefile for jcgroup

ifndef JAVA_HOME
JAVA_HOME=$(shell readlink -f /usr/bin/javac | sed "s:bin/javac::")
endif
CC=gcc
CFLAGS=-fPIC -lc -shared -I/usr/lib/jvm/java-1.6.0/include/ -I/usr/lib/jvm/java-1.6.0/include/linux/
CFLAGS=-fPIC -lc -shared -I${JAVA_HOME}/include/ -I${JAVA_HOME}/include/linux/
OUTPUT=libThreads.so

SOURCES_DIR=src/main/native
Expand Down

0 comments on commit 0bbd8cf

Please sign in to comment.