aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Makefile b/lib/Makefile
index 3a5fff9..22c090c 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -3,11 +3,14 @@ include ../rules.mk
CCFLAGS += -I. -I..
+all: libk.a
+
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} $@ $^
+ i686-elf-ranlib $@
clean:
@rm -rf ${libk,OBJS}