diff options
author | Camil Staps | 2016-08-25 13:49:29 +0200 |
---|---|---|
committer | Camil Staps | 2016-08-25 13:49:29 +0200 |
commit | 3189cfe57c6617ffe205bfc56791df6dd1d62ba7 (patch) | |
tree | fa2ee393b8f5ba55a4e32ef838a1c193e9e5cc1f /compiler/Makefile | |
parent | Fix memory leaks (diff) |
Move memory allocation to separate module
Diffstat (limited to 'compiler/Makefile')
-rw-r--r-- | compiler/Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/Makefile b/compiler/Makefile index f44d5e4..a4485c4 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -1,13 +1,13 @@ -CFLAGS=-g +CFLAGS=-Wall -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 +DEPS=lex.h syntax.h error.h print.h parse.h log.h eval.h mem.h +OBJ=fuspelc.o lex.o syntax.o error.o print.o parse.o log.o eval.o mem.o EXE=fuspelc all: $(EXE) $(EXE): $(OBJ) - gcc -o $@ $^ $(CFLAGS) + $(CC) -o $@ $^ $(CFLAGS) %.o: %.c $(DEPS) $(CC) -c -o $@ $< $(CFLAGS) |