Introducing CPU register lists
This commit is contained in:
@@ -69,7 +69,7 @@ core:
|
||||
desktop: clean_desktop
|
||||
@echo " Compiling Java desktop application"
|
||||
@javac -sourcepath src/desktop --release 10 -Xlint:unchecked \
|
||||
-h src/desktop/native -d . src/desktop/Main.java
|
||||
-h src/desktop/vue -d . src/desktop/Main.java
|
||||
|
||||
# Build all native modules
|
||||
.PHONY: native
|
||||
@@ -103,7 +103,7 @@ clean_desktop:
|
||||
# Delete everything but the .jar
|
||||
.PHONY: clean_most
|
||||
clean_most: clean_desktop
|
||||
@rm -f src/desktop/native/vue_NativeVUE.h native/*.dll native/*.so
|
||||
@rm -f src/desktop/vue/vue_NativeVUE.h native/*.dll native/*.so
|
||||
|
||||
|
||||
|
||||
@@ -112,14 +112,14 @@ clean_most: clean_desktop
|
||||
###############################################################################
|
||||
|
||||
# JNI header file
|
||||
src/desktop/native/vue_NativeVUE.h: src/desktop/vue/NativeVUE.java
|
||||
@javac -h src/desktop/native -sourcepath src/desktop -d . \
|
||||
src/desktop/vue/vue_NativeVUE.h: src/desktop/vue/NativeVUE.java
|
||||
@javac -h src/desktop/vue -sourcepath src/desktop -d . \
|
||||
src/desktop/vue/NativeVUE.java
|
||||
@sleep 3
|
||||
|
||||
# linux_x86
|
||||
.PHONY: lin32_pre
|
||||
lin32_pre: src/desktop/native/vue_NativeVUE.h
|
||||
lin32_pre: src/desktop/vue/vue_NativeVUE.h
|
||||
$(eval name = linux_x86)
|
||||
$(eval prefix = `uname -m`-linux-gnu-)
|
||||
$(eval include = -I$(include_linux) -I$(include_linux)/linux)
|
||||
@@ -130,7 +130,7 @@ lin32: lin32_pre native_common
|
||||
|
||||
# linux_x86-64
|
||||
.PHONY: lin64_pre
|
||||
lin64_pre: src/desktop/native/vue_NativeVUE.h
|
||||
lin64_pre: src/desktop/vue/vue_NativeVUE.h
|
||||
$(eval name = linux_x86-64)
|
||||
$(eval prefix = `uname -m`-linux-gnu-)
|
||||
$(eval include = -I$(include_linux) -I$(include_linux)/linux)
|
||||
@@ -141,7 +141,7 @@ lin64: lin64_pre native_common
|
||||
|
||||
# windows_x86
|
||||
.PHONY: win32_pre
|
||||
win32_pre: src/desktop/native/vue_NativeVUE.h
|
||||
win32_pre: src/desktop/vue/vue_NativeVUE.h
|
||||
$(eval name = windows_x86)
|
||||
$(eval prefix = i686-w64-mingw32-)
|
||||
$(eval include = -I$(include_windows) -I$(include_windows)/win32)
|
||||
@@ -151,7 +151,7 @@ win32: win32_pre native_common
|
||||
|
||||
# windows_x86-64
|
||||
.PHONY: win64_pre
|
||||
win64_pre: src/desktop/native/vue_NativeVUE.h
|
||||
win64_pre: src/desktop/vue/vue_NativeVUE.h
|
||||
$(eval name = windows_x86-64)
|
||||
$(eval prefix = x86_64-w64-mingw32-)
|
||||
$(eval include = -I$(include_windows) -I$(include_windows)/win32)
|
||||
@@ -165,4 +165,4 @@ native_common:
|
||||
@echo " Building native module $(name)"
|
||||
@$(prefix)gcc $(include) -Isrc/core/include $(gccargs) -s -shared -O2 \
|
||||
-fno-strict-aliasing -Werror \
|
||||
-o native/$(name)$(ext) src/desktop/native/native.c src/core/vue.c
|
||||
-o native/$(name)$(ext) src/desktop/vue/NativeVUE.c src/core/vue.c
|
||||
|
||||
Reference in New Issue
Block a user