diff options
| author | lukem <lukem@NetBSD.org> | 2002-03-28 04:33:21 +0000 |
|---|---|---|
| committer | lukem <lukem@NetBSD.org> | 2002-03-28 04:33:21 +0000 |
| commit | 484f8db2eb5e84696d088dfb7eaa68267504dbee (patch) | |
| tree | 60349485ab985abf1b2c339325470669a77ff1ae /distrib/utils/libhack | |
| parent | 42e21b0c6ac5a2899f8556cb1cc8744d2a2a919f (diff) | |
- Be consistent how libhack is used: If extra HACKOBJS (e.g., gethost.o) are
required, define them before pulling in libhack/Makefile.inc so that the
dependencies work correctly.
- Other minor cleanups
Diffstat (limited to 'distrib/utils/libhack')
| -rw-r--r-- | distrib/utils/libhack/Makefile.inc | 56 |
1 files changed, 33 insertions, 23 deletions
diff --git a/distrib/utils/libhack/Makefile.inc b/distrib/utils/libhack/Makefile.inc index 629012f3ed4..129c121bcda 100644 --- a/distrib/utils/libhack/Makefile.inc +++ b/distrib/utils/libhack/Makefile.inc @@ -1,35 +1,45 @@ -# $NetBSD: Makefile.inc,v 1.14 2002/03/25 07:43:49 lukem Exp $ +# $NetBSD: Makefile.inc,v 1.15 2002/03/28 04:33:24 lukem Exp $ +# # Include this fragment to build libhack.o # It is .o and not .a to make sure these are the # objects you get (and not the ones in libc.a) +# -HACKOBJS= getcap.o getgrent.o getnet.o getnetgr.o getpwent.o \ - localeconv.o perror.o setlocale.o \ - strerror.o strsignal.o utmp.o yplib.o +# +# Required variables: +# HACKSRC This directory +# +# Optional variables: +# HACKOBJS Extra objects to build. +# The following extra objects are available: +# gethost.o cut-down gethostby{name,addr}() +# that only supports /etc/hosts +# -# If a cut-down gethostby{name,addr}() that only supports /etc/hosts -# is required, add: -# HACKOBJS+= gethost.o +HACKOBJS+= getcap.o getgrent.o getnet.o getnetgr.o getpwent.o \ + localeconv.o perror.o setlocale.o \ + strerror.o strsignal.o utmp.o yplib.o -libhack.o : $(HACKOBJS) - $(LD) -r -o $@ $(HACKOBJS) +libhack.o: ${HACKOBJS} + ${LD} -r -o $@ ${HACKOBJS} .if ${MACHINE_ARCH} != "sparc64" DBG= -Os .endif -# XXX .PATH won't work here, because of crunchgen used in the i386 build -getcap.o: ${HACKSRC}/getcap.c -getgrent.o: ${HACKSRC}/getgrent.c -gethost.o: ${HACKSRC}/gethost.c -getnet.o: ${HACKSRC}/getnet.c -getnetgr.o: ${HACKSRC}/getnetgr.c -getpwent.o: ${HACKSRC}/getpwent.c -localeconv.o: ${HACKSRC}/localeconv.c -perror.o: ${HACKSRC}/perror.c -setlocale.o: ${HACKSRC}/setlocale.c -strerror.o: ${HACKSRC}/strerror.c -strsignal.o: ${HACKSRC}/strsignal.c -utmp.o: ${HACKSRC}/utmp.c -yplib.o: ${HACKSRC}/yplib.c +# XXX .PATH won't work here, because of crunchgen used by various builds + +getcap.o: ${HACKSRC}/getcap.c +getgrent.o: ${HACKSRC}/getgrent.c +gethost.o: ${HACKSRC}/gethost.c +getnet.o: ${HACKSRC}/getnet.c +getnetgr.o: ${HACKSRC}/getnetgr.c +getpwent.o: ${HACKSRC}/getpwent.c +localeconv.o: ${HACKSRC}/localeconv.c +perror.o: ${HACKSRC}/perror.c +setlocale.o: ${HACKSRC}/setlocale.c +strerror.o: ${HACKSRC}/strerror.c +strsignal.o: ${HACKSRC}/strsignal.c +utmp.o: ${HACKSRC}/utmp.c +yplib.o: ${HACKSRC}/yplib.c |
