Home | History | Annotate | Line # | Download | only in libhack
Makefile.inc revision 1.2
      1 # $NetBSD: Makefile.inc,v 1.2 1995/10/13 18:10:20 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 
     23 yplib.o : ${HACKSRC}/yplib.c
     24 	$(CC) -c ${HACKSRC}/yplib.c
     25 
     26