aboutsummaryrefslogtreecommitdiff
path: root/compiler/Makefile
diff options
context:
space:
mode:
authorCamil Staps2016-08-25 11:16:49 +0200
committerCamil Staps2016-08-25 11:16:49 +0200
commit7d9b5a0c84a931542c088cfe6bc4325be22ecb71 (patch)
tree085e5ae27cfbabc2e1533f4927969f5784dd1cfc /compiler/Makefile
Initial commit
Diffstat (limited to 'compiler/Makefile')
-rw-r--r--compiler/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/compiler/Makefile b/compiler/Makefile
new file mode 100644
index 0000000..f44d5e4
--- /dev/null
+++ b/compiler/Makefile
@@ -0,0 +1,18 @@
+CFLAGS=-g
+
+DEPS=lex.h syntax.h error.h print.h parse.h log.h eval.h
+OBJ=fuspelc.o lex.o syntax.o error.o print.o parse.o log.o eval.o
+EXE=fuspelc
+
+all: $(EXE)
+
+$(EXE): $(OBJ)
+ gcc -o $@ $^ $(CFLAGS)
+
+%.o: %.c $(DEPS)
+ $(CC) -c -o $@ $< $(CFLAGS)
+
+clean:
+ $(RM) -v $(OBJ) $(EXE)
+
+.PHONY: all clean