home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume25 / hostcvt / Makefile < prev    next >
Makefile  |  1992-01-03  |  972b  |  47 lines

  1. #
  2. # Makefile for hostcvt and nextserial
  3. #
  4. # $Id: Makefile,v 1.4 91/11/25 17:44:43 rogers Release $
  5. #
  6.  
  7. BINDIR = /etc/named_data/bin
  8. MANDIR = /usr/manl/man8
  9.  
  10. CFLAGS = -O
  11. LDFLAGS = -s
  12.  
  13. all : hostcvt nextserial
  14.  
  15. hostcvt : main.o gethostent.o egetopt.o
  16.     cc $(LDFLAGS) -o hostcvt main.o gethostent.o egetopt.o
  17.  
  18. nextserial : nextserial.c
  19.     cc $(CFLAGS) $(LDFLAGS) -o nextserial nextserial.c
  20.  
  21. egetopt : egetopt.c
  22.     cc $(CFLAGS) $(LDFLAGS) -c egetopt.c
  23.  
  24.  
  25. install : $(BINDIR)/hostcvt $(BINDIR)/nextserial \
  26.     $(MANDIR)/hostcvt.8 $(MANDIR)/nextserial.8
  27.  
  28. $(BINDIR)/hostcvt : hostcvt
  29.     install -c -m 0755 hostcvt $(BINDIR)
  30.  
  31. $(BINDIR)/nextserial : nextserial
  32.     install -c -m 0755 nextserial $(BINDIR)
  33.  
  34. $(MANDIR)/hostcvt.8 : hostcvt.8
  35.     install -c -m 0644 hostcvt.8 $(MANDIR)
  36.  
  37. $(MANDIR)/nextserial.8 : nextserial.8
  38.     install -c -m 0644 nextserial.8 $(MANDIR)
  39.  
  40. lint : main.c gethostent.c nextserial.c
  41.     lint main.c gethostent.c
  42.     lint nextserial.c
  43.  
  44. clean :
  45.     rm -f hostcvt nextserial *.o make.out
  46.  
  47.