summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/makefile b/makefile
index 84674d7..22e5af1 100644
--- a/makefile
+++ b/makefile
@@ -1,5 +1,11 @@
+SDL = -L/usr/lib -lSDL2
+
default:
+ gcc src/main.c $(SDL) -o main
+
+interpreter:
+ rm interpreter
gcc src/interpreter.c -o interpreter
-illegal:
- gcc src/interpreter.c -o interpreter -D ILLEGAL
+interpreter-illegal:
+ gcc src/interpreter.c -o interpreter -D ILLEGAL \ No newline at end of file