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