1 # $NetBSD: Makefile.inc,v 1.2.6.1 1996/09/13 20:01:57 gwr 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= gethost.o getpwent.o getgrent.o getnetgr.o \ 7 setlocale.o yplib.o 8 9 libhack.o : $(HACKOBJS) 10 $(LD) -r -o $@ $(HACKOBJS) 11 12 gethost.o : ${HACKSRC}/gethost.c 13 $(CC) -c ${HACKSRC}/gethost.c 14 15 getpwent.o : ${HACKSRC}/getpwent.c 16 $(CC) -c ${HACKSRC}/getpwent.c 17 18 getgrent.o : ${HACKSRC}/getgrent.c 19 $(CC) -c ${HACKSRC}/getgrent.c 20 21 getnetgr.o : ${HACKSRC}/getnetgr.c 22 $(CC) -c ${HACKSRC}/getnetgr.c 23 24 setlocale.o : ${HACKSRC}/setlocale.c 25 $(CC) -c ${HACKSRC}/setlocale.c 26 27 yplib.o : ${HACKSRC}/yplib.c 28 $(CC) -c ${HACKSRC}/yplib.c 29 30