summaryrefslogtreecommitdiff
path: root/package/toolbox/src/lib/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2018-02-25 13:53:05 +0000
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2018-02-25 13:53:11 +0000
commit9d7518c2cb43f1fb1eb54495899945523fd5dc99 (patch)
tree57fcfe56162934f5f78b3b22920623546c8d126c /package/toolbox/src/lib/Makefile
parent30f5a076475d08daa882fa2e636a19200877aa33 (diff)
toolbox: add OpenADK toolbox for very small systems, thx Thorsten Glaser
Diffstat (limited to 'package/toolbox/src/lib/Makefile')
-rw-r--r--package/toolbox/src/lib/Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/package/toolbox/src/lib/Makefile b/package/toolbox/src/lib/Makefile
new file mode 100644
index 000000000..4954e48c4
--- /dev/null
+++ b/package/toolbox/src/lib/Makefile
@@ -0,0 +1,24 @@
+LIB= oadk_toolbox
+SRCS+= fgetln.c
+SRCS+= md5.c md5hlp.c
+CLEANFILES+= lib${LIB}.a
+
+include ../common.mk
+
+OBJS+= strlcpy.o strlcat.o
+
+all: lib${LIB}.a
+
+lib${LIB}.a: ${OBJS}
+ ar rc $@ ${OBJS}
+ -ranlib $@
+
+CFLAGS_strlcpy.o=-DOUTSIDE_OF_LIBKERN -DL_strlcpy
+strlcpy.o: strlfun.c
+ ${COMPILE.c} -o $@ $<
+CFLAGS_strlcat.o=-DOUTSIDE_OF_LIBKERN -DL_strlcat
+strlcat.o: strlfun.c
+ ${COMPILE.c} -o $@ $<
+
+install:
+ # nothing to do here