home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fonts 1 / freshfonts1.bin / bbs / programs / amiga / makeindex.lha / makeindex-2.12 / src / makefile.kcc < prev    next >
Makefile  |  1989-12-12  |  3KB  |  124 lines

  1. #  Makefile modified for DEC-20 (KCC-20 compiler) [13-Jan-88] (only major
  2. #  targets supported)
  3. #
  4. #  Makefile for the program `makeindex'
  5. #
  6. #  Copyright (C) 1987    Pehong Chen    (phc@renoir.berkeley.edu)
  7. #  Computer Science Division
  8. #  University of California, Berkeley
  9. #
  10.  
  11. CC = kcc
  12. O = .rel
  13. X = .exe
  14. INCLUDE = /usr/include/
  15. INCLUDE = c:
  16.  
  17. DEST          = /usr/local/bin
  18. DEST          = TEX:
  19.  
  20. MANDIR          = /usr/local/man/manl
  21. MANDIR          = NUL:
  22.  
  23. MANUAL          = makeindex.l
  24.  
  25. DOC          = makeindex.tex
  26.  
  27. EXTHDRS          = ${INCLUDE}ctype.h \
  28.         ${INCLUDE}stdio.h
  29.  
  30. HDRS          = genind.h \
  31.         mkind.h \
  32.         scanid.h \
  33.         scanst.h
  34.  
  35. # The -Dshort=int is needed for KCC versions before 583 (13-Jan-88);
  36. # that version or later works correctly if it is dropped
  37. CFLAGS        = -DOS_TOPS20 -DKCC_20 -DSHORTNAMES -Dshort=int
  38.  
  39. LDFLAGS          = $(CFLAGS)
  40.  
  41. LIBS          =
  42.  
  43. LINKER          = $(CC)
  44.  
  45. MAKEFILE      = Makefile
  46.  
  47. OBJS          = genind${O} \
  48.         mkind${O} \
  49.         qsort${O} \
  50.         scanid${O} \
  51.         scanst${O} \
  52.         sortid${O}
  53.  
  54. PRINT          = psgrind
  55.  
  56. SRCS          = genind.c \
  57.         mkind.c \
  58.         qsort.c \
  59.         scanid.c \
  60.         scanst.c \
  61.         sortid.c
  62.  
  63. PROGRAM          = makeindex
  64.  
  65. TAR          = $(PROGRAM).tar
  66.  
  67. SHAR          = $(PROGRAM).shar
  68.  
  69. ALL          = $(MAKEFILE) $(DOC) $(MANUAL) $(HDRS) $(SRCS)
  70.  
  71. $(PROGRAM):     $(PROGRAM)$(X)
  72.  
  73. $(PROGRAM)$(X):    $(OBJS)
  74.         $(LINKER) $(LDFLAGS) $(OBJS) $(LIBS) -o makidx$(X)
  75.         reset
  76.         ${MV} makidx$(X) $(PROGRAM)$(X)
  77.  
  78. install:    $(PROGRAM)
  79.         install -c -s -m 0755 $(PROGRAM) $(DEST)
  80.         @ls -lgs $(DEST)/$(PROGRAM)
  81.  
  82. tar:;        @rm -f $(TAR)
  83.         tar -cf $(TAR) $(ALL)
  84.  
  85. shar:;        @rm -f $(SHAR)
  86.         shar $(SHAR) $(ALL)
  87.  
  88. dist:;        cp $(PROGRAM) $(DEST)
  89.         rcp $(PROGRAM) monet:$(DEST)
  90.         rcp $(PROGRAM) arpa:$(DEST)
  91.         rcp $(PROGRAM) harrison@vangogh:bin
  92.  
  93. clean:;        @rm -f $(OBJS) core $(PROGRAM) *${O}ut
  94.  
  95. depend:;    @rm -f .#*.[chly]
  96.         mkmf -f $(MAKEFILE) PROGRAM=$(PROGRAM) DEST=$(DEST)
  97.  
  98. index:;        @ctags -wx $(HDRS) $(SRCS)
  99.  
  100. print:;        @$(PRINT) $(HDRS) $(SRCS)
  101.  
  102. man:;        ptroff -man $(MANUAL)
  103.  
  104. program:        $(PROGRAM)
  105.  
  106. tags:           $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
  107.  
  108. update:        $(DEST)/$(PROGRAM)
  109.  
  110. $(DEST)/$(PROGRAM): $(SRCS) $(HDRS) $(EXTHDRS)
  111.         @make -f $(MAKEFILE) DEST=$(DEST) install
  112.  
  113. # .DEFAULT:;    co $@
  114. ###
  115. genind${O}: mkind.h ${INCLUDE}stdio.h ${INCLUDE}ctype.h \
  116.     genind.h
  117. mkind${O}: mkind.h ${INCLUDE}stdio.h ${INCLUDE}ctype.h
  118. qsort${O}: mkind.h ${INCLUDE}stdio.h
  119. scanid${O}: mkind.h ${INCLUDE}stdio.h ${INCLUDE}ctype.h \
  120.     scanid.h
  121. scanst${O}: mkind.h ${INCLUDE}stdio.h ${INCLUDE}ctype.h \
  122.     scanst.h
  123. sortid${O}: mkind.h ${INCLUDE}stdio.h ${INCLUDE}ctype.h
  124.