1 # $NetBSD: Makefile.inc,v 1.22 2007/11/06 19:27:07 martin Exp $
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)
10 # HACKSRC This directory
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
20 HACKOBJS+= getcap.o getgrent.o getnet.o getnetgr.o getpwent.o \
21 localeconv.o multibyte.o perror.o runetable.o setlocale.o \
22 strerror.o strsignal.o syslog.o utmp.o yplib.o
24 CPPFLAGS.runetable.c+= -I${HACKSRC}/../../../lib/libc/citrus \
27 libhack.o: ${HACKOBJS}
28 ${LD} -r -o $@ ${HACKOBJS}
31 # XXX .PATH won't work here, because of crunchgen used by various builds
33 getcap.o: ${HACKSRC}/../../../lib/libc/gen/getcap.c
34 getgrent.o: ${HACKSRC}/getgrent.c
35 gethost.o: ${HACKSRC}/gethost.c
36 getnet.o: ${HACKSRC}/getnet.c
37 getnetgr.o: ${HACKSRC}/getnetgr.c
38 getpwent.o: ${HACKSRC}/getpwent.c
39 localeconv.o: ${HACKSRC}/localeconv.c
40 multibyte.o: ${HACKSRC}/multibyte.c
41 perror.o: ${HACKSRC}/perror.c
42 runetable.o: ${HACKSRC}/../../../lib/libc/locale/runetable.c
43 setlocale.o: ${HACKSRC}/setlocale.c
44 strerror.o: ${HACKSRC}/strerror.c
45 strsignal.o: ${HACKSRC}/strsignal.c
46 syslog.o: ${HACKSRC}/syslog.c
47 utmp.o: ${HACKSRC}/utmp.c
48 yplib.o: ${HACKSRC}/yplib.c