diff options
author | Camil Staps | 2016-08-25 11:16:49 +0200 |
---|---|---|
committer | Camil Staps | 2016-08-25 11:16:49 +0200 |
commit | 7d9b5a0c84a931542c088cfe6bc4325be22ecb71 (patch) | |
tree | 085e5ae27cfbabc2e1533f4927969f5784dd1cfc /compiler/Makefile |
Initial commit
Diffstat (limited to 'compiler/Makefile')
-rw-r--r-- | compiler/Makefile | 18 |
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 |