]> WPIA git - gigi.git/blobdiff - natives/Makefile
Implemented native Uidset to open a priviliged port
[gigi.git] / natives / Makefile
diff --git a/natives/Makefile b/natives/Makefile
new file mode 100644 (file)
index 0000000..ea6f14f
--- /dev/null
@@ -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