home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / amiga / vim46src.lha / vim-4.6 / src / makefile.os2 < prev    next >
Encoding:
Makefile  |  1997-01-15  |  3.5 KB  |  128 lines

  1. #
  2. # Makefile for VIM on OS/2 using EMX    vim:ts=8:sw=8:tw=78
  3. #
  4. # Created by: Paul Slootman
  5. #
  6.  
  7. ### This Makefile has been succesfully tested on these systems.
  8. ### Check the (*) column for remarks, listed below.
  9. ### Later code changes may cause small problems, otherwise Vim is supposed to
  10. ### compile and run without problems.
  11. ### Just to show that this is just like the Unix version!
  12.  
  13. #system:              configurations:             version (*) tested by:
  14. #-------------        ------------------------       -------  -  ----------
  15. #OS/2 Warp HPFS       gcc-2.7.2+emx-0.9b -GUI           4.5      Paul Slootman
  16. #OS/2 FAT             gcc-2.6.3+emx      -GUI           4.5      Karsten Sievert
  17.  
  18. #>>>>> choose options:
  19.  
  20. ### See feature.h for a list of optionals.
  21. ### Any other defines can be included here.
  22.  
  23. DEFINES = -DUSE_SYSTEM=1
  24.  
  25. #>>>>> name of the compiler and linker, name of lib directory
  26. CC = gcc
  27.  
  28. #>>>>> end of choices
  29.  
  30. ### Name of target(s)
  31. TARGET = vim.exe
  32.  
  33. ### Names of the tools that are also made
  34. TOOLS = ctags/ctags.exe xxd/xxd.exe tee/tee.exe
  35.  
  36. ###########################################################################
  37.  
  38. INCL = vim.h globals.h option.h keymap.h macros.h ascii.h term.h msdos.h structs.h
  39. CFLAGS = -O2 -fno-strength-reduce -DOS2 -Wall $(DEFINES)
  40.  
  41. OBJ =    alloc.o buffer.o charset.o cmdcmds.o cmdline.o csearch.o digraph.o \
  42.     edit.o fileio.o getchar.o help.o linefunc.o main.o mark.o memfile.o \
  43.     memline.o message.o misccmds.o normal.o ops.o option.o quickfix.o \
  44.     regexp.o regsub.o screen.o search.o tables.o tag.o term.o undo.o \
  45.     window.o unix.o pathdef.o
  46.  
  47. LIBS = -ltermcap
  48.  
  49. # Default target is making the executable
  50. all: $(TARGET) $(TOOLS)
  51.  
  52. # Link the target for normal use
  53. $(TARGET): $(OBJ) version.c
  54.     $(CC) $(CFLAGS) -s -o $(TARGET) version.c $(OBJ) $(LIBS)
  55.  
  56. ctags/ctags.exe: ctags/ctags.c
  57.     cd ctags & $(MAKE) -f Makefile.os2
  58.  
  59. xxd/xxd.exe: xxd/xxd.c
  60.     cd xxd & $(MAKE) -f Makefile.os2
  61.  
  62. tee/tee.exe: tee/tee.c
  63.     cd tee & $(MAKE) -f Makefile
  64.  
  65. clean:
  66.     -del *.o
  67.     -del *.exe
  68.     -del cmdtab.h pathdef.c
  69.     -del *.~ *~ *.bak
  70.     cd ctags & $(MAKE) -f Makefile.os2 clean
  71.     cd xxd   & $(MAKE) -f Makefile.os2 clean
  72.     cd tee   & $(MAKE) -f Makefile clean
  73.  
  74. addcr:    addcr.c addcr.cmd
  75.     $(CC) addcr.c
  76.     cmd /c addcr.cmd
  77.  
  78. addcr.cmd: addcr.bat
  79.     copy addcr.bat addcr.cmd
  80.  
  81. ###########################################################################
  82.  
  83. alloc.o:    alloc.c  $(INCL)
  84. unix.o:        unix.c  $(INCL)
  85. buffer.o:    buffer.c  $(INCL)
  86. charset.o:    charset.c  $(INCL)
  87. cmdcmds.o:    cmdcmds.c  $(INCL)
  88. cmdline.o:    cmdline.c  $(INCL) cmdtab.h
  89. csearch.o:    csearch.c  $(INCL)
  90. digraph.o:    digraph.c  $(INCL)
  91. edit.o:        edit.c  $(INCL)
  92. fileio.o:    fileio.c  $(INCL)
  93. getchar.o:    getchar.c  $(INCL)
  94. help.o:        help.c  $(INCL)
  95. linefunc.o:    linefunc.c  $(INCL)
  96. main.o:        main.c  $(INCL)
  97. mark.o:        mark.c  $(INCL)
  98. memfile.o:    memfile.c  $(INCL)
  99. memline.o:    memline.c  $(INCL)
  100. message.o:    message.c  $(INCL)
  101. misccmds.o:    misccmds.c  $(INCL)
  102. normal.o:    normal.c  $(INCL) ops.h
  103. ops.o:        ops.c  $(INCL) ops.h
  104. option.o:    option.c  $(INCL)
  105. quickfix.o:    quickfix.c  $(INCL)
  106. regexp.o:    regexp.c  $(INCL)
  107. regsub.o:    regsub.c  $(INCL)
  108. screen.o:    screen.c  $(INCL)
  109. search.o:    search.c  $(INCL)
  110. tables.o:    tables.c  $(INCL)
  111. tag.o:        tag.c  $(INCL)
  112. term.o:        term.c  $(INCL)
  113. undo.o:        undo.c  $(INCL)
  114. window.o:    window.c  $(INCL)
  115. pathdef.o:    pathdef.c  $(INCL)
  116.  
  117. pathdef.c: Makefile mk_os2pd.exe
  118.     mk_os2pd "$(CC)" "$(CFLAGS)" > pathdef.c
  119.  
  120. mk_os2pd.exe: mk_os2pd.c feature.h
  121.     $(CC) $(CFLAGS) -s -o mk_os2pd.exe mk_os2pd.c
  122.  
  123. cmdtab.h: cmdtab.tab mkcmdtab.exe
  124.     mkcmdtab cmdtab.tab cmdtab.h
  125.  
  126. mkcmdtab.exe:    mkcmdtab.c
  127.     $(CC) $(CFLAGS) -o mkcmdtab.exe mkcmdtab.c
  128.