From 50392995d6e7f3a10fb74bb2f9073a4790f8933c Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Mon, 11 Mar 2024 21:40:28 -0400 Subject: simple env with basic test init program --- lib/jlibc/Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 lib/jlibc/Makefile (limited to 'lib/jlibc/Makefile') diff --git a/lib/jlibc/Makefile b/lib/jlibc/Makefile new file mode 100644 index 0000000..65e645c --- /dev/null +++ b/lib/jlibc/Makefile @@ -0,0 +1,12 @@ +CFILES := $(wildcard *.c) +CFILES += $(wildcard */*.c) + +OFILES := $(patsubst %.c,%.o,$(CFILES)) + +all: $(OUT) + +$(OUT): ${OFILES} + ar rcs $@ ${OFILES} + +%.o:%.c + $(CC) $(CFLAGS) -c $< -o $@ -- cgit v1.2.1