paw: host: Add CUMHOLE pre-boot image format

Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
Chloe M.
2026-06-22 00:51:47 +00:00
parent 1793e559b5
commit 6d53d19b2d
5 changed files with 402 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
#
# Copyright (c) 2026, Chloe M.
# Provided under the BSD-3 clause
#
# Description: CUMHOLE build script
# Author: Chloe M.
#
.SILENT:
PROMPT := printf "%s\t\t%s\n"
CC = gcc
CFILES = $(shell find . -name "*.c")
OFILES = $(CFILES:.c=.o)
CFLAGS = \
-Wall \
-pedantic
.PHONY: all
all: ../bin/hole
.PHONY: hole
../bin/hole: $(OFILES)
$(CC) $^ -o $@
%.o: %.c
$(PROMPT) "CC" $<
$(CC) -c $(CFLAGS) $< -o $@