summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2015-12-25 17:48:46 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2015-12-25 17:48:46 +0100
commit55556b66bc57be0d82831b9cb353b79816216316 (patch)
tree3fa13809630cb5888d6d42267f52c24339ff2c69 /Makefile
parent543e74e64fcffd0181cb94f63a4a4029e44c7e4f (diff)
compat: add strlcpy, strlcat, for glibc
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index cddef58..b2758a1 100644
--- a/Makefile
+++ b/Makefile
@@ -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: