1# $NetBSD: Makefile,v 1.15 2002/03/25 07:43:49 lukem Exp $ 2# 3# Stubs to kill off some things from libc: 4# This save space on a boot system. 5# (See Makefile.inc also.) 6 7LIB= hack 8SRCS= getcap.c getgrent.c getnet.c getnetgr.c getpwent.c \ 9 localeconv.c perror.c setlocale.c \ 10 strerror.c strsignal.c utmp.c yplib.c 11 12WARNS= 1 13NOLINKLIB= # defined 14NOLINT= # defined 15NOPIC= # defined 16NOPROFILE= # defined 17 18realall: libhack.o 19 20libhack.o: libhack.a 21 ${LD} -r -o $@ --whole-archive libhack.a 22 23CLEANFILES+= libhack.o 24 25tpwent: getpwent.c 26 ${CC} -g -o $@.o -DTEST_MAIN -c getpwent.c 27 ${CC} -o $@ $@.o 28 29.include <bsd.lib.mk> 30