1 1.3 jtc # $NetBSD: Makefile.inc,v 1.3 1996/10/09 00:13:36 jtc Exp $ 2 1.1 gwr # Include this fragment to build libhack.o 3 1.1 gwr # It is .o and not .a to make sure these are the 4 1.1 gwr # objects you get (and not the ones in libc.a) 5 1.1 gwr 6 1.3 jtc HACKOBJS= gethost.o getpwent.o getgrent.o getnetgr.o \ 7 1.3 jtc setlocale.o yplib.o 8 1.1 gwr 9 1.1 gwr libhack.o : $(HACKOBJS) 10 1.1 gwr $(LD) -r -o $@ $(HACKOBJS) 11 1.1 gwr 12 1.1 gwr gethost.o : ${HACKSRC}/gethost.c 13 1.1 gwr $(CC) -c ${HACKSRC}/gethost.c 14 1.1 gwr 15 1.1 gwr getpwent.o : ${HACKSRC}/getpwent.c 16 1.1 gwr $(CC) -c ${HACKSRC}/getpwent.c 17 1.1 gwr 18 1.1 gwr getgrent.o : ${HACKSRC}/getgrent.c 19 1.1 gwr $(CC) -c ${HACKSRC}/getgrent.c 20 1.1 gwr 21 1.1 gwr getnetgr.o : ${HACKSRC}/getnetgr.c 22 1.1 gwr $(CC) -c ${HACKSRC}/getnetgr.c 23 1.3 jtc 24 1.3 jtc setlocale.o : ${HACKSRC}/setlocale.c 25 1.3 jtc $(CC) -c ${HACKSRC}/setlocale.c 26 1.2 gwr 27 1.2 gwr yplib.o : ${HACKSRC}/yplib.c 28 1.2 gwr $(CC) -c ${HACKSRC}/yplib.c 29 1.2 gwr 30