summaryrefslogtreecommitdiff
path: root/package/toolbox/src/lib/Makefile
blob: 4954e48c470c25c85d8b5c0fec22162a67fed2ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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