Module Name: src
Committed By: christos
Date: Mon Aug 25 14:11:51 UTC 2014
Modified Files:
src/distrib/utils/libhack: Makefile.inc
Log Message:
Use .PATH because the newmake does not apply pattern rules to sources in
other directories. Leave the comment and the old code for now so people
are aware that this might not work.
To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/distrib/utils/libhack/Makefile.inc
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/distrib/utils/libhack/Makefile.inc
diff -u src/distrib/utils/libhack/Makefile.inc:1.25 src/distrib/utils/libhack/Makefile.inc:1.26
--- src/distrib/utils/libhack/Makefile.inc:1.25 Tue Aug 27 05:53:33 2013
+++ src/distrib/utils/libhack/Makefile.inc Mon Aug 25 10:11:51 2014
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.25 2013/08/27 09:53:33 christos Exp $
+# $NetBSD: Makefile.inc,v 1.26 2014/08/25 14:11:51 christos Exp $
#
# Include this fragment to build libhack.o
# It is .o and not .a to make sure these are the
@@ -28,11 +28,13 @@ CPPFLAGS.syslog.c+= -I${HACKSRC}/../../.
CPPFLAGS.gethost.c+= -I${HACKSRC}/../../../lib/libc/net
libhack.o: ${HACKOBJS}
- ${LD} -r -o $@ ${HACKOBJS}
+ ${LD} -r -o $@ ${.ALLSRC}
+.if 1
+.PATH.c: ${HACKSRC} ${HACKSRC}/../../../lib/libc/gen ${HACKSRC}/../../../lib/libc/locale
+.else
# XXX .PATH won't work here, because of crunchgen used by various builds
-
getcap.o: ${HACKSRC}/../../../lib/libc/gen/getcap.c
getgrent.o: ${HACKSRC}/getgrent.c
gethost.o: ${HACKSRC}/gethost.c
@@ -49,3 +51,4 @@ strsignal.o: ${HACKSRC}/strsignal.c
syslog.o: ${HACKSRC}/syslog.c
utmp.o: ${HACKSRC}/utmp.c
yplib.o: ${HACKSRC}/yplib.c
+.endif