summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/man/manpath
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/man/manpath')
-rw-r--r--gnu/usr.bin/man/manpath/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/gnu/usr.bin/man/manpath/Makefile b/gnu/usr.bin/man/manpath/Makefile
index 81897ab..76fdf9b 100644
--- a/gnu/usr.bin/man/manpath/Makefile
+++ b/gnu/usr.bin/man/manpath/Makefile
@@ -1,7 +1,12 @@
PROG= manpath
MAN1= manpath.1
SRCS= manpath.c
-LDADD+= -L${.CURDIR}/../lib -lman
+
+.if exists(${.CURDIR}/../lib/obj)
+LDADD= -L${.CURDIR}/../lib/obj -lman
+.else
+LDADD= -L${.CURDIR}/../lib/ -lman
+.endif
CFLAGS+= -I${.CURDIR}/../lib -DMAIN -DSTDC_HEADERS -DPOSIX -DHAS_TROFF -DDO_UNCOMPRESS -DALT_SYSTEMS
OpenPOWER on IntegriCloud