aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2021-07-14 14:40:24 +0300
committerCem Keylan <cem@ckyln.com>2021-07-14 14:40:24 +0300
commit01e3a0e242b526ae2791de8a0947920e3c9a9ec4 (patch)
treeee0603f44dc76902b0a791e67c186c36493799c7
parent7a3e0182b8224969bb4130accce31a7bedcc6895 (diff)
downloadotools-01e3a0e242b526ae2791de8a0947920e3c9a9ec4.tar.gz
fix makefile
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 2194ac4..77a9d33 100644
--- a/Makefile
+++ b/Makefile
@@ -200,7 +200,11 @@ MANDOCOBJ = \
usr.bin/mandoc/term_tag.o \
usr.bin/mandoc/tree.o
BINOBJ += ${MANDOCOBJ}
-mandoc: ${MANDOCOBJ} ${LIB}
+MANDOCLIBS = ${LIB}
+ifeq (${ZLIB}, lib/libz/libz.a)
+ MANDOCLIBS += ${ZLIB}
+endif
+mandoc: ${MANDOCOBJ} ${MANDOCLIBS}
${CC} ${LDFLAGS} -o $@ ${MANDOCOBJ} ${LIB} ${ZLIB} ${LIBFTS}
# ------------------------------------------------------------------------------
@@ -314,7 +318,10 @@ LIBZOBJ = \
lib/libz/compress.o \
lib/libz/crc32.o \
lib/libz/deflate.o \
- lib/libz/gzio.o \
+ lib/libz/gzclose.o \
+ lib/libz/gzlib.o \
+ lib/libz/gzread.o \
+ lib/libz/gzwrite.o \
lib/libz/infback.o \
lib/libz/inffast.o \
lib/libz/inflate.o \