From 6286e528486f2d1dcacc1fd209dda8b4feecf837 Mon Sep 17 00:00:00 2001 From: Mel Date: Sat, 15 Mar 2025 00:28:18 +0100 Subject: Makefile move sources into list + disable optimization Signed-off-by: Mel --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Makefile') 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: -- cgit 1.4.1