compat: add strlcpy, strlcat, for glibc

This commit is contained in:
Hiltjo Posthuma
2015-12-25 17:48:46 +01:00
parent 543e74e64f
commit 55556b66bc
6 changed files with 119 additions and 4 deletions

View File

@@ -5,6 +5,9 @@ VERSION = 0.1
SRC = \
urmoms.c\
urmoms-index.c
COMPATSRC = \
strlcat.c\
strlcpy.c
BIN = \
urmoms\
urmoms-index
@@ -15,9 +18,9 @@ DOC = \
LICENSE\
README\
TODO
HDR =
HDR = compat.h
OBJ = ${SRC:.c=.o}
OBJ = ${SRC:.c=.o} ${EXTRAOBJ}
all: $(BIN)
@@ -42,10 +45,10 @@ config.h:
@echo creating $@ from config.def.h
@cp config.def.h $@
urmoms: urmoms.o
urmoms: urmoms.o ${EXTRAOBJ}
${CC} -o $@ urmoms.o ${LDFLAGS}
urmoms-index: urmoms-index.o
urmoms-index: urmoms-index.o ${EXTRAOBJ}
${CC} -o $@ urmoms-index.o ${LDFLAGS}
clean: