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