Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/utils/libhack Combine the Makefile.inc and Makefile, ...



details:   https://anonhg.NetBSD.org/src/rev/6984d2b76e43
branches:  trunk
changeset: 476723:6984d2b76e43
user:      dan <dan%NetBSD.org@localhost>
date:      Sun Sep 26 04:49:37 1999 +0000

description:
Combine the Makefile.inc and Makefile, and specify the $(HACKOBJS)
directly to work around the fact that $(OBJS) seems to produce a double list of
each .o for some reason.

XXX Why does $(OBJS) list doubles?

diffstat:

 distrib/utils/libhack/Makefile |  15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diffs (37 lines):

diff -r d20fe799e225 -r 6984d2b76e43 distrib/utils/libhack/Makefile
--- a/distrib/utils/libhack/Makefile    Sun Sep 26 04:43:45 1999 +0000
+++ b/distrib/utils/libhack/Makefile    Sun Sep 26 04:49:37 1999 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 1999/06/27 12:56:01 mrg Exp $
+# $NetBSD: Makefile,v 1.9 1999/09/26 04:49:37 dan Exp $
 #
 # Stubs to kill off some things from libc:
 # This save space on a boot system.
@@ -12,6 +12,14 @@
 SRCS+=        opendir.c
 .endif
 
+
+HACKOBJS= getcap.o getgrent.o gethost.o getnet.o getnetgr.o getpwent.o \
+       localeconv.o perror.o setlocale.o \
+       strerror.o strsignal.o utmp.o yplib.o
+.ifndef NOLIBHACKOPENDIR
+HACKOBJS+= opendir.o
+.endif
+
 WARNS= 1
 MKPIC= no
 MKLINT= no
@@ -19,9 +27,10 @@
 
 all: libhack.a libhack.o
 
+libhack.o : $(HACKOBJS)
+       $(LD) -r -o $@ $(HACKOBJS)
+
 CLEANFILES+=  libhack.o
-libhack.o : $(OBJS)
-       $(LD) -r -o $@ $(OBJS)
 
 tpwent: getpwent.c
        $(CC) -g -o $@.o -DTEST_MAIN -c getpwent.c



Home | Main Index | Thread Index | Old Index