aboutsummaryrefslogtreecommitdiff
path: root/lib/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Makefile')
-rw-r--r--lib/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/Makefile b/lib/Makefile
new file mode 100644
index 0000000..3a5fff9
--- /dev/null
+++ b/lib/Makefile
@@ -0,0 +1,13 @@
+include ../${ARCH}/toolchain.mk
+include ../rules.mk
+
+CCFLAGS += -I. -I..
+
+libk,SRCS = memcpy.c memset.c stdio/printf.c string/itoa.c
+libk,OBJS = $(libk,SRCS:%.c=%.o)
+libk.a: ${libk,OBJS}
+ @echo ' AR $@'
+ @${AR} ${ARFLAGS} $@ $^
+
+clean:
+ @rm -rf ${libk,OBJS}