aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 15de48f..16e7513 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
CFLAGS = -Wall -Wextra -Werror -g3 -std=c89 -pedantic -fPIE
LIBS = -lgc
-OBJ = build/main.o build/tokenizer.o build/parser.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/buffer.o build/hash_map.o
CC = cc
all: build_dir $(OBJ)
@@ -24,6 +24,9 @@ build/tokenizer.o: src/tokenizer.c include/tokenizer.h
build/parser.o: src/parser.c include/parser.h
$(CC) -c src/parser.c -o build/parser.o $(CFLAGS)
+build/program.o: src/program.c include/program.h
+ $(CC) -c src/program.c -o build/program.o $(CFLAGS)
+
build/bytecode.o: src/bytecode.c include/bytecode.h
$(CC) -c src/bytecode.c -o build/bytecode.o $(CFLAGS)