paw: spkg: Add support package groundwork

Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
Chloe M.
2026-06-22 01:24:57 +00:00
parent 6d53d19b2d
commit 3ad06ac1f8
7 changed files with 106 additions and 1 deletions
+25
View File
@@ -0,0 +1,25 @@
#
# Copyright (c) 2026, Chloe M.
# Provided under the BSD-3 clause
#
# Description: Support package build script
# Author: Chloe M.
#
.SILENT:
include ../mk/stos.mk
CFILES = $(shell find . -name "*.c")
OFILES = $(CFILES:.c=.o)
CFLAGS = \
$(SYS_CFLAGS) \
-Ihead \
-I$(ST_PROJECT_ROOT)/sdk/head
.PHONY: all
all: $(OFILES)
%.o: %.c
$(PROMPT) "CC" $<
$(SYS_CC) -c $(CFLAGS) $< -o $@