aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/mrouted/Makefile.inc
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1998-03-07 09:49:12 +0000
committerBruce Evans <bde@FreeBSD.org>1998-03-07 09:49:12 +0000
commitb5f50e315864c2ea17348294e97a06e8f3186035 (patch)
tree660fab1a4604a8ffb7fdb4f6bec89753474fe9ae /usr.sbin/mrouted/Makefile.inc
parent06c779979afdce3ff0482c42ff0297a38abf873e (diff)
Use `foo/bar.a' instead of `-Lfoo -lbar' for linking to static internal
libraries so that `ld -f' in can create correct dependencies for yet-to-be-built libraries. Get the default BINDIR correctly (by including ../Makefile.inc recursively. Override the default it it is wrong. Don't override defaults when the defaults are correct. Don't give absolute paths to man page sources.
Notes
Notes: svn path=/head/; revision=34161
Diffstat (limited to 'usr.sbin/mrouted/Makefile.inc')
-rw-r--r--usr.sbin/mrouted/Makefile.inc11
1 files changed, 10 insertions, 1 deletions
diff --git a/usr.sbin/mrouted/Makefile.inc b/usr.sbin/mrouted/Makefile.inc
index dd437b16e9a2..46ce8d7692e8 100644
--- a/usr.sbin/mrouted/Makefile.inc
+++ b/usr.sbin/mrouted/Makefile.inc
@@ -1,2 +1,11 @@
-.include "${.CURDIR}/../../Makefile.inc"
+# $Id$
+
CFLAGS+= -DRSRR
+
+.if exists(${.OBJDIR}/../common)
+LIBMROUTED= ${.OBJDIR}/../common/libmrouted.a
+.else
+LIBMROUTED= ${.CURDIR}/../common/libmrouted.a
+.endif
+
+.include "../Makefile.inc"