summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index fdff5d7..c05ff2d 100644
--- a/Makefile
+++ b/Makefile
@@ -9,5 +9,19 @@ all: skullfuck
skullfuck: skullfuck.c
$(CC) $(CFLAGS) $(MACROS) -o skullfuck skullfuck.c
+run_tests: run_tests.c
+ $(CC) $(CFLAGS) -o run_tests run_tests.c
+
+hello: test/hello_world.bf
+ ./skullfuck -o hello test/hello_world.bf
+
+rot13: test/rot13.bf
+ ./skullfuck -o rot13 test/rot13.bf
+
+test: run_tests hello rot13
+ ./run_tests
+
clean: skullfuck
rm -f skullfuck
+
+.PHONY: clean test