From 65ba015d6c1f248d36ad01a653bc49637804b15b Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Sun, 10 Aug 2025 15:46:33 -0400 Subject: working usermode objdir iteration --- lib/libjove/Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 lib/libjove/Makefile (limited to 'lib/libjove/Makefile') diff --git a/lib/libjove/Makefile b/lib/libjove/Makefile new file mode 100644 index 0000000..cc5f347 --- /dev/null +++ b/lib/libjove/Makefile @@ -0,0 +1,18 @@ +include $(CONFIG) + +CDIRS := syscall object arch/$(TARGET_MACHINE) +CFILES := $(wildcard *.c) +CFILES += $(foreach dir,$(CDIRS),$(wildcard $(dir)/*.c)) + +OFILES := $(patsubst %.c,%.o,$(CFILES)) + +CFLAGS := -ffreestanding -nostdlib -Iinclude -g + +all: ${OFILES} + ar rcs $(OUT)/libjove.a $(OFILES) + +clean: + -rm $(OFILES) + +%.o:%.c + $(CC) $(CFLAGS) -c $< -o $@ -- cgit v1.2.1