home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 5 / FreshFish_July-August1994.bin / bbs / util / vim-2.0.lha / Vim-2.0 / src / makefile.dice < prev    next >
Encoding:
Makefile  |  1993-10-15  |  3.0 KB  |  130 lines

  1. #
  2. # Makefile for VIM, using DICE 2.06.40 and 2.06.21
  3. #
  4.  
  5. #>>>>> choose options:
  6. ### -DDIGRAPHS        digraph support (at the cost of 1.6 Kbyte code)
  7. ### -DNO_ARP        do not use arp.library, DOS 2.0 required
  8. ### -DCOMPATIBLE    start in vi-compatible mode
  9. ### -DNOBACKUP        default is no backup file
  10. ### -DDEBUG        output a lot of debugging garbage
  11. ### -DTERMCAP        include termcap file support
  12. ### -DNO_BUILTIN_TCAPS    do not include builtin termcap entries
  13. ###                (use only with -DTERMCAP)
  14. ### -DSOME_BUILTIN_TCAPS include most useful builtin termcap entries
  15. ###                (use only without -DNO_BUILTIN_TCAPS)
  16. ### -DALL_BUILTIN_TCAPS    include all builtin termcap entries
  17. ###                (use only without -DNO_BUILTIN_TCAPS)
  18. DEFINES = -DTERMCAP -DDIGRAPHS -DSOME_BUILTIN_TCAPS
  19.  
  20. #>>>>> if TERMCAP is defined termlib.o has to be used
  21. TERMLIB = termlib.o
  22. #TERMLIB = 
  23.  
  24. #>>>>> end of choices
  25. ###########################################################################
  26.  
  27. CFLAGS = -c -DAMIGA $(DEFINES)
  28.  
  29. INCL = vim.syms
  30. PRE = -H${INCL}=vim.h
  31. LIBS = -lmanx -la
  32. CC = dcc
  33. LD = dcc
  34.  
  35. .c.o:
  36.     ${CC} ${PRE} ${CFLAGS} $*.c -o $@
  37.  
  38. OBJ =    alloc.o amiga.o buffers.o charset.o cmdline.o csearch.o digraph.o \
  39.     edit.o fileio.o help.o linefunc.o main.o mark.o message.o misccmds.o \
  40.     normal.o ops.o param.o quickfix.o regexp.o regsub.o screen.o \
  41.     script.o search.o storage.o tag.o undo.o $(TERMLIB)
  42.  
  43. /Vim: $(OBJ) version.c
  44.     ${CC} $(CFLAGS) version.c -o version.o
  45.     ${LD} -o /Vim $(OBJ) version.o $(LIBS)
  46.  
  47. debug: $(OBJ) version.c
  48.     ${CC} $(CFLAGS) version.c -o version.o
  49.     ${LD} -s -o /Vim $(OBJ) version.o $(LIBS)
  50.  
  51. ctags:
  52.     csh -c ctags *.c *.h
  53.  
  54. # can't use delete here, too many file names
  55. clean:
  56.     csh -c rm -f $(OBJ) version.o mkcmdtab.o /Vim $(INCL) mkcmdtab
  57.  
  58. $(INCL)  : vim.h globals.h keymap.h macros.h ascii.h term.h amiga.h
  59.     delete $(INCL)
  60.  
  61. ###########################################################################
  62.  
  63. alloc.o:    alloc.c  $(INCL)
  64.  
  65. amiga.o:    amiga.c  $(INCL) amiga.h
  66.  
  67. buffers.o:    buffers.c  $(INCL)
  68.  
  69. charset.o:    charset.c  $(INCL)
  70.  
  71. cmdline.o:    cmdline.c  $(INCL) cmdtab.h
  72.  
  73. csearch.o:    csearch.c  $(INCL) regexp.h
  74.  
  75. digraph.o: digraph.c    $(INCL)
  76.  
  77. edit.o: edit.c    $(INCL)
  78.  
  79. fileio.o:    fileio.c  $(INCL)
  80.  
  81. help.o: help.c    $(INCL)
  82.  
  83. linefunc.o:    linefunc.c  $(INCL)
  84.  
  85. main.o: main.c
  86.     ${CC} ${CFLAGS} main.c -o main.o
  87.  
  88. mark.o: mark.c    $(INCL) mark.h
  89.  
  90. message.o:    message.c  $(INCL)
  91.  
  92. misccmds.o:    misccmds.c  $(INCL)
  93.  
  94. normal.o:    normal.c  $(INCL) ops.h
  95.  
  96. ops.o:    ops.c  $(INCL) ops.h
  97.  
  98. param.o:    param.c  $(INCL)
  99. # Because of a bug in DC1 2.06.40, initialisation of unions does not
  100. # work correctly. dc1-21 is DC1 2.06.21 which does work.
  101.     rename dc1-21 dc1
  102.     ${CC} ${CFLAGS} param.c -o param.o
  103.     rename dc1 dc1-21
  104.  
  105. quickfix.o:    quickfix.c  $(INCL)
  106.  
  107. regexp.o:    regexp.c  $(INCL) regexp.h
  108.  
  109. regsub.o:    regsub.c  $(INCL) regexp.h
  110.  
  111. screen.o:    screen.c  $(INCL)
  112.  
  113. script.o:    script.c  $(INCL)
  114.  
  115. search.o:    search.c  $(INCL) regexp.h
  116.  
  117. tag.o:    tags.c  $(INCL) mark.h
  118.  
  119. termlib.o:    termlib.c $(INCL)
  120.  
  121. storage.o:    storage.c  $(INCL)
  122.  
  123. undo.o: undo.c    $(INCL)
  124.  
  125. cmdtab.h: cmdtab.tab mkcmdtab
  126.     mkcmdtab cmdtab.tab cmdtab.h
  127.  
  128. mkcmdtab: mkcmdtab.o
  129.     ${LD} -o mkcmdtab mkcmdtab.o
  130.