summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorruki <[email protected]>2021-09-18 00:44:52 +0800
committerruki <[email protected]>2021-09-18 00:44:52 +0800
commitb58700f83ee4e40582b03f5fdfe337788b9f2c6f (patch)
tree2c0fd405e959913d53436299f509e8c05cda57b5 /makefile
parent4d8c00eecd99b0f65f40befd36bb2945df9996a7 (diff)
update makefile
Diffstat (limited to 'makefile')
-rw-r--r--makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/makefile b/makefile
index cc7c61ba1..c22bc30cb 100644
--- a/makefile
+++ b/makefile
@@ -15,6 +15,11 @@ prefix :=$(PREFIX)
endif
endif
+# use luajit or lua backend
+ifeq ($(BACKEND),)
+BACKEND :=luajit
+endif
+
# the temporary directory
ifeq ($(TMPDIR),)
TMP_DIR :=$(if $(TMP_DIR),$(TMP_DIR),/tmp)
@@ -94,7 +99,7 @@ xrepo_bin_install :=$(destdir)/bin/xrepo
build:
@echo compiling xmake-core ...
@if [ -f core/.config.mak ]; then rm core/.config.mak; fi
- +@$(MAKE) -C core --no-print-directory f DEBUG=$(debug)
+ +@$(MAKE) -C core --no-print-directory f DEBUG=$(debug) BACKEND=$(BACKEND)
+@$(MAKE) -C core --no-print-directory c
+@$(MAKE) -C core --no-print-directory