fix: error when adding Verifications Points via Test Manager
[gigi.git] / natives / Makefile
1 JAVA_HOME=/usr/lib/jvm/default-java
2 SYSTEM= $(shell uname | awk '{print tolower($$0)}')
3 JAVAH=javah
4 CC=gcc
5 CFLAGS=-flto -Wall -Werror -Wextra -pedantic -fPIC
6 CPPFLAGS=-I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/$(SYSTEM)
7 LDFLAGS=-shared
8
9
10 all: libsetuid.so
11
12 club_wpia_gigi_natives_SetUID.h: ../src/club/wpia/gigi/natives/SetUID.java
13         $(JAVAH) -classpath ../bin/ -jni club.wpia.gigi.natives.SetUID
14
15 libsetuid.so: club_wpia_gigi_natives_SetUID.c club_wpia_gigi_natives_SetUID.h
16         $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $<
17
18 clean:
19         -$(RM) *.so *.h