Makefile.inc revision 1.14 1 # $NetBSD: Makefile.inc,v 1.14 2002/03/25 07:43:49 lukem Exp $
2 # Include this fragment to build libhack.o
3 # It is .o and not .a to make sure these are the
4 # objects you get (and not the ones in libc.a)
5
6 HACKOBJS= getcap.o getgrent.o getnet.o getnetgr.o getpwent.o \
7 localeconv.o perror.o setlocale.o \
8 strerror.o strsignal.o utmp.o yplib.o
9
10 # If a cut-down gethostby{name,addr}() that only supports /etc/hosts
11 # is required, add:
12 # HACKOBJS+= gethost.o
13
14 libhack.o : $(HACKOBJS)
15 $(LD) -r -o $@ $(HACKOBJS)
16
17 .if ${MACHINE_ARCH} != "sparc64"
18 DBG= -Os
19 .endif
20
21 # XXX .PATH won't work here, because of crunchgen used in the i386 build
22
23 getcap.o: ${HACKSRC}/getcap.c
24 getgrent.o: ${HACKSRC}/getgrent.c
25 gethost.o: ${HACKSRC}/gethost.c
26 getnet.o: ${HACKSRC}/getnet.c
27 getnetgr.o: ${HACKSRC}/getnetgr.c
28 getpwent.o: ${HACKSRC}/getpwent.c
29 localeconv.o: ${HACKSRC}/localeconv.c
30 perror.o: ${HACKSRC}/perror.c
31 setlocale.o: ${HACKSRC}/setlocale.c
32 strerror.o: ${HACKSRC}/strerror.c
33 strsignal.o: ${HACKSRC}/strsignal.c
34 utmp.o: ${HACKSRC}/utmp.c
35 yplib.o: ${HACKSRC}/yplib.c
36