home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 211.lha / Spiff / Makefile < prev    next >
Makefile  |  1996-02-14  |  4KB  |  159 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/local/bin
  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. VISLIB=
  55. MGRINCDIR=
  56. MGRINCS=
  57.  
  58. #
  59. #    END OF LOCAL CONFIGRATION INFORMATION, the rest of this
  60. #    file may be modified only at great risk
  61. #        -- caveat hackor
  62. #
  63.  
  64. #                        Copyright (c) 1988 Bellcore
  65. #                            All Rights Reserved
  66. #       Permission is granted to copy or use this program, EXCEPT that it
  67. #       may not be sold for profit, the copyright notice must be reproduced
  68. #       on copies, and credit should be given to Bellcore where it is due.
  69. #       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  70. #
  71.  
  72. OBJ =        spiff.o output.o compare.o float.o strings.o exact.o \
  73.         miller.o parse.o command.o comment.o tol.o line.o \
  74.         token.o floatrep.o misc.o visual.o
  75.  
  76. CFILES=        spiff.c output.c compare.c float.c strings.c exact.c \
  77.         miller.c parse.c command.c comment.c tol.c line.c \
  78.         floatrep.c token.c misc.c visual.c
  79.  
  80. HFILES=        misc.h strings.h line.h float.h floatrep.h tol.h \
  81.         command.h comment.h token.h edit.h parse.h compare.h \
  82.         flagdefs.h exact.h miller.h visual.h output.h
  83.  
  84. OTHER=        README Makefile Sample.1 Sample.2 Sample.3 Sample.4 \
  85.         paper.ms paper.out
  86.  
  87. MANPAGE=    spiff.1
  88.  
  89. CFLAGS=        +L +D $(OSFLAG) $(TFLAG) -Damiga
  90. CC =        cc
  91. LD =        ln
  92. LDFLAGS =
  93. LIBS =        -lml32 -lcl32
  94.  
  95. .c.o:
  96.         $(CC) $(CFLAGS) $*.c
  97.  
  98.  
  99. default: spiff
  100.  
  101. spiff :        $(OBJ)
  102.         $(LD) $(LDFLAGS) -o $@ $(OBJ) $(LIBS)
  103.  
  104. 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
  105.  
  106. visual.o: visual.c misc.h visual.h $(MGRINCS)
  107.  
  108. misc.o: misc.c visual.h misc.h
  109.  
  110. parse.o:  parse.c misc.h line.h command.h float.h tol.h comment.h parse.h token.h flagdefs.h
  111.  
  112. command.o: command.c float.h tol.h misc.h
  113.  
  114. comment.o: comment.c misc.h comment.h
  115.  
  116. tol.o: tol.c tol.h float.h
  117.  
  118. output.o: output.c output.h misc.h edit.h flagdefs.h
  119.  
  120. compare.o: compare.c misc.h strings.h float.h tol.h token.h line.h compare.h flagdefs.h
  121.  
  122. float.o: float.c misc.h strings.h float.h floatrep.h
  123.  
  124. floatrep.o: floatrep.c misc.h strings.h floatrep.h
  125.  
  126. strings.o: strings.c  misc.h strings.h
  127.  
  128. exact.o: exact.c exact.h misc.h edit.h
  129.  
  130. miller.o: miller.c miller.h misc.h edit.h token.h
  131.  
  132. token.o: token.c token.h misc.h
  133.  
  134. line.o: line.c line.h misc.h
  135.  
  136. clean:
  137.     rm -f *.o
  138. clobber: clean
  139.     rm -f spiff
  140. ci:
  141.     ci -l -q  '-m $(CIMSG)' $(CFILES) $(HFILES) $(OTHER) $(MANPAGE)
  142. col:
  143.     co -l  $(CFILES) $(HFILES) $(OTHER) $(MANPAGE)
  144. cirev:
  145.     ci -l -r$(REV)  '-m $(CIMSG)' $(CFILES) $(HFILES) $(OTHER) $(MANPAGE)
  146. cirel:
  147.     ci -l -q  -sRel  $(CFILES) $(HFILES) $(OTHER) $(MANPAGE)
  148. lint: 
  149.     lint  $(CFLAGS) $(CFILES)
  150. cpio:
  151.     for i in $(CFILES) $(HFILES) $(OTHER) $(MANPAGE); do echo $$i; done | cpio -ocv  > spiff.cpio
  152.  
  153. cmd:
  154.     -$(CMD) $(CFILES) $(HFILES) $(OTHER) $(MANPAGE)
  155. install:
  156.     mv spiff $(INSDIR)/bin
  157.     cp $(MANPAGE) $(INSDIR)/man/man1
  158.     
  159.