Add getnet.c

This commit is contained in:
gwr 1997-12-12 03:36:38 +00:00
parent 637548c0c9
commit 727536cab0
2 changed files with 14 additions and 10 deletions

View File

@ -1,11 +1,11 @@
# $NetBSD: Makefile,v 1.3 1996/10/09 00:13:36 jtc Exp $
# $NetBSD: Makefile,v 1.4 1997/12/12 03:36:38 gwr Exp $
#
# Stubs to kill off some things from libc:
# This save space on a boot system.
#
# (See Makefile.inc also.)
LIB= hack
SRCS= getgrent.c gethost.c getnetgr.c getpwent.c \
SRCS= getgrent.c gethost.c getnet.c getnetgr.c getpwent.c \
setlocale.c yplib.c
NOPIC=

View File

@ -1,26 +1,30 @@
# $NetBSD: Makefile.inc,v 1.3 1996/10/09 00:13:36 jtc Exp $
# $NetBSD: Makefile.inc,v 1.4 1997/12/12 03:36:38 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= gethost.o getpwent.o getgrent.o getnetgr.o \
HACKOBJS= getgrent.o gethost.o getnet.o getnetgr.o getpwent.o \
setlocale.o yplib.o
libhack.o : $(HACKOBJS)
$(LD) -r -o $@ $(HACKOBJS)
gethost.o : ${HACKSRC}/gethost.c
$(CC) -c ${HACKSRC}/gethost.c
getpwent.o : ${HACKSRC}/getpwent.c
$(CC) -c ${HACKSRC}/getpwent.c
getgrent.o : ${HACKSRC}/getgrent.c
$(CC) -c ${HACKSRC}/getgrent.c
gethost.o : ${HACKSRC}/gethost.c
$(CC) -c ${HACKSRC}/gethost.c
getnet.o : ${HACKSRC}/getnet.c
$(CC) -c ${HACKSRC}/getnet.c
getnetgr.o : ${HACKSRC}/getnetgr.c
$(CC) -c ${HACKSRC}/getnetgr.c
getpwent.o : ${HACKSRC}/getpwent.c
$(CC) -c ${HACKSRC}/getpwent.c
setlocale.o : ${HACKSRC}/setlocale.c
$(CC) -c ${HACKSRC}/setlocale.c