Makefile.inc revision 1.16 1 # $NetBSD: Makefile.inc,v 1.16 2002/04/06 18:12:50 tsutsui 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 HACKOBJS+= getcap.o getgrent.o getnet.o getnetgr.o getpwent.o \
20 localeconv.o perror.o setlocale.o \
21 strerror.o strsignal.o utmp.o yplib.o
22
23 libhack.o: ${HACKOBJS}
24 ${LD} -r -o $@ ${HACKOBJS}
25
26
27 # XXX .PATH won't work here, because of crunchgen used by various builds
28
29 getcap.o: ${HACKSRC}/getcap.c
30 getgrent.o: ${HACKSRC}/getgrent.c
31 gethost.o: ${HACKSRC}/gethost.c
32 getnet.o: ${HACKSRC}/getnet.c
33 getnetgr.o: ${HACKSRC}/getnetgr.c
34 getpwent.o: ${HACKSRC}/getpwent.c
35 localeconv.o: ${HACKSRC}/localeconv.c
36 perror.o: ${HACKSRC}/perror.c
37 setlocale.o: ${HACKSRC}/setlocale.c
38 strerror.o: ${HACKSRC}/strerror.c
39 strsignal.o: ${HACKSRC}/strsignal.c
40 utmp.o: ${HACKSRC}/utmp.c
41 yplib.o: ${HACKSRC}/yplib.c
42