aboutsummaryrefslogtreecommitdiff
path: root/interpreter/Makefile
diff options
context:
space:
mode:
authorCamil Staps2016-08-25 20:29:50 +0200
committerCamil Staps2016-08-25 20:29:50 +0200
commit821939c6a6eb5761708146783ebd562422c2a7f7 (patch)
treedd26b29c65431801f4ca45d6952b7806534f9c8c /interpreter/Makefile
parentRemove unnecessary includes (diff)
pedantic
Diffstat (limited to 'interpreter/Makefile')
-rw-r--r--interpreter/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/interpreter/Makefile b/interpreter/Makefile
new file mode 100644
index 0000000..c8bfeb7
--- /dev/null
+++ b/interpreter/Makefile
@@ -0,0 +1,18 @@
+CFLAGS=-Wall -Wextra -Werror -Wpedantic -s
+
+DEPS=lex.h syntax.h print.h parse.h log.h eval.h mem.h
+OBJ=fuspelc.o lex.o syntax.o print.o parse.o log.o eval.o mem.o
+EXE=fuspelc
+
+.PHONY: all clean
+
+all: $(EXE)
+
+$(EXE): $(OBJ)
+ $(CC) -o $@ $^ $(CFLAGS)
+
+%.o: %.c $(DEPS)
+ $(CC) -c -o $@ $< $(CFLAGS)
+
+clean:
+ $(RM) -v $(OBJ) $(EXE)