WarpPI/hardware/src/main/jni/makefileOLD

32 lines
1.3 KiB
Plaintext
Raw Normal View History

2017-12-11 18:09:00 +01:00
# Define a variable for classpath
CLASS_PATH = ../../../target/classes
PATH1A = it/cavallium/warppi
PATH1B = it.cavallium.warppi
2017-12-11 18:09:00 +01:00
# Define a virtual path for .class in the bin directory
vpath %.class $(CLASS_PATH)/$(PATH1A)
2017-12-13 22:34:15 +01:00
all : picalculatornative.so
2017-12-11 18:09:00 +01:00
# $@ matches the target, $< matches the first dependancy
2017-12-13 22:34:15 +01:00
picalculatornative.so : TestJNI.o
gcc -m64 -mtune=generic -Wl,--add-stdcall-alias -shared -o ../resources/$@ $<
# $@ matches the target, $< matches the first dependancy
picalculatornative.dll : windows_TestJNI.o
2017-12-11 18:09:00 +01:00
x86_64-w64-mingw32-gcc.exe -m64 -mtune=generic -Wl,--add-stdcall-alias -shared -o ../resources/$@ $<
# $@ matches the target, $< matches the first dependancy
2017-12-13 22:34:15 +01:00
windows_TestJNI.o : TestJNI.c TestJNI.h
2017-12-11 18:09:00 +01:00
x86_64-w64-mingw32-gcc.exe -m64 -mtune=generic -I"G:\Program Files\Java\jdk1.8.0_144\include" -I"G:\Program Files\Java\jdk1.8.0_144\include\win32" -c $< -o $@
2017-12-13 22:34:15 +01:00
# $@ matches the target, $< matches the first dependancy
TestJNI.o : TestJNI.c TestJNI.h
gcc -m64 -mtune=generic -I"G:\Program Files\Java\jdk1.8.0_144\include" -I"G:\Program Files\Java\jdk1.8.0_144\include\win32" -c $< -o $@
2017-12-11 18:09:00 +01:00
# $* matches the target filename without the extension
TestJNI.h : TestJNI.class
javah -o "$*.h" -classpath "$(CLASS_PATH)" $(PATH1B).$*
clean :
rm TestJNI.h TestJNI.o ../resources/picalculatornative.dll