about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2026-01-22 18:27:28 +0100
committerMel <mel@rnrd.eu>2026-01-22 19:12:20 +0100
commitfce4a99dbfab5af623bb05d9e10807efeced5a47 (patch)
tree791fd7b45ac2a44b5878e41448aa048c66ae4732 /Makefile
parent7f5d765c929a4dc2deddb7b68a41a3a841940837 (diff)
downloadcatskill-fce4a99dbfab5af623bb05d9e10807efeced5a47.tar.zst
catskill-fce4a99dbfab5af623bb05d9e10807efeced5a47.zip
Implement file embedding into compiler sources during build
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 9775895..4b3f9f5 100644
--- a/Makefile
+++ b/Makefile
@@ -14,8 +14,9 @@ build/catskill: build $(SOURCES)
 	echo "No catskill compiler exists yet. Building empty file."
 	touch ./build/catskill
 
-build/catboot: build $(BOOTSTRAP_SOURCES)
-	$(CC) $(CFLAGS) -o ./build/catboot ./boot/catboot.c
+build/catboot: build $(BOOTSTRAP_SOURCES) boot/scripts/embed.sh
+	./boot/scripts/embed.sh $(BOOTSTRAP_SOURCES)
+	$(CC) $(CFLAGS) -I./boot -o ./build/catboot ./build/boot/catboot.c
 
 build/catboot-test: build $(BOOTSTRAP_TEST_SOURCES)
 	$(CC) $(CFLAGS) -o ./build/catboot-test ./boot/tests/test.c