diff options
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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' |
42 | UNAME_S:=$(shell uname -s) | 42 | UNAME_S:=$(shell uname -s) |
43 | 43 | ||
44 | ifeq ($(NO_LUA),true) | ||
45 | COMPILE_FLAGS += -DMOONP_NO_MACRO | ||
46 | COMPILE_FLAGS += -DMOONP_COMPILER_ONLY | ||
47 | else | ||
48 | ifeq ($(NO_MACRO),true) | ||
49 | COMPILE_FLAGS += -DMOONP_NO_MACRO | ||
50 | endif | ||
51 | endif | ||
52 | |||
44 | # Add platform related linker flag | 53 | # Add platform related linker flag |
45 | ifneq ($(UNAME_S),Darwin) | 54 | ifneq ($(UNAME_S),Darwin) |
46 | LINK_FLAGS += -lstdc++fs | 55 | LINK_FLAGS += -lstdc++fs |
@@ -235,7 +244,8 @@ clean: | |||
235 | test: debug | 244 | test: 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 | ||