From 7d9b5a0c84a931542c088cfe6bc4325be22ecb71 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Thu, 25 Aug 2016 11:16:49 +0200 Subject: Initial commit --- compiler/Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 compiler/Makefile (limited to 'compiler/Makefile') 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 -- cgit v1.2.3