aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/makefile b/makefile
index 70d6c97..38738e2 100644
--- a/makefile
+++ b/makefile
@@ -41,6 +41,15 @@ TEST_OUTPUT = ./spec/outputs
41# Obtains the OS type, either 'Darwin' (OS X) or 'Linux' 41# Obtains the OS type, either 'Darwin' (OS X) or 'Linux'
42UNAME_S:=$(shell uname -s) 42UNAME_S:=$(shell uname -s)
43 43
44ifeq ($(NO_LUA),true)
45 COMPILE_FLAGS += -DMOONP_NO_MACRO
46 COMPILE_FLAGS += -DMOONP_COMPILER_ONLY
47else
48ifeq ($(NO_MACRO),true)
49 COMPILE_FLAGS += -DMOONP_NO_MACRO
50endif
51endif
52
44# Add platform related linker flag 53# Add platform related linker flag
45ifneq ($(UNAME_S),Darwin) 54ifneq ($(UNAME_S),Darwin)
46 LINK_FLAGS += -lstdc++fs 55 LINK_FLAGS += -lstdc++fs
@@ -235,7 +244,8 @@ clean:
235test: debug 244test: debug
236 @echo "Compiling Moonscript codes..." 245 @echo "Compiling Moonscript codes..."
237 @$(START_TIME) 246 @$(START_TIME)
238 @./$(BIN_NAME) $(TEST_INPUT) -t $(TEST_OUTPUT) 247 @./$(BIN_NAME) $(TEST_INPUT) -t $(TEST_OUTPUT) -tl_enabled=true
248 @./$(BIN_NAME) $(TEST_INPUT)/teal-lang.mp -o $(TEST_OUTPUT)/teal-lang.lua
239 @echo -en "Compile time: " 249 @echo -en "Compile time: "
240 @$(END_TIME) 250 @$(END_TIME)
241 251