Home | History | Annotate | Line # | Download | only in libhack
Makefile.inc revision 1.16
      1  1.16  tsutsui # $NetBSD: Makefile.inc,v 1.16 2002/04/06 18:12:50 tsutsui Exp $
      2  1.15    lukem #
      3   1.1      gwr # Include this fragment to build libhack.o
      4   1.1      gwr # It is .o and not .a to make sure these are the
      5   1.1      gwr # objects you get (and not the ones in libc.a)
      6  1.15    lukem #
      7   1.1      gwr 
      8  1.15    lukem #
      9  1.15    lukem # Required variables:
     10  1.15    lukem #	HACKSRC		This directory
     11  1.15    lukem #
     12  1.15    lukem # Optional variables:
     13  1.15    lukem #	HACKOBJS	Extra objects to build.
     14  1.15    lukem #			The following extra objects are available:
     15  1.15    lukem #			gethost.o	cut-down gethostby{name,addr}()
     16  1.15    lukem #					that only supports /etc/hosts
     17  1.15    lukem #
     18  1.15    lukem 
     19  1.15    lukem HACKOBJS+=	getcap.o getgrent.o getnet.o getnetgr.o getpwent.o \
     20  1.15    lukem 		localeconv.o perror.o setlocale.o \
     21  1.15    lukem 		strerror.o strsignal.o utmp.o yplib.o
     22   1.1      gwr 
     23  1.15    lukem libhack.o: ${HACKOBJS}
     24  1.15    lukem 	${LD} -r -o $@ ${HACKOBJS}
     25   1.1      gwr 
     26   1.2      gwr 
     27  1.15    lukem # XXX .PATH won't work here, because of crunchgen used by various builds
     28  1.15    lukem 
     29  1.15    lukem getcap.o:	${HACKSRC}/getcap.c
     30  1.15    lukem getgrent.o:	${HACKSRC}/getgrent.c
     31  1.15    lukem gethost.o:	${HACKSRC}/gethost.c
     32  1.15    lukem getnet.o:	${HACKSRC}/getnet.c
     33  1.15    lukem getnetgr.o:	${HACKSRC}/getnetgr.c
     34  1.15    lukem getpwent.o:	${HACKSRC}/getpwent.c
     35  1.15    lukem localeconv.o:	${HACKSRC}/localeconv.c
     36  1.15    lukem perror.o:	${HACKSRC}/perror.c
     37  1.15    lukem setlocale.o:	${HACKSRC}/setlocale.c
     38  1.15    lukem strerror.o:	${HACKSRC}/strerror.c
     39  1.15    lukem strsignal.o:	${HACKSRC}/strsignal.c
     40  1.15    lukem utmp.o:		${HACKSRC}/utmp.c
     41  1.15    lukem yplib.o:	${HACKSRC}/yplib.c
     42