-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
14 lines (14 loc) · 1.01 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
export PWD = /home/emile/Desktop/workspace/java/telemetryViewer
export PROJECT_PACKAGE = $(PWD)/src/main/java/com/example/telemetryviewer
export HEADERS = $(PWD)/src/main/cpp/headers
export CPP_FOLDER = $(PWD)/src/main/cpp
export OUT_DIR = $(PWD)
# export 64_bit = C:/TDM-GCC-64/bin/gcc.exe
decoder:
#### for windows os ####
# javac -h $(HEADERS) -d $(OUT_DIR) $(PROJECT_PACKAGE)/service/BinaryReader.java $(PROJECT_PACKAGE)/models/telemetryData.java $(PROJECT_PACKAGE)/models/telemetryIndex.java
# ${64_bit} -m64 -c "-IC:/Program Files/Java/jdk-11.0.14/include" "-IC:/Program Files/Java/jdk-11.0.14/include/win32" -I$(HEADERS) $(CPP_FOLDER)/filedecoder.cpp -o $(OUT_DIR)/filedecoder.o
# ${64_bit} -shared -o $(OUT_DIR)/filedecoder.dll $(OUT_DIR)/filedecoder.o
#### for linux ####
g++ -o filedecoder_linux.o -I"/usr/lib/jvm/default-jdk/include" -I"/usr/lib/jvm/default-jdk/include/linux" -fpic -c $(CPP_FOLDER)/filedecoder.cpp
g++ -o filedecoder_linux.so -shared filedecoder_linux.o