summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorruki <[email protected]>2020-02-13 23:45:31 +0800
committerruki <[email protected]>2020-02-13 16:33:10 +0800
commit293d5e669f6350585e666ab60035aca49803985c (patch)
tree9e538a79ae198c1b2fb30636b42c86501cbfd62d /makefile
parentb9879d5e6fadc016586dacb2535e5172bb476a06 (diff)
add lj_vm.o for msys/cygwin
Diffstat (limited to 'makefile')
-rw-r--r--makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/makefile b/makefile
index c10406f0f..390d22af5 100644
--- a/makefile
+++ b/makefile
@@ -63,9 +63,25 @@ endif
# to match a directory for a platform dependent implementation.
ARCH :=$(if $(findstring amd64,$(ARCH)),x86_64,$(ARCH))
+# is windows?
+iswin =
+ifeq ($(PLAT),windows)
+ iswin = yes
+endif
+ifeq ($(PLAT),msys)
+ iswin = yes
+endif
+ifeq ($(PLAT),cygwin)
+ iswin = yes
+endif
+
xmake_dir_install :=$(prefix)/share/xmake
xmake_core :=./core/src/demo/demo.b
+ifdef iswin
+xmake_core_install :=$(xmake_dir_install)/xmake.exe
+else
xmake_core_install :=$(xmake_dir_install)/xmake
+endif
xmake_loader :=$(TMP_DIR)/xmake_loader
xmake_loader_install:=$(prefix)/bin/xmake