NetBSD/distrib/utils/libhack/Makefile

30 lines
620 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.15 2002/03/25 07:43:49 lukem Exp $
#
# Stubs to kill off some things from libc:
# This save space on a boot system.
1997-12-12 06:36:38 +03:00
# (See Makefile.inc also.)
LIB= hack
SRCS= getcap.c getgrent.c getnet.c getnetgr.c getpwent.c \
localeconv.c perror.c setlocale.c \
strerror.c strsignal.c utmp.c yplib.c
1999-05-19 07:58:13 +04:00
WARNS= 1
NOLINKLIB= # defined
NOLINT= # defined
NOPIC= # defined
NOPROFILE= # defined
realall: libhack.o
1999-05-19 07:58:13 +04:00
libhack.o: libhack.a
${LD} -r -o $@ --whole-archive libhack.a
CLEANFILES+= libhack.o
1995-10-13 21:10:06 +03:00
tpwent: getpwent.c
${CC} -g -o $@.o -DTEST_MAIN -c getpwent.c
${CC} -o $@ $@.o
1995-10-13 21:10:06 +03:00
.include <bsd.lib.mk>