From 1dd53ce54c2008e3a11a636a496853cf6f9a5d65 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 24 Jan 2020 09:11:53 +0100 Subject: Convert hash map to gc, implement more instructions and call command --- Makefile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 16e7513..5e14b47 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ -CFLAGS = -Wall -Wextra -Werror -g3 -std=c89 -pedantic -fPIE +CFLAGS = -Wall -Wextra -Werror -g3 -std=c89 -pedantic -fPIE -DDEBUG LIBS = -lgc -OBJ = build/main.o build/tokenizer.o build/parser.o build/program.o build/bytecode.o build/buffer.o build/hash_map.o +OBJ = build/main.o build/tokenizer.o build/parser.o build/program.o build/bytecode.o build/value.o build/command.o build/buffer.o build/hash_map.o CC = cc all: build_dir $(OBJ) @@ -30,8 +30,14 @@ build/program.o: src/program.c include/program.h build/bytecode.o: src/bytecode.c include/bytecode.h $(CC) -c src/bytecode.c -o build/bytecode.o $(CFLAGS) +build/value.o: src/value.c include/value.h + $(CC) -c src/value.c -o build/value.o $(CFLAGS) + +build/command.o: src/command.c include/command.h + $(CC) -c src/command.c -o build/command.o $(CFLAGS) + build/buffer.o: src/std/buffer.c include/std/buffer.h $(CC) -c src/std/buffer.c -o build/buffer.o $(CFLAGS) -build/hash_map.o: src/std/hash_map.c include/std/hash_map.h - $(CC) -c src/std/hash_map.c -o build/hash_map.o $(CFLAGS) +build/hash_map.o: src/std_gc/hash_map.c include/std_gc/hash_map.h + $(CC) -c src/std_gc/hash_map.c -o build/hash_map.o $(CFLAGS) -- cgit v1.2.3