diff options
| author | Mel <mel@rnrd.eu> | 2025-02-28 18:08:37 +0100 |
|---|---|---|
| committer | Mel <mel@rnrd.eu> | 2025-02-28 18:10:18 +0100 |
| commit | 8fe5a3fbcf39a72084aa44d1eb6f43df9f28707c (patch) | |
| tree | 1860db373abace0588193529a57811affd294dd9 /Makefile | |
| parent | 66adbe28c7b7e714b18c4c21def4a7470fdd79a9 (diff) | |
| download | catskill-8fe5a3fbcf39a72084aa44d1eb6f43df9f28707c.tar.zst catskill-8fe5a3fbcf39a72084aa44d1eb6f43df9f28707c.zip | |
Add Makefile and Nix build environment
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7099164 --- /dev/null +++ b/Makefile @@ -0,0 +1,25 @@ +CFLAGS ?= -Wall -Werror -static -g -Og +.DEFAULT_GOAL := all + +build/catskill: build src/catskill.csk + echo "No catskill compiler exists yet. Building empty file." + touch ./build/catskill + +build/catboot: build boot/catboot.c + $(CC) $(CFLAGS) -o ./build/catboot ./boot/catboot.c + +build: + mkdir -p ./build + +.PHONY: all run run-boot clean + +all: build/catskill build/catboot + +run: build/catskill + echo "Not implemented yet." + +run-boot: build/catboot + ./build/catboot + +clean: + rm -rf build/* |
