Skip to main content
aboutsummaryrefslogblamecommitdiffstats
blob: c2551614c04d9283618f4253b8bab837104789d6 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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