diff options
author | aqua <aqua@iserlohn-fortress.net> | 2022-10-28 16:40:46 +0300 |
---|---|---|
committer | aqua <aqua@iserlohn-fortress.net> | 2022-10-28 16:40:46 +0300 |
commit | 138c0efa33990ae16d9d950181d65d8b3dfc60c9 (patch) | |
tree | 44d018d8b8b634b5d52865bbd7a6c764adc04bb0 /lib | |
parent | Add LICENSE.md (diff) | |
download | kernel-138c0efa33990ae16d9d950181d65d8b3dfc60c9.tar.xz |
makefile: add libk target
Diffstat (limited to 'lib')
-rw-r--r-- | lib/targets.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/targets.mk b/lib/targets.mk new file mode 100644 index 0000000..cbf9da8 --- /dev/null +++ b/lib/targets.mk @@ -0,0 +1,6 @@ +libk,SRCS = lib/memcpy.c lib/memset.c lib/stdio/printf.c lib/string/itoa.c +libk,OBJS = $(libk,SRCS:%.c=%.o) +libk.a: ${libk,OBJS} + @echo ' AR $@' + @${AR} ${ARFLAGS} $@ $^ + |