1 1.13 tv # $NetBSD: Makefile,v 1.13 2001/12/12 00:05:10 tv 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.13 tv SRCS= getcap.c getgrent.c gethost.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.8 mrg .ifndef NOLIBHACKOPENDIR 12 1.13 tv SRCS+= opendir.c 13 1.8 mrg .endif 14 1.7 gwr 15 1.13 tv WARNS= 1 16 1.13 tv NOLINKLIB= # defined 17 1.13 tv NOLINT= # defined 18 1.13 tv NOPIC= # defined 19 1.13 tv NOPROFILE= # defined 20 1.9 dan 21 1.13 tv realall: libhack.o 22 1.7 gwr 23 1.13 tv libhack.o: libhack.a 24 1.13 tv ${LD} -r -o $@ --whole-archive libhack.a 25 1.9 dan 26 1.13 tv CLEANFILES+= libhack.o 27 1.2 gwr 28 1.2 gwr tpwent: getpwent.c 29 1.13 tv ${CC} -g -o $@.o -DTEST_MAIN -c getpwent.c 30 1.13 tv ${CC} -o $@ $@.o 31 1.1 gwr 32 1.1 gwr .include <bsd.lib.mk> 33