summaryrefslogtreecommitdiffstats
path: root/lib/libc-jove/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc-jove/Makefile')
-rw-r--r--lib/libc-jove/Makefile15
1 files changed, 15 insertions, 0 deletions
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 $@