about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 6468775..d24a003 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,14 @@
-CFLAGS ?= -std=c99 -Wall -Werror -static -g -Og
+CFLAGS ?= -std=c99 -Wall -Werror -static -g -O0
 .DEFAULT_GOAL := all
 
-build/catskill: build src/catskill.csk
+BOOTSTRAP_SOURCES = boot/catboot.c boot/common.c boot/lex.c
+SOURCES = src/catskill.csk
+
+build/catskill: build $(SOURCES)
 	echo "No catskill compiler exists yet. Building empty file."
 	touch ./build/catskill
 
-build/catboot: build boot/catboot.c
+build/catboot: build $(BOOTSTRAP_SOURCES)
 	$(CC) $(CFLAGS) -o ./build/catboot ./boot/catboot.c
 
 build: