X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=natives%2FMakefile;fp=natives%2FMakefile;h=ea6f14f1caa6d1553b30fd00abf855926fc3b1a6;hp=0000000000000000000000000000000000000000;hb=ce2e587000376fffa4c88db087da4d15708eb9b2;hpb=a7b3907c5b31b2ff23d341493fb0c145ddf3c5b1 diff --git a/natives/Makefile b/natives/Makefile new file mode 100644 index 00000000..ea6f14f1 --- /dev/null +++ b/natives/Makefile @@ -0,0 +1,12 @@ +SYSTEM= `uname | awk '{print tolower($0)}'` + + +all: libsetuid.so + +libsetuid.so: + javah -classpath ../bin/ -jni org.cacert.gigi.natives.SetUID + gcc -o libsetuid.so -shared -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/$(SYSTEM) org_cacert_gigi_natives_SetUID.c + +clean: + rm -f *.so + rm -f *.h