Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien HENRY2017-04-14 05:08:29 -0400
committerJulien HENRY2017-04-24 03:48:04 -0400
commit2113ebe27fd2ac0cbceba52d0610d342330db528 (patch)
tree4a8ac2230ec6b973e8cf430310283f77bd45f22c /bundles/org.eclipse.equinox.security.linux.x86_64/keystorelinuxnative/makefile
parenta522102710eb0c7adf0c5aa34ce964169be06a6c (diff)
downloadrt.equinox.bundles-2113ebe27fd2ac0cbceba52d0610d342330db528.tar.gz
rt.equinox.bundles-2113ebe27fd2ac0cbceba52d0610d342330db528.tar.xz
rt.equinox.bundles-2113ebe27fd2ac0cbceba52d0610d342330db528.zip
[bug 234509] Equinox keystore fragment for Linux 64bitI20170425-0700I20170425-0240I20170425-0215I20170424-2000
Use libsecret Change-Id: If2a78c2844bce4232f2e15075c28b380a0737ce4 Signed-off-by: Julien HENRY <henryju@yahoo.fr>
Diffstat (limited to 'bundles/org.eclipse.equinox.security.linux.x86_64/keystorelinuxnative/makefile')
-rw-r--r--bundles/org.eclipse.equinox.security.linux.x86_64/keystorelinuxnative/makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.security.linux.x86_64/keystorelinuxnative/makefile b/bundles/org.eclipse.equinox.security.linux.x86_64/keystorelinuxnative/makefile
new file mode 100644
index 000000000..c2551614c
--- /dev/null
+++ b/bundles/org.eclipse.equinox.security.linux.x86_64/keystorelinuxnative/makefile
@@ -0,0 +1,18 @@
+LIBSECRET_CFLAGS = `pkg-config --cflags libsecret-1`
+LIBSECRET_LIBS = `pkg-config --libs libsecret-1`
+
+CFLAGS = -shared -fPIC -I"${JAVA_HOME}/include" -I"${JAVA_HOME}/include/linux"
+
+all: ../libkeystorelinuxnative.so
+
+clean:
+ rm ../libkeystorelinuxnative.so ../target/keystoreLinuxNative.o
+
+../libkeystorelinuxnative.so: ../target/keystoreLinuxNative.o
+ $(CC) $(CFLAGS) -o $@ $< $(LIBSECRET_LIBS)
+
+../target/keystoreLinuxNative.o: ../target keystoreLinuxNative.c
+ $(CC) -c -fPIC -I"${JAVA_HOME}/include" -I"${JAVA_HOME}/include/linux" -o $@ $(TESTFLAGS) $(LIBSECRET_CFLAGS) keystoreLinuxNative.c
+
+../target:
+ mkdir -p ../target

Back to the top