Home | History | Annotate | Line # | Download | only in libhack
      1 # $NetBSD: Makefile,v 1.26 2019/03/28 15:04:41 christos 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 WARNS=		1
      9 NOLINKLIB=	# defined
     10 NOLINT= 	# defined
     11 NOPIC=		# defined
     12 NOPROFILE=	# defined
     13 
     14 HACKSRC?=${.CURDIR}
     15 HACKOBJ?=${.OBJDIR}
     16 
     17 .include "Makefile.inc"
     18 
     19 OBJS=		${HACKOBJS}
     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