Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 5606a4c3fe6d2850ad8fed2d5274488f12b31250 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
LIBSECRET_CFLAGS = `pkg-config --cflags libsecret-1`
LIBSECRET_LIBS = `pkg-config --libs libsecret-1`

CFLAGS := $(CFLAGS) -fPIC -I"${JAVA_HOME}/include" -I"${JAVA_HOME}/include/linux" $(LIBSECRET_CFLAGS)
LDFLAGS := $(LDFLAGS) -shared $(LIBSECRET_LIBS)

all: ../libkeystorelinuxnative.so

clean:
	rm ../libkeystorelinuxnative.so ../target/keystoreLinuxNative.o

../libkeystorelinuxnative.so: ../target/keystoreLinuxNative.o
	$(CC) $(LDFLAGS) -o $@ $<

../target/keystoreLinuxNative.o: ../target keystoreLinuxNative.c
	$(CC) -c $(CFLAGS) -o $@ $(TESTFLAGS) keystoreLinuxNative.c

../target:
	mkdir -p ../target

Back to the top