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