Home | History | Annotate | Line # | Download | only in libhack
Makefile.inc revision 1.5
      1 # $NetBSD: Makefile.inc,v 1.5 1999/03/13 19:08:43 sommerfe 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= getcap.o getgrent.o gethost.o getnet.o getnetgr.o getpwent.o \
      7 	setlocale.o yplib.o
      8 
      9 libhack.o : $(HACKOBJS)
     10 	$(LD) -r -o $@ $(HACKOBJS)
     11 
     12 getcap.o : ${HACKSRC}/getcap.c
     13 	${CC} ${CFLAGS} -c ${HACKSRC}/getcap.c
     14 
     15 getgrent.o : ${HACKSRC}/getgrent.c
     16 	${CC} ${CFLAGS} -c ${HACKSRC}/getgrent.c
     17 
     18 gethost.o : ${HACKSRC}/gethost.c
     19 	${CC} ${CFLAGS} -c ${HACKSRC}/gethost.c
     20 
     21 getnet.o : ${HACKSRC}/getnet.c
     22 	${CC} ${CFLAGS} -c ${HACKSRC}/getnet.c
     23 
     24 getnetgr.o : ${HACKSRC}/getnetgr.c
     25 	${CC} ${CFLAGS} -c ${HACKSRC}/getnetgr.c
     26 
     27 getpwent.o : ${HACKSRC}/getpwent.c
     28 	${CC} ${CFLAGS} -c ${HACKSRC}/getpwent.c
     29 
     30 setlocale.o : ${HACKSRC}/setlocale.c
     31 	${CC} ${CFLAGS} -c ${HACKSRC}/setlocale.c
     32 
     33 yplib.o : ${HACKSRC}/yplib.c
     34 	${CC} ${CFLAGS} -c ${HACKSRC}/yplib.c
     35 
     36