summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgwr <gwr@NetBSD.org>1999-05-19 03:58:13 +0000
committergwr <gwr@NetBSD.org>1999-05-19 03:58:13 +0000
commitbb4c388e4ee2df9a6a6ef11d082af73ebe0036cf (patch)
treeeb8e28233bed0a2db523ecfcfc5f44575c5c2ed5
parenta68da00556918da5f0f80f2b8156e82d944ca307 (diff)
New files...
-rw-r--r--distrib/utils/libhack/Makefile13
-rw-r--r--distrib/utils/libhack/Makefile.inc21
2 files changed, 14 insertions, 20 deletions
diff --git a/distrib/utils/libhack/Makefile b/distrib/utils/libhack/Makefile
index c21481a6563..021e9c48685 100644
--- a/distrib/utils/libhack/Makefile
+++ b/distrib/utils/libhack/Makefile
@@ -1,17 +1,24 @@
-# $NetBSD: Makefile,v 1.6 1999/03/13 19:08:43 sommerfe Exp $
+# $NetBSD: Makefile,v 1.7 1999/05/19 03:58:13 gwr Exp $
#
# Stubs to kill off some things from libc:
# This save space on a boot system.
# (See Makefile.inc also.)
LIB= hack
-SRCS= getcap.c getgrent.c gethost.c getnet.c getnetgr.c getpwent.c setlocale.c yplib.c
+SRCS= getcap.c getgrent.c gethost.c getnet.c getnetgr.c getpwent.c \
+ localeconv.c opendir.c perror.c setlocale.c \
+ strerror.c strsignal.c utmp.c yplib.c
+
WARNS= 1
MKPIC= no
MKLINT= no
MKPROFILE=no
-all: libhack.a
+all: libhack.a libhack.o
+
+CLEANFILES+= libhack.o
+libhack.o : $(OBJS)
+ $(LD) -r -o $@ $(OBJS)
tpwent: getpwent.c
$(CC) -g -o $@.o -DTEST_MAIN -c getpwent.c
diff --git a/distrib/utils/libhack/Makefile.inc b/distrib/utils/libhack/Makefile.inc
index 2eca6f6b51b..e19958e33ac 100644
--- a/distrib/utils/libhack/Makefile.inc
+++ b/distrib/utils/libhack/Makefile.inc
@@ -1,27 +1,14 @@
-# $NetBSD: Makefile.inc,v 1.6 1999/05/06 18:48:23 wrstuden Exp $
+# $NetBSD: Makefile.inc,v 1.7 1999/05/19 03:58:13 gwr 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 gethost.o getnet.o getnetgr.o getpwent.o \
- setlocale.o yplib.o
+ localeconv.o opendir.o perror.o setlocale.o \
+ strerror.o strsignal.o utmp.o yplib.o
libhack.o : $(HACKOBJS)
$(LD) -r -o $@ $(HACKOBJS)
-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
-
-setlocale.o : ${HACKSRC}/setlocale.c
-
-yplib.o : ${HACKSRC}/yplib.c
+.PATH: ${HACKSRC}