home *** CD-ROM | disk | FTP | other *** search
/ PC-Online 1996 May / PCOnline_05_1996.bin / linux / source / n / bind / bind-4.001 / bind-4~ / bind-4.9.3-BETA9 / contrib / rfc1101 / Makefile < prev    next >
Makefile  |  1993-07-06  |  1KB  |  43 lines

  1. #    @(#)Makefile    1.6 (Coimbra) 93/06/03
  2.  
  3. PROG=    nettest
  4. SRCS=    main.c  getnetent.c getnetbyname.c getnetnamadr.c getnetbyaddr.c
  5. OBJS=    getnetent.o getnetbyname.o getnetnamadr.o getnetbyaddr.o
  6. CFLAGS=-O -DLIBC_SCCS
  7. LDFLAGS=
  8. LIBS=-lresolv # SunOS needs this
  9.  
  10.  
  11. nettest:    main.o $(OBJS) 
  12.     cc $(LDFLAGS) main.o $(OBJS) $(LIBS) -o $@
  13.  
  14. all:    nettest netstat rfc1101.shar
  15.  
  16. nettest.local:    main.o
  17.     cc $(LDFLAGS) main.o $(LIBS) -o $@
  18.  
  19. rfc1101.shar:    README Makefile $(SRCS)
  20.     shar README Makefile $(SRCS) > $@
  21.  
  22. clean_all:    clean
  23.     rm -f nettest nettest.local netstat rfc1101.shar
  24.  
  25. clean:    
  26.     rm -f main.o netstat.o $(OBJS)
  27.  
  28. NETSTAT_SOURCES= /usr/src/usr.bin/netstat/host.c \
  29.        /usr/src/usr.bin/netstat/inet.c  /usr/src/usr.bin/netstat/if.c \
  30.        /usr/src/usr.bin/netstat/main.c  /usr/src/usr.bin/netstat/mbuf.c \
  31.        /usr/src/usr.bin/netstat/route.c /usr/src/usr.bin/netstat/unix.c \
  32.        /usr/src/usr.bin/netstat/ns.c    /usr/src/usr.bin/netstat/iso.c \
  33.        /usr/src/sys/netiso/tp_astring.c
  34.  
  35. netstat:    netstat.o $(OBJS) 
  36.     cc $(LDFLAGS) netstat.o $(OBJS) $(LIBS) -lkvm -o $@
  37.  
  38. netstat.o:    $(NETSTAT_SOURCES)
  39.     -mkdir /tmp/netstat
  40.     cp $(NETSTAT_SOURCES) /usr/src/usr.bin/netstat/netstat.h /tmp/netstat
  41.     cd /tmp/netstat; cc -c $(CFLAGS) *.c; ld -r -o $@ *.o
  42.     mv /tmp/netstat/$@ . ; rm -r /tmp/netstat
  43.