1 1.28 christos # $NetBSD: Makefile.inc,v 1.28 2019/03/28 15:04:41 christos Exp $ 2 1.15 lukem # 3 1.1 gwr # Include this fragment to build libhack.o 4 1.1 gwr # It is .o and not .a to make sure these are the 5 1.1 gwr # objects you get (and not the ones in libc.a) 6 1.15 lukem # 7 1.1 gwr 8 1.15 lukem # 9 1.15 lukem # Required variables: 10 1.15 lukem # HACKSRC This directory 11 1.15 lukem # 12 1.15 lukem # Optional variables: 13 1.15 lukem # HACKOBJS Extra objects to build. 14 1.15 lukem # The following extra objects are available: 15 1.15 lukem # gethost.o cut-down gethostby{name,addr}() 16 1.15 lukem # that only supports /etc/hosts 17 1.15 lukem # 18 1.15 lukem 19 1.17 christos CPPFLAGS+= -DSMALL 20 1.27 manu CPPFLAGS+= -DLIBHACK 21 1.28 christos HACKOBJS+= getcap.o getgrent.o getnet.o getnetgr.o getpwent.o jemalloc.o \ 22 1.22 martin localeconv.o multibyte.o perror.o runetable.o setlocale.o \ 23 1.18 christos strerror.o strsignal.o syslog.o utmp.o yplib.o 24 1.1 gwr 25 1.23 tnozaki CPPFLAGS.runetable.c+= -I${HACKSRC}/../../../lib/libc/citrus \ 26 1.23 tnozaki -DALL_80_TO_FF_SW1 27 1.22 martin 28 1.24 christos CPPFLAGS.syslog.c+= -I${HACKSRC}/../../../lib/libc/include 29 1.28 christos CPPFLAGS.jemalloc.c+= -I${HACKSRC}/../../../lib/libc/include 30 1.25 christos CPPFLAGS.gethost.c+= -I${HACKSRC}/../../../lib/libc/net 31 1.24 christos 32 1.28 christos .if !defined(LIB) 33 1.15 lukem libhack.o: ${HACKOBJS} 34 1.26 christos ${LD} -r -o $@ ${.ALLSRC} 35 1.28 christos .endif 36 1.2 gwr 37 1.26 christos .if 1 38 1.28 christos .PATH.c: \ 39 1.28 christos ${HACKSRC} \ 40 1.28 christos ${HACKSRC}/../../../lib/libc/gen \ 41 1.28 christos ${HACKSRC}/../../../lib/libc/locale \ 42 1.28 christos ${HACKSRC}/../../../lib/libc/stdlib 43 1.26 christos .else 44 1.15 lukem # XXX .PATH won't work here, because of crunchgen used by various builds 45 1.17 christos getcap.o: ${HACKSRC}/../../../lib/libc/gen/getcap.c 46 1.15 lukem getgrent.o: ${HACKSRC}/getgrent.c 47 1.15 lukem gethost.o: ${HACKSRC}/gethost.c 48 1.15 lukem getnet.o: ${HACKSRC}/getnet.c 49 1.15 lukem getnetgr.o: ${HACKSRC}/getnetgr.c 50 1.15 lukem getpwent.o: ${HACKSRC}/getpwent.c 51 1.15 lukem localeconv.o: ${HACKSRC}/localeconv.c 52 1.21 christos multibyte.o: ${HACKSRC}/multibyte.c 53 1.15 lukem perror.o: ${HACKSRC}/perror.c 54 1.28 christos jemalloc.o: ${HACKSRC}/../../../lib/libc/stdlib/jemalloc.c 55 1.22 martin runetable.o: ${HACKSRC}/../../../lib/libc/locale/runetable.c 56 1.15 lukem setlocale.o: ${HACKSRC}/setlocale.c 57 1.15 lukem strerror.o: ${HACKSRC}/strerror.c 58 1.15 lukem strsignal.o: ${HACKSRC}/strsignal.c 59 1.18 christos syslog.o: ${HACKSRC}/syslog.c 60 1.15 lukem utmp.o: ${HACKSRC}/utmp.c 61 1.15 lukem yplib.o: ${HACKSRC}/yplib.c 62 1.26 christos .endif 63