home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d1xx / d172 / spiff.lha / Spiff / Makefile.orig < prev    next >
Makefile  |  1988-11-22  |  4KB  |  143 lines

  1. #
  2. #    START OF LOCAL CONFIGURATION INFORMATION
  3. #    change the following lines to reflect your local environment
  4. #
  5.  
  6. #
  7. #    name of the directory into which the binary should be installed
  8. #        used only when you use  'make install'
  9. #
  10. INSDIR=/usr/tmp
  11.  
  12. #
  13. #    choose one from each of 1) 2) and 3) below
  14. #
  15.  
  16. #
  17. #    1) SELECTION OF OPERATING SYSTEM VARIETY
  18. #        choose a) b) or c)
  19. #
  20. # a) for BSD derivitives, enable the following line
  21. OSFLAG=
  22.  
  23. # b) for XENIX systems, enable the following line
  24. #OSFLAG=-DXENIX
  25.  
  26. # b) for other A.T. and T. derivitives, enable the following line
  27. #OSFLAG=-DATT
  28.  
  29. #
  30. #     2) SELECTION OF TERMINAL CONTROL LIBRARY
  31. #        choose either of a) b) or c)
  32. #
  33. # a) if you use termcap, enable the following lines
  34. TFLAG=-DM_TERMCAP
  35. TLIB=termcap
  36.  
  37. # b) if you are using terminfo on a XENIX machine, enable the following lines
  38. #TFLAG=-DM_TERMINFO
  39. #TLIB=tinfo
  40.  
  41. # c) if you use terminfo on any other type of machine,
  42. #    enable the following lines
  43. #TFLAG=-DM_TERMINFO
  44. #TLIB=curses
  45.  
  46. #
  47. #    3) SELECTION OF WINDOW MANAGER AVAILABILITY
  48. #
  49. # if you have the Bellcore's MGR window manager, enable the following lines
  50. #VISFLAG=-DMGR
  51. #VISLIB=/usr/public/pkg/mgr/lib/libmgr.a
  52. #MGRINCDIR=-I/usr/public/pkg/mgr/include
  53. #MGRINCS=$(MGRINC)/dump.h $(MGRINC)/term.h $(MGRINC)/restart.h $(MGRINC)/window.h
  54.  
  55. #
  56. #    END OF LOCAL CONFIGRATION INFORMATION, the rest of this
  57. #    file may be modified only at great risk
  58. #        -- caveat hackor
  59. #
  60.  
  61. #                        Copyright (c) 1988 Bellcore
  62. #                            All Rights Reserved
  63. #       Permission is granted to copy or use this program, EXCEPT that it
  64. #       may not be sold for profit, the copyright notice must be reproduced
  65. #       on copies, and credit should be given to Bellcore where it is due.
  66. #       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  67. #
  68.  
  69. CC=cc
  70. OBJ= spiff.o output.o compare.o float.o strings.o exact.o miller.o parse.o command.o comment.o tol.o line.o token.o floatrep.o misc.o visual.o
  71. CFILES= spiff.c output.c compare.c float.c strings.c exact.c miller.c parse.c command.c comment.c tol.c line.c floatrep.c token.c misc.c visual.c
  72. HFILES=misc.h strings.h line.h float.h floatrep.h tol.h command.h comment.h token.h edit.h parse.h compare.h flagdefs.h exact.h miller.h visual.h output.h
  73. OTHER=README Makefile Sample.1 Sample.2 Sample.3 Sample.4 paper.ms paper.out
  74. MANPAGE=spiff.1
  75.  
  76. CFLAGS=-O $(OSFLAG) $(TFLAG) $(VISFLAG)
  77.  
  78. default: spiff
  79.  
  80. spiff: $(OBJ)
  81.     $(CC) $(CFLAGS) -o spiff $(OBJ) $(VISLIB) -l$(TLIB)
  82.  
  83. spiff.o: spiff.c misc.h line.h token.h tol.h command.h edit.h parse.h compare.h flagdefs.h exact.h miller.h visual.h
  84.  
  85. visual.o: visual.c misc.h visual.h $(MGRINCS)
  86.     $(CC) -c $(CFLAGS) $(MGRINCDIR) visual.c
  87.  
  88. misc.o: misc.c visual.h misc.h
  89.  
  90. parse.o:  parse.c misc.h line.h command.h float.h tol.h comment.h parse.h token.h flagdefs.h
  91.     @echo compiler may report 4 statement not reached warning messages for parse.c
  92.     $(CC) $(CFLAGS) -c parse.c
  93.  
  94. command.o: command.c float.h tol.h misc.h
  95.  
  96. comment.o: comment.c misc.h comment.h
  97.  
  98. tol.o: tol.c tol.h float.h
  99.  
  100. output.o: output.c output.h misc.h edit.h flagdefs.h
  101.  
  102. compare.o: compare.c misc.h strings.h float.h tol.h token.h line.h compare.h flagdefs.h
  103.     @echo compiler may report 1 statement not reached warning message for compare.c
  104.     $(CC) $(CFLAGS) -c compare.c
  105.  
  106. float.o: float.c misc.h strings.h float.h floatrep.h
  107.  
  108. floatrep.o: floatrep.c misc.h strings.h floatrep.h
  109.  
  110. strings.o: strings.c  misc.h strings.h
  111.  
  112. exact.o: exact.c exact.h misc.h edit.h
  113.  
  114. miller.o: miller.c miller.h misc.h edit.h token.h
  115.  
  116. token.o: token.c token.h misc.h
  117.  
  118. line.o: line.c line.h misc.h
  119.  
  120. clean:
  121.     rm -f *.o
  122. clobber: clean
  123.     rm -f spiff
  124. ci:
  125.     ci -l -q  '-m $(CIMSG)' $(CFILES) $(HFILES) $(OTHER) $(MANPAGE)
  126. col:
  127.     co -l  $(CFILES) $(HFILES) $(OTHER) $(MANPAGE)
  128. cirev:
  129.     ci -l -r$(REV)  '-m $(CIMSG)' $(CFILES) $(HFILES) $(OTHER) $(MANPAGE)
  130. cirel:
  131.     ci -l -q  -sRel  $(CFILES) $(HFILES) $(OTHER) $(MANPAGE)
  132. lint: 
  133.     lint  $(CFLAGS) $(CFILES)
  134. cpio:
  135.     for i in $(CFILES) $(HFILES) $(OTHER) $(MANPAGE); do echo $$i; done | cpio -ocv  > spiff.cpio
  136.  
  137. cmd:
  138.     -$(CMD) $(CFILES) $(HFILES) $(OTHER) $(MANPAGE)
  139. install:
  140.     mv spiff $(INSDIR)/bin
  141.     cp $(MANPAGE) $(INSDIR)/man/man1
  142.     
  143.