diff options
| author | Mel <mel@rnrd.eu> | 2025-03-15 00:28:18 +0100 |
|---|---|---|
| committer | Mel <mel@rnrd.eu> | 2025-03-15 00:28:18 +0100 |
| commit | 6286e528486f2d1dcacc1fd209dda8b4feecf837 (patch) | |
| tree | ba3956ced1839d9d3990ac47be581a5d6bc9cd15 /Makefile | |
| parent | 0a3bcb4ab7c5884e9ad6bb47b05c9a8231395c93 (diff) | |
| download | catskill-6286e528486f2d1dcacc1fd209dda8b4feecf837.tar.zst catskill-6286e528486f2d1dcacc1fd209dda8b4feecf837.zip | |
Makefile move sources into list + disable optimization
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 9 |
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: |
