aboutsummaryrefslogtreecommitdiff
path: root/smash/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'smash/Makefile')
-rw-r--r--smash/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/smash/Makefile b/smash/Makefile
index 4deb244..8a0dcee 100644
--- a/smash/Makefile
+++ b/smash/Makefile
@@ -1,3 +1,5 @@
+default_target: all
+
unit_test_parser:
gcc parser.c ../lib/cstr/cstr.c ../lib/malloc/malloc.c ../lib/sys/start.S -static -nostdlib -fno-stack-protector -Wno-implicit-function-declaration -o test -DPARSER_UNIT_TEST -g
./test
@@ -5,3 +7,10 @@ unit_test_parser:
unit_test_variables:
gcc variables.c ../lib/avl_tree/avl_tree.c ../lib/cstr/cstr.c ../lib/malloc/malloc.c ../lib/sys/start.S -static -nostdlib -fno-stack-protector -o test -DVARIABLES_UNIT_TEST -g
./test
+
+unit_test_builtin:
+ gcc builtin.c ../lib/cstr/cstr.c ../lib/sys/start.S -static -nostdlib -fno-stack-protector -Wno-implicit-function-declaration -o test -DBUILTIN_UNIT_TEST -g
+ ./test
+
+all:
+ gcc main.c exec.c parser.c builtin.c ../lib/avl_tree/avl_tree.c ../lib/cstr/cstr.c ../lib/malloc/malloc.c ../lib/sys/start.S -static -nostdlib -fno-stack-protector -Wno-implicit-function-declaration -o smash -DVARIABLES_UNIT_TEST -g