Makefile revision 1.9
1# $NetBSD: Makefile,v 1.9 1999/09/26 04:49:37 dan 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 gethost.c getnet.c getnetgr.c getpwent.c \ 9 localeconv.c perror.c setlocale.c \ 10 strerror.c strsignal.c utmp.c yplib.c 11.ifndef NOLIBHACKOPENDIR 12SRCS+= opendir.c 13.endif 14 15 16HACKOBJS= getcap.o getgrent.o gethost.o getnet.o getnetgr.o getpwent.o \ 17 localeconv.o perror.o setlocale.o \ 18 strerror.o strsignal.o utmp.o yplib.o 19.ifndef NOLIBHACKOPENDIR 20HACKOBJS+= opendir.o 21.endif 22 23WARNS= 1 24MKPIC= no 25MKLINT= no 26MKPROFILE=no 27 28all: libhack.a libhack.o 29 30libhack.o : $(HACKOBJS) 31 $(LD) -r -o $@ $(HACKOBJS) 32 33CLEANFILES+= libhack.o 34 35tpwent: getpwent.c 36 $(CC) -g -o $@.o -DTEST_MAIN -c getpwent.c 37 $(CC) -o $@ $@.o 38 39.include <bsd.lib.mk> 40