Some checks failed
sm-rpc / build (Debug, aarch64-linux-gnu) (push) Failing after 13m15s
sm-rpc / build (Release, mipsel-linux-gnu) (push) Failing after 13m1s
sm-rpc / build (Release, host.gcc) (push) Failing after 13m14s
sm-rpc / build (Release, arm-linux-gnueabihf) (push) Failing after 13m35s
sm-rpc / build (Release, aarch64-linux-gnu) (push) Failing after 13m56s
sm-rpc / build (Debug, mipsel-linux-gnu) (push) Failing after 14m22s
sm-rpc / build (Debug, host.gcc) (push) Failing after 14m49s
sm-rpc / build (Debug, arm-linux-gnueabihf) (push) Failing after 15m13s
24 lines
572 B
Makefile
24 lines
572 B
Makefile
UNAME_S := $(shell uname -s)
|
|
|
|
ifeq ($(UNAME_S),Darwin)
|
|
|
|
JAVA_HOME=$(shell /usr/libexec/java_home)
|
|
|
|
all: libjdistorm.dylib
|
|
libjdistorm.dylib: jdistorm.c jdistorm.h
|
|
gcc -dynamiclib -o libjdistorm.dylib jdistorm.c -I ${JAVA_HOME}/include/ -I ${JAVA_HOME}/include/darwin/ -ldistorm3
|
|
|
|
endif
|
|
|
|
ifeq ($(UNAME_S),Linux)
|
|
|
|
all: libjdistorm.so
|
|
jdistorm.o: jdistorm.c jdistorm.h
|
|
gcc -c jdistorm.c -fPIC -I ${JAVA_HOME}/include -I ${JAVA_HOME}/include/linux
|
|
|
|
libjdistorm.so: jdistorm.o
|
|
gcc -shared -o libjdistorm.so -L${JAVA_HOME}/jre/lib -ldistorm3 jdistorm.o
|
|
|
|
endif
|
|
|