NetBSD/distrib/utils/libhack/Makefile
2000-05-18 00:43:05 +00:00

41 lines
847 B
Makefile

# $NetBSD: Makefile,v 1.10 2000/05/18 00:43:06 matt 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 perror.c setlocale.c \
strerror.c strsignal.c utmp.c yplib.c
.ifndef NOLIBHACKOPENDIR
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
COPTS+= -Os
WARNS= 1
MKPIC= no
MKLINT= no
MKPROFILE=no
all: libhack.a libhack.o
libhack.o : $(HACKOBJS)
$(LD) -r -o $@ $(HACKOBJS)
CLEANFILES+= libhack.o
tpwent: getpwent.c
$(CC) -g -o $@.o -DTEST_MAIN -c getpwent.c
$(CC) -o $@ $@.o
.include <bsd.lib.mk>