NetBSD/distrib/utils/libhack/Makefile
1999-05-19 03:58:13 +00:00

28 lines
574 B
Makefile

# $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 \
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 libhack.o
CLEANFILES+= libhack.o
libhack.o : $(OBJS)
$(LD) -r -o $@ $(OBJS)
tpwent: getpwent.c
$(CC) -g -o $@.o -DTEST_MAIN -c getpwent.c
$(CC) -o $@ $@.o
.include <bsd.lib.mk>