Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 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 | |
Bram Moolenaar | 446cb83 | 2008-06-24 21:56:24 +0000 | [diff] [blame] | 7 | ### This Makefile has been successfully tested on these systems. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 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 = 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 os_unix.h structs.h os_os2_cfg.h |
| 39 | CFLAGS = -O2 -fno-strength-reduce -DOS2 -Wall -Iproto $(DEFINES) |
| 40 | |
| 41 | OBJ = \ |
Bram Moolenaar | edac185 | 2010-05-18 20:34:20 +0200 | [diff] [blame] | 42 | blowfish.o \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 43 | buffer.o \ |
| 44 | charset.o \ |
| 45 | diff.o \ |
| 46 | digraph.o \ |
| 47 | edit.o \ |
| 48 | eval.o \ |
| 49 | ex_cmds.o \ |
| 50 | ex_cmds2.o \ |
| 51 | ex_docmd.o \ |
| 52 | ex_eval.o \ |
| 53 | ex_getln.o \ |
| 54 | fileio.o \ |
| 55 | fold.o \ |
| 56 | getchar.o \ |
Bram Moolenaar | 58d9823 | 2005-07-23 22:25:46 +0000 | [diff] [blame] | 57 | hardcopy.o \ |
Bram Moolenaar | c01140a | 2006-03-24 22:21:52 +0000 | [diff] [blame] | 58 | hashtab.o \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 59 | main.o \ |
| 60 | mark.o \ |
| 61 | memfile.o \ |
| 62 | memline.o \ |
| 63 | menu.o \ |
| 64 | message.o \ |
| 65 | misc1.o \ |
| 66 | misc2.o \ |
| 67 | move.o \ |
| 68 | mbyte.o \ |
| 69 | normal.o \ |
| 70 | ops.o \ |
| 71 | option.o \ |
Bram Moolenaar | c01140a | 2006-03-24 22:21:52 +0000 | [diff] [blame] | 72 | popupmnu.o \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 73 | quickfix.o \ |
| 74 | regexp.o \ |
| 75 | screen.o \ |
| 76 | search.o \ |
Bram Moolenaar | edac185 | 2010-05-18 20:34:20 +0200 | [diff] [blame] | 77 | sha256.o \ |
Bram Moolenaar | 217ad92 | 2005-03-20 22:37:15 +0000 | [diff] [blame] | 78 | spell.o \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 79 | syntax.o \ |
| 80 | tag.o \ |
| 81 | term.o \ |
| 82 | ui.o \ |
| 83 | undo.o \ |
| 84 | window.o \ |
| 85 | os_unix.o |
| 86 | |
| 87 | LIBS = -ltermcap |
| 88 | |
| 89 | # Default target is making the executable |
| 90 | all: $(TARGET) $(TOOLS) |
| 91 | |
| 92 | # Link the target for normal use |
| 93 | LFLAGS = -Zcrtdll -s -o $(TARGET) $(LIBS) |
| 94 | |
| 95 | $(TARGET): $(OBJ) version.c version.h |
| 96 | $(CC) $(CFLAGS) version.c $(OBJ) $(LFLAGS) |
| 97 | |
| 98 | xxd/xxd.exe: xxd/xxd.c |
| 99 | cd xxd & $(MAKE) -f Make_os2.mak |
| 100 | |
| 101 | tee/tee.exe: tee/tee.c |
| 102 | cd tee & $(MAKE) -f Makefile |
| 103 | |
| 104 | test: |
| 105 | cd testdir & $(MAKE) -f Make_os2.mak |
| 106 | |
| 107 | clean: |
| 108 | -del *.o |
| 109 | -del *.exe |
| 110 | -del *.~ *~ *.bak |
| 111 | cd xxd & $(MAKE) -f Make_os2.mak clean |
| 112 | cd tee & $(MAKE) -f Makefile clean |
| 113 | |
| 114 | ########################################################################### |
| 115 | |
| 116 | os_unix.o: os_unix.c $(INCL) |
Bram Moolenaar | edac185 | 2010-05-18 20:34:20 +0200 | [diff] [blame] | 117 | blowfish.o: blowfish.c $(INCL) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 118 | buffer.o: buffer.c $(INCL) |
| 119 | charset.o: charset.c $(INCL) |
| 120 | diff.o: diff.c $(INCL) |
| 121 | digraph.o: digraph.c $(INCL) |
| 122 | edit.o: edit.c $(INCL) |
| 123 | eval.o: eval.c $(INCL) |
| 124 | ex_cmds.o: ex_cmds.c $(INCL) |
| 125 | ex_cmds2.o: ex_cmds2.c $(INCL) |
| 126 | ex_docmd.o: ex_docmd.c $(INCL) ex_cmds.h |
| 127 | ex_eval.o: ex_eval.c $(INCL) ex_cmds.h |
| 128 | ex_getln.o: ex_getln.c $(INCL) |
| 129 | fileio.o: fileio.c $(INCL) |
| 130 | fold.o: fold.c $(INCL) |
| 131 | getchar.o: getchar.c $(INCL) |
Bram Moolenaar | 58d9823 | 2005-07-23 22:25:46 +0000 | [diff] [blame] | 132 | hardcopy.o: hardcopy.c $(INCL) |
Bram Moolenaar | c01140a | 2006-03-24 22:21:52 +0000 | [diff] [blame] | 133 | hashtab.o: hashtab.c $(INCL) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 134 | main.o: main.c $(INCL) |
| 135 | mark.o: mark.c $(INCL) |
| 136 | memfile.o: memfile.c $(INCL) |
| 137 | memline.o: memline.c $(INCL) |
| 138 | menu.o: menu.c $(INCL) |
| 139 | message.o: message.c $(INCL) |
| 140 | misc1.o: misc1.c $(INCL) |
| 141 | misc2.o: misc2.c $(INCL) |
| 142 | move.o: move.c $(INCL) |
| 143 | mbyte.o: mbyte.c $(INCL) |
| 144 | normal.o: normal.c $(INCL) |
| 145 | ops.o: ops.c $(INCL) |
| 146 | option.o: option.c $(INCL) |
Bram Moolenaar | c01140a | 2006-03-24 22:21:52 +0000 | [diff] [blame] | 147 | popupmnu.o: popupmnu.c $(INCL) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 148 | quickfix.o: quickfix.c $(INCL) |
| 149 | regexp.o: regexp.c $(INCL) |
| 150 | screen.o: screen.c $(INCL) |
| 151 | search.o: search.c $(INCL) |
Bram Moolenaar | edac185 | 2010-05-18 20:34:20 +0200 | [diff] [blame] | 152 | sha256.o: sha256.c $(INCL) |
Bram Moolenaar | 217ad92 | 2005-03-20 22:37:15 +0000 | [diff] [blame] | 153 | spell.o: spell.c $(INCL) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 154 | syntax.o: syntax.c $(INCL) |
| 155 | tag.o: tag.c $(INCL) |
| 156 | term.o: term.c $(INCL) |
| 157 | ui.o: ui.c $(INCL) |
| 158 | undo.o: undo.c $(INCL) |
| 159 | window.o: window.c $(INCL) |