summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/makefile b/makefile
new file mode 100644
index 0000000..552120b
--- /dev/null
+++ b/makefile
@@ -0,0 +1,13 @@
+CC=g++
+CFLAGS= -std=gnu++17 -g
+DEPS = lexer.hpp
+OBJ = lexer.o main.o
+
+%.o : %.cpp $(DEPS)
+ $(CC) -c -o $@ $< $(CFLAGS)
+
+main : $(OBJ)
+ $(CC) -o $@ $^ $(CFLAGS)
+
+clean :
+ rm -f *.o