Makefile.inc revision 1.23.8.2 1 # $NetBSD: Makefile.inc,v 1.23.8.2 2014/05/22 12:01:35 yamt 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 CPPFLAGS+= -DSMALL
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
23
24 CPPFLAGS.runetable.c+= -I${HACKSRC}/../../../lib/libc/citrus \
25 -DALL_80_TO_FF_SW1
26
27 CPPFLAGS.syslog.c+= -I${HACKSRC}/../../../lib/libc/include
28 CPPFLAGS.gethost.c+= -I${HACKSRC}/../../../lib/libc/net
29
30 libhack.o: ${HACKOBJS}
31 ${LD} -r -o $@ ${HACKOBJS}
32
33
34 # XXX .PATH won't work here, because of crunchgen used by various builds
35
36 getcap.o: ${HACKSRC}/../../../lib/libc/gen/getcap.c
37 getgrent.o: ${HACKSRC}/getgrent.c
38 gethost.o: ${HACKSRC}/gethost.c
39 getnet.o: ${HACKSRC}/getnet.c
40 getnetgr.o: ${HACKSRC}/getnetgr.c
41 getpwent.o: ${HACKSRC}/getpwent.c
42 localeconv.o: ${HACKSRC}/localeconv.c
43 multibyte.o: ${HACKSRC}/multibyte.c
44 perror.o: ${HACKSRC}/perror.c
45 runetable.o: ${HACKSRC}/../../../lib/libc/locale/runetable.c
46 setlocale.o: ${HACKSRC}/setlocale.c
47 strerror.o: ${HACKSRC}/strerror.c
48 strsignal.o: ${HACKSRC}/strsignal.c
49 syslog.o: ${HACKSRC}/syslog.c
50 utmp.o: ${HACKSRC}/utmp.c
51 yplib.o: ${HACKSRC}/yplib.c
52