Home | History | Annotate | Line # | Download | only in libhack
Makefile revision 1.25.6.1
      1  1.25.6.1  christos # $NetBSD: Makefile,v 1.25.6.1 2019/06/10 21:42:37 christos 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.25.6.1  christos LIB=	hack
      8      1.13        tv WARNS=		1
      9      1.13        tv NOLINKLIB=	# defined
     10      1.13        tv NOLINT= 	# defined
     11      1.13        tv NOPIC=		# defined
     12      1.13        tv NOPROFILE=	# defined
     13       1.9       dan 
     14  1.25.6.1  christos HACKSRC?=${.CURDIR}
     15  1.25.6.1  christos HACKOBJ?=${.OBJDIR}
     16  1.25.6.1  christos 
     17  1.25.6.1  christos .include "Makefile.inc"
     18  1.25.6.1  christos 
     19  1.25.6.1  christos OBJS=		${HACKOBJS}
     20  1.25.6.1  christos 
     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