From 821939c6a6eb5761708146783ebd562422c2a7f7 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Thu, 25 Aug 2016 20:29:50 +0200 Subject: pedantic --- interpreter/Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 interpreter/Makefile (limited to 'interpreter/Makefile') 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) -- cgit v1.2.3