-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmakefile
18 lines (14 loc) · 1.12 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
default:
@echo "Building developer instant-gratification files. Run the edison or pi targets for building those respective artifacts. Run the clean target before publishing changes."
gcc -I${JAVA_HOME}/include -I${JAVA_HOME}/include/darwin -I${JAVA_HOME}/include/linux -shared -o rs232.so -fPIC src/main/c/RS232.c
clean:
@echo "Clearing developer instant-gratification files."
@rm rs232.so
edison:
@echo "This target MUST be run on a platform with JAVA_HOME properly configured and with the Edison cross compiler installed."
@echo "If this build fails, make sure you remembered to source the edison environmental variables before running."
@i586-poky-linux-gcc -lmraa -I"${JAVA_HOME}/include" -I"${JAVA_HOME}/include/linux" -shared -o src/main/resources/jni/i386-Linux/rs232.so -fPIC src/main/c/RS232.c
pi:
@echo "This target MUST be run on a platform with JAVA_HOME properly configured and the g++-arm-linux-gnuabihf cross compiler package installed."
@arm-linux-gnueabihf-gcc -I"${JAVA_HOME}/include" -I"${JAVA_HOME}/include/linux" -shared -o src/main/resources/jni/arm-Linux/rs232.so -fPIC src/main/c/RS232.c
devices: edison pi