From f0248ad1724f9fbdd372db4da8ee8f956ae6aacd Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Sun, 24 Aug 2025 16:05:30 -0400 Subject: libc heap impl --- lib/libc-jove/Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 lib/libc-jove/Makefile (limited to 'lib/libc-jove/Makefile') diff --git a/lib/libc-jove/Makefile b/lib/libc-jove/Makefile new file mode 100644 index 0000000..a084ca6 --- /dev/null +++ b/lib/libc-jove/Makefile @@ -0,0 +1,15 @@ +include $(CONFIG) + +CDIRS := stdio ctype string stdlib + +CFILES += $(foreach dir,$(CDIRS),$(wildcard $(dir)/*.c)) + +OFILES := $(patsubst %.c,%.o,$(CFILES)) + +CFLAGS := -ffreestanding -nostdlib + +all: ${OFILES} + ar rcs $(OUT)/libc-jove.a $(OFILES) + +%.o:%.c + $(CC) $(CFLAGS) -c $< -o $@ -- cgit v1.2.1