aboutsummaryrefslogtreecommitdiff
path: root/mbone
diff options
context:
space:
mode:
authorBill Fenner <fenner@FreeBSD.org>1997-01-14 00:02:05 +0000
committerBill Fenner <fenner@FreeBSD.org>1997-01-14 00:02:05 +0000
commit00d34f8c62e8ebf72bbd0e4636a1843cb866db1e (patch)
tree5af2ddf81e1cdd9d0f151ce863e91e7346c051db /mbone
parentb93d838009a79dd352942913e9da5a44b2a5dc6b (diff)
downloadports-00d34f8c62e8ebf72bbd0e4636a1843cb866db1e.tar.gz
ports-00d34f8c62e8ebf72bbd0e4636a1843cb866db1e.zip
Notes
Diffstat (limited to 'mbone')
-rw-r--r--mbone/nte/Makefile15
1 files changed, 9 insertions, 6 deletions
diff --git a/mbone/nte/Makefile b/mbone/nte/Makefile
index 514f191f91de..ed84650c407a 100644
--- a/mbone/nte/Makefile
+++ b/mbone/nte/Makefile
@@ -3,7 +3,7 @@
# Date created: 5 September 1996
# Whom: Bill Fenner <fenner@FreeBSD.ORG>
#
-# $Id: Makefile,v 1.3 1996/11/26 11:21:25 asami Exp $
+# $Id: Makefile,v 1.4 1996/12/16 16:50:53 fenner Exp $
#
DISTNAME= nt.1.5a23
@@ -26,13 +26,16 @@ USE_X11= yes
# Pass this on to our child
MAKE_ENV= TK_SRC=${TK_SRC}
+.include <bsd.port.mk>
+
#DISGUSTING HACK ALERT
#Although nte includes an hsearch.c for those who don't have it in
# libc, there's no way to get the default Makefile to build it.
# So we build it here.
-pre-build: work/freebsd/hsearch.o
+#This is below the .include <bsd.port.mk> since variable names in
+# targets or dependencies are evaluated when they are read so
+# bsd.port.mk must have defined ${WRKSRC} already.
+pre-build: ${WRKSRC}/freebsd/hsearch.o
-work/freebsd/hsearch.o: work/src/hsearch.c
- ${CC} -Iwork/src ${CFLAGS} -c -o $@ work/src/hsearch.c
-
-.include <bsd.port.mk>
+${WRKSRC}/freebsd/hsearch.o: ${WRKSRC}/src/hsearch.c
+ ${CC} -I${WRKSRC}/src ${CFLAGS} -c -o $@ ${WRKSRC}/src/hsearch.c