Makefile.inc revision 1.13 1 # $NetBSD: Makefile.inc,v 1.13 2002/02/03 22:39:52 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 gethost.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 libhack.o : $(HACKOBJS)
11 $(LD) -r -o $@ $(HACKOBJS)
12
13 .if ${MACHINE_ARCH} != "sparc64"
14 DBG= -Os
15 .endif
16
17 # XXX .PATH won't work here, because of crunchgen used in the i386 build
18
19 getcap.o: ${HACKSRC}/getcap.c
20 getgrent.o: ${HACKSRC}/getgrent.c
21 gethost.o: ${HACKSRC}/gethost.c
22 getnet.o: ${HACKSRC}/getnet.c
23 getnetgr.o: ${HACKSRC}/getnetgr.c
24 getpwent.o: ${HACKSRC}/getpwent.c
25 localeconv.o: ${HACKSRC}/localeconv.c
26 perror.o: ${HACKSRC}/perror.c
27 setlocale.o: ${HACKSRC}/setlocale.c
28 strerror.o: ${HACKSRC}/strerror.c
29 strsignal.o: ${HACKSRC}/strsignal.c
30 utmp.o: ${HACKSRC}/utmp.c
31 yplib.o: ${HACKSRC}/yplib.c
32