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