summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2022-03-26 13:18:43 -0600
committerHombreLaser <sebastian-440@live.com>2022-03-26 13:18:43 -0600
commit07885de508b71ef4c4097f14cc5edc9e288b0631 (patch)
tree2f9a75eb6bf05176ed1ffaa105290c8db57de662 /makefile
parentee0252298ab03c1647b7dcac302ac9fd4e7e8379 (diff)
Añadido makefile
Diffstat (limited to 'makefile')
-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