aboutsummaryrefslogtreecommitdiff
path: root/smash/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'smash/Makefile')
-rw-r--r--smash/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/smash/Makefile b/smash/Makefile
index 7012bdd..0f62c63 100644
--- a/smash/Makefile
+++ b/smash/Makefile
@@ -12,5 +12,9 @@ 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
+unit_test_exec:
+ gcc exec.c builtin.c parser.c ../lib/cstr/cstr.c ../lib/io/io.c ../lib/env/env.c ../lib/malloc/malloc.c ../lib/sys/start.S -static -nostdlib -fno-stack-protector -Wno-implicit-function-declaration -o test -DEXEC_UNIT_TEST -g
+ ./test
+
all:
- gcc main.c exec.c parser.c builtin.c ../lib/io/io.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
+ gcc main.c exec.c parser.c builtin.c ../lib/env/env.c ../lib/io/io.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