home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume23 / tua / part01 / Makefile < prev    next >
Encoding:
Makefile  |  1991-09-23  |  3.3 KB  |  124 lines

  1. # Hey! Emacs, this file is in -*- text -*- mode!
  2. # $Id: Makefile,v 3.3 1991/09/01 14:01:58 piggy Rel $
  3. #
  4. # Makefile for "The Uucp Analyzer"
  5. # piggy@idea.sublink.org
  6. #
  7. # make                  to compile and build TUA
  8. # make shar             to create the shar files from the sources
  9. # make clean            clean up the directory
  10. # make veryclean        remove also those sources not checked out with -l
  11. # make checkin            ** USE THIS ** to do all checkins. 
  12. #
  13.  
  14. CURRENT_RELEASE_SYMB = release3-3
  15. LAST_RELEASED_VERSION = release3-3
  16. VERSION = 3.3
  17. PLEVEL = 1
  18. SHELL =    /bin/sh
  19.  
  20. #
  21. # Write here the libs you need to link in the directory package
  22. DIREC_LIB = -lx
  23.  
  24. #
  25. # Uncomment the right place where I can find alloca()
  26. # Do not define anything if you are using gcc
  27. # If you do not have alloca, you can find it in the GNU Emacs distribution, 
  28. # and in some other GNU's package.
  29. # alloca() is used *only* in the GNU getopt package.
  30. ALLOCA_LIB = -lPW        # On SYSV & Xenix
  31. # ALLOCA_LIB = -lalloca
  32. # ALLOCA_LIB = -lGNU
  33.  
  34. # OS TYPE:
  35. # Comment out the next definition if your system is not Sys5-like
  36. # Actually, it just switches between <string.h> and <strings.h> and
  37. # between bstr* <-> str* families of string functions
  38. OS_TYPE = -DUSG
  39.  
  40. # HOST NAME:
  41. # Uncomment the next definition if your system is a System V that
  42. # accesses the system's name via uname instead of gethostname.
  43. GETHOSTNAME = gethostn.o     # On System V
  44.  
  45. LIBS = $(DIREC_LIB) $(ALLOCA_LIB)
  46. CFLAGS = $(OS_TYPE) -Ox
  47. LDFLAGS = -s
  48. COFLAGS = -r$(CURRENT_RELEASE_SYMB)
  49.  
  50. OBJS =    tua.o commtree.o procdaily.o prochist.o procuucico.o procuucp.o \
  51.     procuuxqt.o procuux.o procxfer.o reports.o systree.o usertree.o \
  52.     xferentry.o tmparse.o mem.o getopt.o getopt1.o porttree.o phonesw.o \
  53.         $(GETHOSTNAME)
  54.  
  55. SOURCES = COPYING ChangeLog README PROJECTS Makefile commtree.c hdbstat.h \
  56.         mem.c mem.h MANIFEST \
  57.     procdaily.c prochist.c procuucico.c procuucp.c config.h \
  58.     procuux.c procuuxqt.c procxfer.c reports.c systree.c tua.c \
  59.     usertree.c xferentry.c tmparse.c getopt.c getopt1.c getopt.h \
  60.         patchlevel.h tua.man porttree.c phonesw.c gethostn.c
  61.  
  62. SHARF = $(SOURCES) tua.1l
  63.  
  64. tua:    $(OBJS) 
  65.     $(CC) $(LDFLAGS) -o tua $(OBJS) $(LIBS)
  66.  
  67. $(OBJS):    hdbstat.h config.h
  68. commtree.o systree.o mem.o usertree.o:    mem.h
  69. tua.o:    patchlevel.h getopt.h
  70.  
  71. shar:    $(SHARF)
  72.     rm -f tua.shar.*
  73.     shar -c -o tua.shar -l50 $(SHARF)
  74.  
  75. tua.1l: tua.man
  76.     nroff -man tua.man > tua.1l
  77.  
  78. .PHONY:    clean
  79. clean:
  80.     rm -f *.o core tua.1l tua.shar.* tua *CKP *BAK *~ #*#
  81.  
  82. #
  83. # Use this target ONLY if you have RCS'd all the sources!
  84. # This target remove anything that can be rebuild from RCS
  85. veryclean:    clean
  86.     -rcsclean $(SOURCES)
  87.  
  88. checkin:    veryclean
  89.     -(for i in $(SOURCES) ; \
  90.         do \
  91.             if [ -w $$i ] ;\
  92.                 then ci -N$(CURRENT_RELEASE_SYMB) -r$(VERSION).$(PLEVEL) $$i ;\
  93.             fi ;\
  94.         done;\
  95.     )
  96.  
  97. checkoutall:
  98.     -(for i in $(SOURCES) ; \
  99.         do \
  100.             if [ ! -w $$i ] ;\
  101.                 then co $(COFLAGS) -l $$i ;\
  102.             fi ;\
  103.         done;\
  104.     )
  105.  
  106. release:        checkoutall
  107.     -(for i in $(SOURCES) ; \
  108.         do \
  109.             if [ -w $$i ] ;\
  110.                 then ci -N$(LAST_RELEASED_VERSION) -r$(VERSION) $$i ;\
  111.             fi ;\
  112.         done;\
  113.     )
  114.  
  115. diffs:    $(SOURCES)
  116.     rm -f diffs
  117.     for i in $(SOURCES); \
  118.     do rcsdiff -r$(LAST_RELEASED_VERSION) -r$(CURRENT_RELEASE_SYMB) -c $$i > tmp_diffs; \
  119.         if [ $$? = 1 ] ; then \
  120.             echo "Index: $$i" >> diffs; \
  121.             cat tmp_diffs >> diffs; \
  122.         fi; \
  123.     done
  124.