1 1.6.2.2 perry # $NetBSD: Makefile,v 1.6.2.2 1999/07/01 19:38:19 perry 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.1 gwr LIB= hack 8 1.6.2.1 perry SRCS= getcap.c getgrent.c gethost.c getnet.c getnetgr.c getpwent.c \ 9 1.6.2.2 perry localeconv.c perror.c setlocale.c \ 10 1.6.2.1 perry strerror.c strsignal.c utmp.c yplib.c 11 1.6.2.2 perry .ifndef NOLIBHACKOPENDIR 12 1.6.2.2 perry SRCS+= opendir.c 13 1.6.2.2 perry .endif 14 1.6.2.1 perry 15 1.6 sommerfe WARNS= 1 16 1.5 lukem MKPIC= no 17 1.6 sommerfe MKLINT= no 18 1.5 lukem MKPROFILE=no 19 1.1 gwr 20 1.6.2.1 perry all: libhack.a libhack.o 21 1.6.2.1 perry 22 1.6.2.1 perry CLEANFILES+= libhack.o 23 1.6.2.1 perry libhack.o : $(OBJS) 24 1.6.2.1 perry $(LD) -r -o $@ $(OBJS) 25 1.2 gwr 26 1.2 gwr tpwent: getpwent.c 27 1.2 gwr $(CC) -g -o $@.o -DTEST_MAIN -c getpwent.c 28 1.2 gwr $(CC) -o $@ $@.o 29 1.1 gwr 30 1.1 gwr .include <bsd.lib.mk> 31