Makefile.inc revision 1.1 1 # $NetBSD: Makefile.inc,v 1.1 1995/10/08 23:08:48 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
8 libhack.o : $(HACKOBJS)
9 $(LD) -r -o $@ $(HACKOBJS)
10
11 gethost.o : ${HACKSRC}/gethost.c
12 $(CC) -c ${HACKSRC}/gethost.c
13
14 getpwent.o : ${HACKSRC}/getpwent.c
15 $(CC) -c ${HACKSRC}/getpwent.c
16
17 getgrent.o : ${HACKSRC}/getgrent.c
18 $(CC) -c ${HACKSRC}/getgrent.c
19
20 getnetgr.o : ${HACKSRC}/getnetgr.c
21 $(CC) -c ${HACKSRC}/getnetgr.c
22