Home | History | Annotate | Line # | Download | only in libhack
Makefile revision 1.19
      1  1.19  christos # $NetBSD: Makefile,v 1.19 2007/02/03 19:55:51 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.16  christos .PATH.c: ${.CURDIR}/../../../lib/libc/gen
      8  1.16  christos 
      9  1.16  christos CPPFLAGS+=	-DSMALL
     10  1.16  christos 
     11  1.13        tv LIB=		hack
     12  1.15     lukem SRCS=		getcap.c getgrent.c getnet.c getnetgr.c getpwent.c \
     13  1.13        tv 		localeconv.c perror.c setlocale.c \
     14  1.19  christos 		mbrtowc.c wcrtomb.c \
     15  1.17  christos 		strerror.c strsignal.c syslog.c utmp.c yplib.c
     16   1.7       gwr 
     17  1.13        tv WARNS=		1
     18  1.13        tv NOLINKLIB=	# defined
     19  1.13        tv NOLINT= 	# defined
     20  1.13        tv NOPIC=		# defined
     21  1.13        tv NOPROFILE=	# defined
     22   1.9       dan 
     23  1.13        tv realall: libhack.o
     24   1.7       gwr 
     25  1.13        tv libhack.o: libhack.a
     26  1.13        tv 	${LD} -r -o $@ --whole-archive libhack.a
     27   1.9       dan 
     28  1.13        tv CLEANFILES+=	libhack.o
     29   1.2       gwr 
     30   1.2       gwr tpwent: getpwent.c
     31  1.13        tv 	${CC} -g -o $@.o -DTEST_MAIN -c getpwent.c
     32  1.13        tv 	${CC} -o $@ $@.o
     33   1.1       gwr 
     34   1.1       gwr .include <bsd.lib.mk>
     35