home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume3 / uumail2 / makefile < prev    next >
Makefile  |  1986-11-30  |  3KB  |  109 lines

  1. ####################################################################
  2. # makefile for uumail & uupath
  3. # program to integrate with pathalias created uucpmap databases
  4. # programs originally developed by Jeff Donnelly
  5. # updated to use pathalias database by Stan Barber
  6. # $Header: makefile,v 1.4 85/12/10 20:40:45 sob Exp $
  7. #
  8. # the following defines should be configured for you site
  9. # add -DDBM to CCFLAGS if your pathalias database used the
  10. # dbm(3) routines
  11. # if you are a ATT system III or system V site
  12. # or a masscomp add the -DSYSIII flags
  13. # If you want to use the opath subroutine to deal with
  14. # domain names add the -DOPATH flag to the CFLAGS line
  15. # you may want to modify the LIBS line to correspond to 
  16. # libraries that you may need at you site
  17. # see conf.h for other changes that may need be made
  18. # If you DO NOT use a DBM formatted database and would like to
  19. # get the best possible speed from uumail, add the -DSORTED
  20. # flag and be sure to sort your database
  21. # IMPORTANT INFORMATION ABOUT UUCP
  22. # If your uucp does not understand the -g (grade) flag
  23. # add the -DNOGRADE flag to CFLAGS.
  24. # If your uucp does not know about the -a (returnto) flag
  25. # add the -DNORETURN flag to CFLAGS
  26. # $Log:    makefile,v $
  27. # Revision 1.4  85/12/10  20:40:45  sob
  28. # Added install, mailer and all make options. Also defined BINDIR, UUCPDIR
  29. # and other useful things
  30. # Revision 1.3  85/08/03  00:38:33  UUCP
  31. # Added support for shar and RCS.
  32. # Changed name of gethostname to gethostnam to allow RCS to work right.
  33. # Stan Barber
  34. # Revision 1.2  85/07/11  19:28:52  sob
  35. # updated with gethostname.c
  36. # Revision 1.1  85/07/11  19:23:22  sob
  37. # Initial revision
  38. ###############################################################
  39. .SUFFIXES: .c,v .h,v
  40.  
  41. CFLAGS= -O -DSYSIII -DDEBUG -DOPATH -DUGLYUUCP -DLOG -DSORTED
  42.  
  43. LIBS=
  44.  
  45. BINDIR=/usr/lbin
  46.  
  47. UUCPDIR=/usr/lib/uucp
  48.  
  49. LIBDIR=/usr/lib
  50.  
  51. .c,v.c:
  52.     co -q $*.c
  53.  
  54. .h,v.h:
  55.     co -q $*.h
  56.  
  57. all: uumail rmail address
  58.  
  59. uumail: getpath.o uumail.o gethostnam.o opath.o
  60.     cc $(CFLAGS) getpath.o uumail.o gethostnam.o opath.o -o uumail $(LIBS)
  61.  
  62. address:address.o opath.o getpath.o
  63.     cc $(CFLAGS) address.o opath.o getpath.o -o address $(LIBS)
  64.  
  65. getpath.o: getpath.c uuconf.h
  66.  
  67. uupath.o: uupath.c uuconf.h
  68.  
  69. uumail.o: uumail.c uuconf.h
  70.  
  71. gethostnam.o:gethostnam.c
  72.  
  73. address.o:address.c
  74.  
  75. opath.o:opath.c
  76.  
  77. rmail: rmail.c gethostnam.o
  78.     cc $(CFLAGS) rmail.c gethostnam.o -o rmail $(LIBS)
  79.  
  80. install: uumail address domains palias
  81.     cp address $(BINDIR)
  82.     cp uumail domains palias $(UUCPDIR)
  83.     @echo "To install rmail in place of the current rmail, type"
  84.     @echo "make mailer"
  85.     ln $(UUCPDIR)/uumail $(BINDIR)/uupath
  86.  
  87. mailer: rmail
  88.     make install
  89.     rm -rf /bin/rmail
  90.     cp rmail /bin/rmail
  91.     
  92.  
  93. lint:
  94.     lint $(CFLAGS) getpath.c uumail.c gethostnam.c opath.c
  95.  
  96. clean: 
  97.     rm -f *.o *.CKP *.BAK *.bak
  98.  
  99. doc: uumail.1 uupath.1 address.1 opath.3
  100.     nroff -man uumail.1 >uumail.cat; nroff -man uupath.1 >uupath.cat; nroff -man address.1 >address.cat; nroff -man opath.3 >opath.cat
  101.  
  102. shar: domains palias rmail.c opath.c address.c uumail.c uuconf.h gethostnam.c uupath.c getpath.c README makefile uumail.1 uupath.1  opath.3 address.1
  103.     shar README domains palias rmail.c opath.c address.c uumail.c uuconf.h gethostnam.c uupath.c getpath.c makefile uumail.1 uupath.1  opath.3 address.1> shar.out
  104.  
  105.