Home | History | Annotate | Line # | Download | only in libhack
Makefile revision 1.13
      1 # $NetBSD: Makefile,v 1.13 2001/12/12 00:05:10 tv 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 
      7 LIB=		hack
      8 SRCS=		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
     12 SRCS+=		opendir.c
     13 .endif
     14 
     15 WARNS=		1
     16 NOLINKLIB=	# defined
     17 NOLINT= 	# defined
     18 NOPIC=		# defined
     19 NOPROFILE=	# defined
     20 
     21 realall: libhack.o
     22 
     23 libhack.o: libhack.a
     24 	${LD} -r -o $@ --whole-archive libhack.a
     25 
     26 CLEANFILES+=	libhack.o
     27 
     28 tpwent: getpwent.c
     29 	${CC} -g -o $@.o -DTEST_MAIN -c getpwent.c
     30 	${CC} -o $@ $@.o
     31 
     32 .include <bsd.lib.mk>
     33