From ea8882dd7c024db436e25e86ac3d3fa3b3e43aa0 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 21 Dec 2025 17:14:52 -0500 Subject: usr: sdk: Add initial string lib sources + strlen Signed-off-by: Ian Moffett --- usr/sdk/Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 usr/sdk/Makefile (limited to 'usr/sdk/Makefile') diff --git a/usr/sdk/Makefile b/usr/sdk/Makefile new file mode 100644 index 0000000..9a5cc73 --- /dev/null +++ b/usr/sdk/Makefile @@ -0,0 +1,21 @@ +# +# Copyright (c) 2025, Ian Moffett. +# Provided under the BSD-3 clause. +# + +CFILES = $(shell find common/ -name "*.c") +OFILES = $(CFILES:.c=.o) + +CC = +LD = + +ARCH = +SYS_CFLAGS = +CFLAGS = $(SYS_CFLAGS) -Iinc/ + +.PHONY: all +all: $(OFILES) + $(AR) rcs libmos.a $(OFILES) + +%.o: %.c + $(CC) -c $(CFLAGS) $< -o $@ -- cgit v1.2.3