72 lines
2.2 KiB
Makefile
72 lines
2.2 KiB
Makefile
.PHONY:test
|
|
|
|
SRC=\
|
|
main.cpp\
|
|
nasal_ast.h\
|
|
nasal_err.h\
|
|
nasal_builtin.h\
|
|
nasal_opt.h\
|
|
nasal_codegen.h\
|
|
nasal_gc.h\
|
|
nasal_import.h\
|
|
nasal_lexer.h\
|
|
nasal_parse.h\
|
|
nasal_vm.h\
|
|
nasal_dbg.h\
|
|
nasal.h
|
|
|
|
CPPSTANDARD=-std=c++11
|
|
|
|
nasal:$(SRC)
|
|
$(CXX) $(CPPSTANDARD) -O3 main.cpp -o nasal -fno-exceptions -ldl -Wshadow -Wall
|
|
nasal.exe:$(SRC)
|
|
$(CXX) $(CPPSTANDARD) -O3 main.cpp -o nasal.exe -fno-exceptions -Wshadow -Wall -static
|
|
|
|
stable-release:$(SRC)
|
|
$(CXX) $(CPPSTANDARD) -O2 main.cpp -o nasal -fno-exceptions -ldl -Wshadow -Wall
|
|
stable-release-mingw:$(SRC)
|
|
$(CXX) $(CPPSTANDARD) -O2 main.cpp -o nasal.exe -fno-exceptions -Wshadow -Wall -static
|
|
|
|
test:nasal
|
|
@ ./nasal -op -e test/ascii-art.nas
|
|
@ ./nasal -op -c test/auto_crash.nas
|
|
@ ./nasal -op -a -c test/bf.nas
|
|
@ ./nasal -op -a -c test/bfcolored.nas
|
|
@ ./nasal -op -a -c test/bfconvertor.nas
|
|
@ ./nasal -op -e -d test/bfs.nas
|
|
@ ./nasal -op -t test/bigloop.nas
|
|
@ ./nasal -op -e test/bp.nas
|
|
@ ./nasal -op -e -d test/calc.nas
|
|
@ ./nasal -op -e test/choice.nas
|
|
@ ./nasal -op -e test/class.nas
|
|
@ ./nasal -op -d test/coroutine.nas
|
|
@ ./nasal -op -e test/diff.nas
|
|
-@ ./nasal -op -d test/exception.nas
|
|
@ ./nasal -op -t -d test/fib.nas
|
|
@ ./nasal -op -e test/filesystem.nas
|
|
@ ./nasal -op -e -d test/hexdump.nas
|
|
@ ./nasal -op -c test/httptest.nas
|
|
@ ./nasal -op -e test/json.nas
|
|
@ ./nasal -op -e test/leetcode1319.nas
|
|
@ ./nasal -op -e -d test/lexer.nas
|
|
@ ./nasal -op -e -d test/life.nas
|
|
@ ./nasal -op -t test/loop.nas
|
|
@ ./nasal -op -t -d test/mandel.nas
|
|
@ ./nasal -op -t -d test/mandelbrot.nas
|
|
@ ./nasal -op -t -d test/md5.nas
|
|
@ ./nasal -op -t -d test/md5compare.nas
|
|
-@ ./nasal -op -d test/module_test.nas
|
|
@ ./nasal -op -e test/nasal_test.nas
|
|
@ ./nasal -op -c test/occupation.nas
|
|
@ ./nasal -op -t -d test/pi.nas
|
|
@ ./nasal -op -c test/ppmgen.nas
|
|
@ ./nasal -op -t -d test/prime.nas
|
|
@ ./nasal -op -e test/qrcode.nas
|
|
@ ./nasal -op -t -d test/quick_sort.nas
|
|
@ ./nasal -op -e test/scalar.nas hello world
|
|
-@ ./nasal -op -c -t test/snake.nas
|
|
@ ./nasal -op -c -e test/trait.nas
|
|
-@ ./nasal -op -c -t test/tetris.nas
|
|
@ ./nasal -op -c -t -d test/turingmachine.nas
|
|
@ ./nasal -op -c -t -d test/ycombinator.nas
|
|
@ ./nasal -op -d test/wavecollapse.nas
|