comparison nt/xemacs.mak @ 213:78f53ef88e17 r20-4b5

Import from CVS: tag r20-4b5
author cvs
date Mon, 13 Aug 2007 10:06:47 +0200
parents acd284d43ca1
children 1f0dabaa0855
comparison
equal deleted inserted replaced
212:d8688acf4c5b 213:78f53ef88e17
1 MSDEV=E:\msdev 1 MSDEV=c:\msdev
2 X11R6=E:\utils\X11R6
3 XEMACS=.. 2 XEMACS=..
4 LISP=$(XEMACS)\lisp 3 LISP=$(XEMACS)\lisp
5 4
5 HAVE_X=0
6 HAVE_MSW=1
7
8 HAVE_MULE=0
9
6 OPT=-Od -Zi 10 OPT=-Od -Zi
7 #OPT=-O2 -G5 -Zi 11 #OPT=-O2 -G5 -Zi
8 12
13 #------------------------------------------------------------------------------
14
15 !if $(HAVE_X)
16 MAGICK=e:\utils\ImageMagick
17 X11R6=e:\utils\X11R6
18
19 X_DEFINES=-DHAVE_X_WINDOWS
20 X_INCLUDES=-I$(X11R6)\include -I$(MAGICK)\Magick
21 X_LIBS=Magick.dll.lib Xaw.lib Xmu.lib Xt.lib SM.lib ICE.lib Xext.lib X11.lib
22 !endif
23
24 !if $(HAVE_MSW)
25 MSW_DEFINES=-DHAVE_MS_WINDOWS
26 !endif
27
28 !if $(HAVE_MULE)
29 MULE_DEFINES=-DMULE
30 !endif
31
9 !include "..\version.sh" 32 !include "..\version.sh"
10 33
11 #------------------------------------------------------------------------------ 34 #------------------------------------------------------------------------------
12 35
13 # Generic variables 36 # Generic variables
14 37
15 INCLUDES=-I$(X11R6)\include -I$(XEMACS)\nt\inc -I$(XEMACS)\src\ 38 INCLUDES=$(X_INCLUDES) -I$(XEMACS)\nt\inc -I$(XEMACS)\src -I$(XEMACS)\lwlib -I"$(MSVCDIR)\include"
16 -I$(XEMACS)\lwlib -I$(MSDEV)\include 39
17 LIBRARIES= 40 DEFINES=$(X_DEFINES) $(MSW_DEFINES) $(MULE_DEFINES) -DWIN32 -D_WIN32 \
41 -D_M_IX86 -D_X86_ \
42 -DWIN32_LEAN_AND_MEAN -DWINDOWSNT -Demacs -DHAVE_CONFIG_H \
43 -D_MSC_VER=999 -D_DEBUG
18 44
19 OUTDIR=obj 45 OUTDIR=obj
20 46
21 #------------------------------------------------------------------------------ 47 #------------------------------------------------------------------------------
22 48
23 default: objdir all 49 default: $(OUTDIR)\nul all
24 50
25 objdir: 51 $(OUTDIR)\nul:
26 @echo "Ignore error message if $(OUTDIR) subdirectory already exists."
27 -@mkdir $(OUTDIR) 52 -@mkdir $(OUTDIR)
28 53
29 XEMACS_INCLUDES=\ 54 XEMACS_INCLUDES=\
30 $(XEMACS)\src\config.h \ 55 $(XEMACS)\src\config.h \
31 $(XEMACS)\src\Emacs.ad.h \ 56 $(XEMACS)\src\Emacs.ad.h \
32 $(XEMACS)\src\paths.h 57 $(XEMACS)\src\paths.h
33 58
34 $(XEMACS_INCLUDES): 59 $(XEMACS_INCLUDES):
35 !"copy *.h $(XEMACS)\src" 60 !copy *.h $(XEMACS)\src
36 61
37 #------------------------------------------------------------------------------ 62 #------------------------------------------------------------------------------
38 63
39 # LASTFILE Library 64 # LASTFILE Library
40 65
50 $(OUTDIR)\lastfile.obj: $(LASTFILE_SRC)\lastfile.c 75 $(OUTDIR)\lastfile.obj: $(LASTFILE_SRC)\lastfile.c
51 $(CC) $(LASTFILE_FLAGS) $** 76 $(CC) $(LASTFILE_FLAGS) $**
52 77
53 #------------------------------------------------------------------------------ 78 #------------------------------------------------------------------------------
54 79
80 !if $(HAVE_X)
81
55 # LWLIB Library 82 # LWLIB Library
56 83
57 LWLIB=$(OUTDIR)\lwlib.lib 84 LWLIB=$(OUTDIR)\lwlib.lib
58 LWLIB_SRC=$(XEMACS)\lwlib 85 LWLIB_SRC=$(XEMACS)\lwlib
59 LWLIB_FLAGS=-nologo -w $(OPT) $(INCLUDES) -D "WIN32" -D "_DEBUG" \ 86 LWLIB_FLAGS=-nologo -w $(OPT) $(INCLUDES) $(DEFINES) \
60 -D "_NTSDK" -D "_M_IX86" -D "_X86_" \ 87 -DNEED_ATHENA -DNEED_LUCID \
61 -D "NEED_ATHENA" -D "NEED_LUCID" \ 88 -D_WINDOWS -DMENUBARS_LUCID -DSCROLLBARS_LUCID -DDIALOGS_ATHENA \
62 -D "_WINDOWS" -D "MENUBARS_LUCID" -D "SCROLLBARS_LUCID" -D "DIALOGS_ATHENA" \ 89 -Fo$@ -c
63 -D "WINDOWSNT" -Fo$@ -c
64 LWLIB_OBJS= \ 90 LWLIB_OBJS= \
65 $(OUTDIR)\lwlib-config.obj \ 91 $(OUTDIR)\lwlib-config.obj \
66 $(OUTDIR)\lwlib-utils.obj \ 92 $(OUTDIR)\lwlib-utils.obj \
67 $(OUTDIR)\lwlib-Xaw.obj \ 93 $(OUTDIR)\lwlib-Xaw.obj \
68 $(OUTDIR)\lwlib-Xlw.obj \ 94 $(OUTDIR)\lwlib-Xlw.obj \
69 $(OUTDIR)\lwlib.obj \ 95 $(OUTDIR)\lwlib.obj \
70 $(OUTDIR)\xlwmenu.obj \ 96 $(OUTDIR)\xlwmenu.obj \
71 $(OUTDIR)\xlwscrollbar.obj 97 $(OUTDIR)\xlwscrollbar.obj
72 98
73 $(LWLIB): $(XEMACS_INCLUDES) $(LWLIB_OBJS) 99 $(LWLIB): $(XEMACS_INCLUDES) $(LWLIB_OBJS)
74 link.exe -lib -nologo -debug -debugtype:both -out:$@ $(LWLIB_OBJS) 100 link.exe -lib -nologo -debugtype:both -out:$@ $(LWLIB_OBJS)
75 101
76 $(OUTDIR)\lwlib-config.obj: $(LWLIB_SRC)\lwlib-config.c 102 $(OUTDIR)\lwlib-config.obj: $(LWLIB_SRC)\lwlib-config.c
77 $(CC) $(LWLIB_FLAGS) $** 103 $(CC) $(LWLIB_FLAGS) $**
78 104
79 $(OUTDIR)\lwlib-utils.obj: $(LWLIB_SRC)\lwlib-utils.c 105 $(OUTDIR)\lwlib-utils.obj: $(LWLIB_SRC)\lwlib-utils.c
92 $(CC) $(LWLIB_FLAGS) $** 118 $(CC) $(LWLIB_FLAGS) $**
93 119
94 $(OUTDIR)\xlwscrollbar.obj: $(LWLIB_SRC)\xlwscrollbar.c 120 $(OUTDIR)\xlwscrollbar.obj: $(LWLIB_SRC)\xlwscrollbar.c
95 $(CC) $(LWLIB_FLAGS) $** 121 $(CC) $(LWLIB_FLAGS) $**
96 122
123 !endif
97 #------------------------------------------------------------------------------ 124 #------------------------------------------------------------------------------
98 125
99 # lib-src programs 126 # lib-src programs
100 127
101 LIB_SRC=$(XEMACS)\lib-src 128 LIB_SRC=$(XEMACS)\lib-src
102 LIB_SRC_FLAGS=$(INCLUDES) -D_DEBUG -DWIN32 -D_WIN32 -DWIN32_LEAN_AND_MEAN \ 129 LIB_SRC_FLAGS=$(INCLUDES) $(DEFINES) -ML
103 -D_NTSDK -D_M_IX86 -ML -D_X86_ -Demacs -DHAVE_CONFIG_H -D_MSC_VER=999
104 LIB_SRC_LIBS= kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib\ 130 LIB_SRC_LIBS= kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib\
105 advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib \ 131 advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib libc.lib
106 odbccp32.lib libc.lib
107 LIB_SRC_LFLAGS=-nologo $(LIB_SRC_LIBS) -base:0x1000000\ 132 LIB_SRC_LFLAGS=-nologo $(LIB_SRC_LIBS) -base:0x1000000\
108 -subsystem:console -pdb:none -debugtype:both -machine:I386\ 133 -subsystem:console -pdb:none -debugtype:both -machine:I386\
109 -nodefaultlib -out:$@ -debug:full 134 -nodefaultlib -out:$@ -debug:full
110 135
111 DOC=$(LIB_SRC)\DOC 136 DOC=$(LIB_SRC)\DOC
122 $(XEMACS)\src\casetab.c \ 147 $(XEMACS)\src\casetab.c \
123 $(XEMACS)\src\chartab.c \ 148 $(XEMACS)\src\chartab.c \
124 $(XEMACS)\src\cmdloop.c \ 149 $(XEMACS)\src\cmdloop.c \
125 $(XEMACS)\src\cmds.c \ 150 $(XEMACS)\src\cmds.c \
126 $(XEMACS)\src\console-stream.c \ 151 $(XEMACS)\src\console-stream.c \
127 $(XEMACS)\src\console-x.c \
128 $(XEMACS)\src\console.c \ 152 $(XEMACS)\src\console.c \
129 $(XEMACS)\src\data.c \ 153 $(XEMACS)\src\data.c \
130 $(XEMACS)\src\debug.c \ 154 $(XEMACS)\src\debug.c \
131 $(XEMACS)\src\device-x.c 155 $(XEMACS)\src\device.c \
156 $(XEMACS)\src\dgif_lib.c
132 DOC_SRC2=\ 157 DOC_SRC2=\
133 $(XEMACS)\src\device.c \
134 $(XEMACS)\src\dgif_lib.c \
135 $(XEMACS)\src\dialog-x.c \
136 $(XEMACS)\src\dialog.c \ 158 $(XEMACS)\src\dialog.c \
137 $(XEMACS)\src\dired.c \ 159 $(XEMACS)\src\dired.c \
138 $(XEMACS)\src\doc.c \ 160 $(XEMACS)\src\doc.c \
139 $(XEMACS)\src\doprnt.c \ 161 $(XEMACS)\src\doprnt.c \
140 $(XEMACS)\src\dynarr.c \ 162 $(XEMACS)\src\dynarr.c \
141 $(XEMACS)\src\editfns.c \ 163 $(XEMACS)\src\editfns.c \
142 $(XEMACS)\src\elhash.c \ 164 $(XEMACS)\src\elhash.c \
143 $(XEMACS)\src\emacs.c \ 165 $(XEMACS)\src\emacs.c \
144 $(XEMACS)\src\EmacsFrame.c \
145 $(XEMACS)\src\EmacsManager.c \
146 $(XEMACS)\src\EmacsShell-sub.c\
147 $(XEMACS)\src\EmacsShell.c \
148 $(XEMACS)\src\energize.c \
149 $(XEMACS)\src\eval.c \ 166 $(XEMACS)\src\eval.c \
150 $(XEMACS)\src\event-stream.c \ 167 $(XEMACS)\src\event-stream.c \
151 $(XEMACS)\src\event-unixoid.c \ 168 $(XEMACS)\src\event-unixoid.c \
152 $(XEMACS)\src\event-Xt.c
153 DOC_SRC3=\
154 $(XEMACS)\src\events.c \ 169 $(XEMACS)\src\events.c \
155 $(XEMACS)\src\extents.c \ 170 $(XEMACS)\src\extents.c \
156 $(XEMACS)\src\faces.c \ 171 $(XEMACS)\src\faces.c \
157 $(XEMACS)\src\fileio.c \ 172 $(XEMACS)\src\fileio.c \
158 $(XEMACS)\src\filelock.c \ 173 $(XEMACS)\src\filelock.c \
159 $(XEMACS)\src\filemode.c \ 174 $(XEMACS)\src\filemode.c \
160 $(XEMACS)\src\floatfns.c \ 175 $(XEMACS)\src\floatfns.c \
161 $(XEMACS)\src\fns.c \ 176 $(XEMACS)\src\fns.c
177 DOC_SRC3=\
162 $(XEMACS)\src\font-lock.c \ 178 $(XEMACS)\src\font-lock.c \
163 $(XEMACS)\src\frame-x.c \
164 $(XEMACS)\src\frame.c \ 179 $(XEMACS)\src\frame.c \
165 $(XEMACS)\src\free-hook.c \ 180 $(XEMACS)\src\free-hook.c \
166 $(XEMACS)\src\general.c \ 181 $(XEMACS)\src\general.c \
167 $(XEMACS)\src\gif_err.c \ 182 $(XEMACS)\src\gif_err.c \
168 $(XEMACS)\src\gifalloc.c \ 183 $(XEMACS)\src\gifalloc.c \
169 $(XEMACS)\src\glyphs-x.c \
170 $(XEMACS)\src\glyphs.c \ 184 $(XEMACS)\src\glyphs.c \
171 $(XEMACS)\src\gmalloc.c \ 185 $(XEMACS)\src\gmalloc.c \
172 $(XEMACS)\src\gui-x.c \ 186 $(XEMACS)\src\gui.c \
173 $(XEMACS)\src\gui.c
174 DOC_SRC4=\
175 $(XEMACS)\src\hash.c \ 187 $(XEMACS)\src\hash.c \
176 $(XEMACS)\src\indent.c \ 188 $(XEMACS)\src\indent.c \
177 $(XEMACS)\src\inline.c \ 189 $(XEMACS)\src\inline.c \
178 $(XEMACS)\src\insdel.c \ 190 $(XEMACS)\src\insdel.c \
179 $(XEMACS)\src\intl.c \ 191 $(XEMACS)\src\intl.c \
180 $(XEMACS)\src\keymap.c \ 192 $(XEMACS)\src\keymap.c \
193 $(XEMACS)\src\line-number.c \
181 $(XEMACS)\src\lread.c \ 194 $(XEMACS)\src\lread.c \
182 $(XEMACS)\src\lstream.c \ 195 $(XEMACS)\src\lstream.c \
183 $(XEMACS)\src\macros.c \ 196 $(XEMACS)\src\macros.c \
184 $(XEMACS)\src\marker.c \ 197 $(XEMACS)\src\marker.c
198 DOC_SRC4=\
185 $(XEMACS)\src\md5.c \ 199 $(XEMACS)\src\md5.c \
186 $(XEMACS)\src\menubar-x.c \
187 $(XEMACS)\src\menubar.c \
188 $(XEMACS)\src\minibuf.c \ 200 $(XEMACS)\src\minibuf.c \
189 $(XEMACS)\src\nt.c \ 201 $(XEMACS)\src\nt.c \
190 $(XEMACS)\src\ntheap.c \ 202 $(XEMACS)\src\ntheap.c \
191 $(XEMACS)\src\ntproc.c \ 203 $(XEMACS)\src\ntproc.c \
192 $(XEMACS)\src\objects-x.c \
193 $(XEMACS)\src\objects.c \ 204 $(XEMACS)\src\objects.c \
194 $(XEMACS)\src\opaque.c 205 $(XEMACS)\src\opaque.c \
195 DOC_SRC5=\
196 $(XEMACS)\src\print.c \ 206 $(XEMACS)\src\print.c \
197 $(XEMACS)\src\process.c \ 207 $(XEMACS)\src\process.c \
198 $(XEMACS)\src\pure.c \ 208 $(XEMACS)\src\pure.c \
199 $(XEMACS)\src\rangetab.c \ 209 $(XEMACS)\src\rangetab.c \
200 $(XEMACS)\src\realpath.c \ 210 $(XEMACS)\src\realpath.c \
201 $(XEMACS)\src\redisplay-output.c \ 211 $(XEMACS)\src\redisplay-output.c \
202 $(XEMACS)\src\redisplay-x.c \
203 $(XEMACS)\src\redisplay.c \ 212 $(XEMACS)\src\redisplay.c \
204 $(XEMACS)\src\regex.c \ 213 $(XEMACS)\src\regex.c \
205 $(XEMACS)\src\scrollbar-x.c \
206 $(XEMACS)\src\scrollbar.c \ 214 $(XEMACS)\src\scrollbar.c \
207 $(XEMACS)\src\search.c \ 215 $(XEMACS)\src\search.c \
208 $(XEMACS)\src\signal.c \ 216 $(XEMACS)\src\signal.c \
209 $(XEMACS)\src\sound.c \ 217 $(XEMACS)\src\sound.c
218 DOC_SRC5=\
210 $(XEMACS)\src\specifier.c \ 219 $(XEMACS)\src\specifier.c \
211 $(XEMACS)\src\strftime.c \ 220 $(XEMACS)\src\strftime.c \
212 $(XEMACS)\src\symbols.c \ 221 $(XEMACS)\src\symbols.c \
213 $(XEMACS)\src\syntax.c \ 222 $(XEMACS)\src\syntax.c \
214 $(XEMACS)\src\sysdep.c \ 223 $(XEMACS)\src\sysdep.c \
215 $(XEMACS)\src\termcap.c 224 $(XEMACS)\src\termcap.c \
216 DOC_SRC6=\
217 $(XEMACS)\src\tparam.c \ 225 $(XEMACS)\src\tparam.c \
218 $(XEMACS)\src\undo.c \ 226 $(XEMACS)\src\undo.c \
219 $(XEMACS)\src\unexnt.c \ 227 $(XEMACS)\src\unexnt.c \
220 $(XEMACS)\src\vm-limit.c \ 228 $(XEMACS)\src\vm-limit.c \
221 $(XEMACS)\src\window.c \ 229 $(XEMACS)\src\window.c \
230 $(XEMACS)\src\widget.c
231
232 !if $(HAVE_X)
233 DOC_SRC6=\
234 $(XEMACS)\src\balloon_help.c \
235 $(XEMACS)\src\console-x.c \
236 $(XEMACS)\src\device-x.c \
237 $(XEMACS)\src\dialog-x.c \
238 $(XEMACS)\src\EmacsFrame.c \
239 $(XEMACS)\src\EmacsManager.c \
240 $(XEMACS)\src\EmacsShell-sub.c\
241 $(XEMACS)\src\EmacsShell.c \
242 $(XEMACS)\src\event-Xt.c \
243 $(XEMACS)\src\frame-x.c \
244 $(XEMACS)\src\glyphs-x.c \
245 $(XEMACS)\src\gui-x.c \
246 $(XEMACS)\src\menubar.c \
247 $(XEMACS)\src\menubar-x.c \
248 $(XEMACS)\src\objects-x.c \
249 $(XEMACS)\src\redisplay-x.c \
250 $(XEMACS)\src\scrollbar-x.c \
251 $(XEMACS)\src\balloon-x.c \
222 $(XEMACS)\src\xgccache.c \ 252 $(XEMACS)\src\xgccache.c \
223 $(XEMACS)\src\xmu.c \ 253 $(XEMACS)\src\xmu.c \
224 $(XEMACS)\src\xselect.c \ 254 $(XEMACS)\src\xselect.c
225 $(XEMACS)\src\balloon-x.c \ 255 !endif
226 $(XEMACS)\src\balloon_help.c \ 256
257 !if $(HAVE_MSW)
258 DOC_SRCS_7=\
259 $(XEMACS)\src\console-msw.c \
260 $(XEMACS)\src\device-msw.c \
261 $(XEMACS)\src\event-msw.c \
262 $(XEMACS)\src\frame-msw.c \
263 $(XEMACS)\src\objects-msw.c \
264 $(XEMACS)\src\redisplay-msw.c \
265 $(XEMACS)\src\msw-proc.c
266 !endif
267
268 !if $(HAVE_MULE)
269 DOC_SRCS_8=\
227 $(XEMACS)\src\input-method-xlib.c \ 270 $(XEMACS)\src\input-method-xlib.c \
228 $(XEMACS)\src\mule.c \ 271 $(XEMACS)\src\mule.c \
229 $(XEMACS)\src\mule-charset.c \ 272 $(XEMACS)\src\mule-charset.c \
230 $(XEMACS)\src\mule-ccl.c \ 273 $(XEMACS)\src\mule-ccl.c \
231 $(XEMACS)\src\mule-coding.c \ 274 $(XEMACS)\src\mule-coding.c
232 $(XEMACS)\src\widget.c 275 !endif
233 276
234 MAKE_DOCFILE=$(LIB_SRC)\make-docfile.exe 277 MAKE_DOCFILE=$(LIB_SRC)\make-docfile.exe
235 278
236 $(MAKE_DOCFILE): $(OUTDIR)\make-docfile.obj 279 $(MAKE_DOCFILE): $(OUTDIR)\make-docfile.obj
237 link.exe -out:$@ $(LIB_SRC_LFLAGS) $** $(LIB_SRC_LIBS) 280 link.exe -out:$@ $(LIB_SRC_LFLAGS) $** $(LIB_SRC_LIBS)
243 286
244 $(RUNEMACS): $(OUTDIR)\runemacs.obj 287 $(RUNEMACS): $(OUTDIR)\runemacs.obj
245 link.exe -out:$@ -subsystem:windows -entry:WinMainCRTStartup \ 288 link.exe -out:$@ -subsystem:windows -entry:WinMainCRTStartup \
246 -pdb:none -release -incremental:no $** \ 289 -pdb:none -release -incremental:no $** \
247 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib \ 290 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib \
248 advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib \ 291 advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib libc.lib
249 odbccp32.lib libc.lib
250 292
251 $(OUTDIR)\runemacs.obj: $(XEMACS)\nt\runemacs.c 293 $(OUTDIR)\runemacs.obj: $(XEMACS)\nt\runemacs.c
252 $(CC) -nologo -ML -w $(OPT) -c \ 294 $(CC) -nologo -ML -w $(OPT) -c \
253 -D_DEBUG -DWIN32 -D_WIN32 -DWIN32_LEAN_AND_MEAN \ 295 -D_DEBUG -DWIN32 -D_WIN32 -DWIN32_LEAN_AND_MEAN \
254 -D_NTSDK -D_M_IX86 -D_X86_ -Demacs -DHAVE_CONFIG_H -D_MSC_VER=999 \ 296 -D_M_IX86 -D_X86_ -Demacs -DHAVE_CONFIG_H -D_MSC_VER=999 \
255 $** -Fo$@ 297 $** -Fo$@
256 298
257 SUPPORT_PROGS=$(MAKE_DOCFILE) $(RUNEMACS) 299 SUPPORT_PROGS=$(MAKE_DOCFILE) $(RUNEMACS)
258 300
259 #------------------------------------------------------------------------------ 301 #------------------------------------------------------------------------------
260 302
261 # TEMACS Executable 303 # TEMACS Executable
262 304
263 TEMACS_DIR=$(XEMACS)\src 305 TEMACS_DIR=$(XEMACS)\src
264 TEMACS=$(TEMACS_DIR)\temacs.exe 306 TEMACS=$(TEMACS_DIR)\temacs.exe
307 TEMACS_BROWSE=$(TEMACS_DIR)\temacs.bsc
265 TEMACS_SRC=$(XEMACS)\src 308 TEMACS_SRC=$(XEMACS)\src
266 TEMACS_LIBS=$(LASTFILE) $(LWLIB) Xaw.lib Xmu.lib Xt.lib SM.lib ICE.lib \ 309 TEMACS_LIBS=$(LASTFILE) $(LWLIB) $(X_LIBS) kernel32.lib user32.lib gdi32.lib \
267 Xext.lib X11.lib kernel32.lib user32.lib gdi32.lib \
268 winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib \ 310 winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib \
269 uuid.lib odbc32.lib odbccp32.lib wsock32.lib libc.lib 311 uuid.lib wsock32.lib libc.lib
270 TEMACS_LFLAGS=-nologo $(LIBRARIES) -base:0x1000000\ 312 TEMACS_LFLAGS=-nologo $(LIBRARIES) -base:0x1000000\
271 -stack:0x800000 -entry:_start -subsystem:console -pdb:none\ 313 -stack:0x800000 -entry:_start -subsystem:console\
272 -map:$(TEMACS_DIR)\temacs.map -debug:full -debugtype:both -machine:I386\ 314 -pdb:$(TEMACS_DIR)\temacs.pdb -map:$(TEMACS_DIR)\temacs.map -debug:full\
273 -nodefaultlib -out:$@\ 315 -heap:0x00100000 -out:$@\
274 -heap:0x00100000 316
275 317 TEMACS_CPP_FLAGS= $(INCLUDES) $(DEFINES) \
276 TEMACS_CPP_FLAGS= $(INCLUDES) -D_DEBUG -DWIN32 -D_WIN32 -DWIN32_LEAN_AND_MEAN \
277 -D_NTSDK -D_M_IX86 -D_X86_ -Demacs -DHAVE_CONFIG_H -D_MSC_VER=999 \
278 -DEMACS_MAJOR_VERSION=$(emacs_major_version) \ 318 -DEMACS_MAJOR_VERSION=$(emacs_major_version) \
279 -DEMACS_MINOR_VERSION=$(emacs_minor_version) \ 319 -DEMACS_MINOR_VERSION=$(emacs_minor_version) \
280 -DXEMACS_CODENAME=\"$(xemacs_codename)\" \ 320 -DXEMACS_CODENAME=\"$(xemacs_codename)\" \
281 -DPATH_PREFIX=\"$(XEMACS)\" 321 -DPATH_PREFIX=\"$(XEMACS)\"
282 TEMACS_FLAGS=-nologo -ML -w $(OPT) -c $(TEMACS_CPP_FLAGS) 322 TEMACS_FLAGS=-nologo -ML -w $(OPT) -c $(TEMACS_CPP_FLAGS)
283 323
324 !if $(HAVE_X)
325 TEMACS_X_OBJS=\
326 $(OUTDIR)\balloon-x.obj \
327 $(OUTDIR)\balloon_help.obj \
328 $(OUTDIR)\console-x.obj \
329 $(OUTDIR)\device-x.obj \
330 $(OUTDIR)\dialog-x.obj \
331 $(OUTDIR)\EmacsFrame.obj \
332 $(OUTDIR)\EmacsManager.obj \
333 $(OUTDIR)\EmacsShell.obj \
334 $(OUTDIR)\TopLevelEmacsShell.obj\
335 $(OUTDIR)\TransientEmacsShell.obj\
336 $(OUTDIR)\event-Xt.obj \
337 $(OUTDIR)\frame-x.obj \
338 $(OUTDIR)\glyphs-x.obj \
339 $(OUTDIR)\gui-x.obj \
340 $(OUTDIR)\menubar.obj \
341 $(OUTDIR)\menubar-x.obj \
342 $(OUTDIR)\objects-x.obj \
343 $(OUTDIR)\redisplay-x.obj \
344 $(OUTDIR)\scrollbar.obj \
345 $(OUTDIR)\scrollbar-x.obj \
346 $(OUTDIR)\xgccache.obj \
347 $(OUTDIR)\xmu.obj \
348 $(OUTDIR)\xselect.obj
349 !endif
350
351 !if $(HAVE_MSW)
352 TEMACS_MSW_OBJS=\
353 $(OUTDIR)\console-msw.obj \
354 $(OUTDIR)\device-msw.obj \
355 $(OUTDIR)\event-msw.obj \
356 $(OUTDIR)\frame-msw.obj \
357 $(OUTDIR)\objects-msw.obj \
358 $(OUTDIR)\redisplay-msw.obj \
359 $(OUTDIR)\msw-proc.obj
360 !endif
361
362 !if $(HAVE_MULE)
363 TEMACS_MULE_OBJS=\
364 $(OUTDIR)\input-method-xlib.obj \
365 $(OUTDIR)\mule.obj \
366 $(OUTDIR)\mule-charset.obj \
367 $(OUTDIR)\mule-ccl.obj \
368 $(OUTDIR)\mule-coding.obj \
369 !endif
370
284 TEMACS_OBJS= \ 371 TEMACS_OBJS= \
372 $(TEMACS_X_OBJS)\
373 $(TEMACS_MSW_OBJS)\
374 $(TEMACS_MULE_OBJS)\
285 $(OUTDIR)\abbrev.obj \ 375 $(OUTDIR)\abbrev.obj \
286 $(OUTDIR)\alloc.obj \ 376 $(OUTDIR)\alloc.obj \
287 $(OUTDIR)\alloca.obj \ 377 $(OUTDIR)\alloca.obj \
288 $(OUTDIR)\balloon-x.obj \
289 $(OUTDIR)\balloon_help.obj \
290 $(OUTDIR)\blocktype.obj \ 378 $(OUTDIR)\blocktype.obj \
291 $(OUTDIR)\buffer.obj \ 379 $(OUTDIR)\buffer.obj \
292 $(OUTDIR)\bytecode.obj \ 380 $(OUTDIR)\bytecode.obj \
293 $(OUTDIR)\callint.obj \ 381 $(OUTDIR)\callint.obj \
294 $(OUTDIR)\callproc.obj \ 382 $(OUTDIR)\callproc.obj \
296 $(OUTDIR)\casetab.obj \ 384 $(OUTDIR)\casetab.obj \
297 $(OUTDIR)\chartab.obj \ 385 $(OUTDIR)\chartab.obj \
298 $(OUTDIR)\cmdloop.obj \ 386 $(OUTDIR)\cmdloop.obj \
299 $(OUTDIR)\cmds.obj \ 387 $(OUTDIR)\cmds.obj \
300 $(OUTDIR)\console-stream.obj \ 388 $(OUTDIR)\console-stream.obj \
301 $(OUTDIR)\console-x.obj \
302 $(OUTDIR)\console.obj \ 389 $(OUTDIR)\console.obj \
303 $(OUTDIR)\data.obj \ 390 $(OUTDIR)\data.obj \
304 $(OUTDIR)\debug.obj \ 391 $(OUTDIR)\debug.obj \
305 $(OUTDIR)\device-x.obj \
306 $(OUTDIR)\device.obj \ 392 $(OUTDIR)\device.obj \
307 $(OUTDIR)\dgif_lib.obj \ 393 $(OUTDIR)\dgif_lib.obj \
308 $(OUTDIR)\dialog-x.obj \
309 $(OUTDIR)\dialog.obj \ 394 $(OUTDIR)\dialog.obj \
310 $(OUTDIR)\dired.obj \ 395 $(OUTDIR)\dired.obj \
311 $(OUTDIR)\doc.obj \ 396 $(OUTDIR)\doc.obj \
312 $(OUTDIR)\doprnt.obj \ 397 $(OUTDIR)\doprnt.obj \
313 $(OUTDIR)\dynarr.obj \ 398 $(OUTDIR)\dynarr.obj \
314 $(OUTDIR)\editfns.obj \ 399 $(OUTDIR)\editfns.obj \
315 $(OUTDIR)\elhash.obj \ 400 $(OUTDIR)\elhash.obj \
316 $(OUTDIR)\emacs.obj \ 401 $(OUTDIR)\emacs.obj \
317 $(OUTDIR)\EmacsFrame.obj \
318 $(OUTDIR)\EmacsManager.obj \
319 $(OUTDIR)\TopLevelEmacsShell.obj\
320 $(OUTDIR)\TransientEmacsShell.obj\
321 $(OUTDIR)\EmacsShell.obj \
322 $(OUTDIR)\energize.obj \
323 $(OUTDIR)\eval.obj \ 402 $(OUTDIR)\eval.obj \
324 $(OUTDIR)\event-stream.obj \ 403 $(OUTDIR)\event-stream.obj \
325 $(OUTDIR)\event-unixoid.obj \ 404 $(OUTDIR)\event-unixoid.obj \
326 $(OUTDIR)\event-Xt.obj \
327 $(OUTDIR)\events.obj \ 405 $(OUTDIR)\events.obj \
328 $(OUTDIR)\extents.obj \ 406 $(OUTDIR)\extents.obj \
329 $(OUTDIR)\faces.obj \ 407 $(OUTDIR)\faces.obj \
330 $(OUTDIR)\fileio.obj \ 408 $(OUTDIR)\fileio.obj \
331 $(OUTDIR)\filelock.obj \ 409 $(OUTDIR)\filelock.obj \
332 $(OUTDIR)\filemode.obj \ 410 $(OUTDIR)\filemode.obj \
333 $(OUTDIR)\floatfns.obj \ 411 $(OUTDIR)\floatfns.obj \
334 $(OUTDIR)\fns.obj \ 412 $(OUTDIR)\fns.obj \
335 $(OUTDIR)\font-lock.obj \ 413 $(OUTDIR)\font-lock.obj \
336 $(OUTDIR)\frame-x.obj \
337 $(OUTDIR)\frame.obj \ 414 $(OUTDIR)\frame.obj \
338 $(OUTDIR)\free-hook.obj \ 415 $(OUTDIR)\free-hook.obj \
339 $(OUTDIR)\general.obj \ 416 $(OUTDIR)\general.obj \
340 $(OUTDIR)\gif_err.obj \ 417 $(OUTDIR)\gif_err.obj \
341 $(OUTDIR)\gifalloc.obj \ 418 $(OUTDIR)\gifalloc.obj \
342 $(OUTDIR)\glyphs-x.obj \
343 $(OUTDIR)\glyphs.obj \ 419 $(OUTDIR)\glyphs.obj \
344 $(OUTDIR)\gmalloc.obj \ 420 $(OUTDIR)\gmalloc.obj \
345 $(OUTDIR)\gui-x.obj \
346 $(OUTDIR)\gui.obj \ 421 $(OUTDIR)\gui.obj \
347 $(OUTDIR)\hash.obj \ 422 $(OUTDIR)\hash.obj \
348 $(OUTDIR)\indent.obj \ 423 $(OUTDIR)\indent.obj \
349 $(OUTDIR)\inline.obj \ 424 $(OUTDIR)\inline.obj \
350 $(OUTDIR)\insdel.obj \ 425 $(OUTDIR)\insdel.obj \
351 $(OUTDIR)\intl.obj \ 426 $(OUTDIR)\intl.obj \
352 $(OUTDIR)\keymap.obj \ 427 $(OUTDIR)\keymap.obj \
428 $(OUTDIR)\line-number.obj \
353 $(OUTDIR)\lread.obj \ 429 $(OUTDIR)\lread.obj \
354 $(OUTDIR)\lstream.obj \ 430 $(OUTDIR)\lstream.obj \
355 $(OUTDIR)\macros.obj \ 431 $(OUTDIR)\macros.obj \
356 $(OUTDIR)\marker.obj \ 432 $(OUTDIR)\marker.obj \
357 $(OUTDIR)\md5.obj \ 433 $(OUTDIR)\md5.obj \
358 $(OUTDIR)\menubar-x.obj \
359 $(OUTDIR)\menubar.obj \
360 $(OUTDIR)\minibuf.obj \ 434 $(OUTDIR)\minibuf.obj \
361 $(OUTDIR)\input-method-xlib.obj \
362 $(OUTDIR)\mule.obj \
363 $(OUTDIR)\mule-charset.obj \
364 $(OUTDIR)\mule-ccl.obj \
365 $(OUTDIR)\mule-coding.obj \
366 $(OUTDIR)\nt.obj \ 435 $(OUTDIR)\nt.obj \
367 $(OUTDIR)\ntheap.obj \ 436 $(OUTDIR)\ntheap.obj \
368 $(OUTDIR)\ntproc.obj \ 437 $(OUTDIR)\ntproc.obj \
369 $(OUTDIR)\objects-x.obj \
370 $(OUTDIR)\objects.obj \ 438 $(OUTDIR)\objects.obj \
371 $(OUTDIR)\opaque.obj \ 439 $(OUTDIR)\opaque.obj \
372 $(OUTDIR)\print.obj \ 440 $(OUTDIR)\print.obj \
373 $(OUTDIR)\process.obj \ 441 $(OUTDIR)\process.obj \
374 $(OUTDIR)\pure.obj \ 442 $(OUTDIR)\pure.obj \
375 $(OUTDIR)\rangetab.obj \ 443 $(OUTDIR)\rangetab.obj \
376 $(OUTDIR)\realpath.obj \ 444 $(OUTDIR)\realpath.obj \
377 $(OUTDIR)\redisplay-output.obj \ 445 $(OUTDIR)\redisplay-output.obj \
378 $(OUTDIR)\redisplay-x.obj \
379 $(OUTDIR)\redisplay.obj \ 446 $(OUTDIR)\redisplay.obj \
380 $(OUTDIR)\regex.obj \ 447 $(OUTDIR)\regex.obj \
381 $(OUTDIR)\scrollbar-x.obj \
382 $(OUTDIR)\scrollbar.obj \
383 $(OUTDIR)\search.obj \ 448 $(OUTDIR)\search.obj \
384 $(OUTDIR)\signal.obj \ 449 $(OUTDIR)\signal.obj \
385 $(OUTDIR)\sound.obj \ 450 $(OUTDIR)\sound.obj \
386 $(OUTDIR)\specifier.obj \ 451 $(OUTDIR)\specifier.obj \
387 $(OUTDIR)\strftime.obj \ 452 $(OUTDIR)\strftime.obj \
388 $(OUTDIR)\symbols.obj \ 453 $(OUTDIR)\symbols.obj \
389 $(OUTDIR)\syntax.obj \ 454 $(OUTDIR)\syntax.obj \
390 $(OUTDIR)\sysdep.obj \ 455 $(OUTDIR)\sysdep.obj \
391 $(OUTDIR)\termcap.obj \
392 $(OUTDIR)\tparam.obj \ 456 $(OUTDIR)\tparam.obj \
393 $(OUTDIR)\undo.obj \ 457 $(OUTDIR)\undo.obj \
394 $(OUTDIR)\unexnt.obj \ 458 $(OUTDIR)\unexnt.obj \
395 $(OUTDIR)\vm-limit.obj \ 459 $(OUTDIR)\vm-limit.obj \
396 $(OUTDIR)\widget.obj \ 460 $(OUTDIR)\widget.obj \
397 $(OUTDIR)\window.obj \ 461 $(OUTDIR)\window.obj
398 $(OUTDIR)\xgccache.obj \ 462
399 $(OUTDIR)\xmu.obj \ 463 # Rules
400 $(OUTDIR)\xselect.obj 464
465 .SUFFIXES:
466 .SUFFIXES: .c
467
468 # nmake rule
469 {$(TEMACS_SRC)}.c{$(OUTDIR)}.obj:
470 $(CC) $(TEMACS_FLAGS) $< -Fo$@ -Fr$*.sbr
471
472 $(OUTDIR)\TopLevelEmacsShell.obj: $(TEMACS_SRC)\EmacsShell-sub.c
473 $(CC) $(TEMACS_FLAGS) -DDEFINE_TOP_LEVEL_EMACS_SHELL $** -Fo$@
474
475 $(OUTDIR)\TransientEmacsShell.obj: $(TEMACS_SRC)\EmacsShell-sub.c
476 $(CC) $(TEMACS_FLAGS) -DDEFINE_TRANSIENT_EMACS_SHELL $** -Fo$@
477
478 #$(TEMACS_SRC)\Emacs.ad.h: $(XEMACS)\etc\Emacs.ad
479 # !"sed -f ad2c.sed < $(XEMACS)\etc\Emacs.ad > $(TEMACS_SRC)\Emacs.ad.h"
480
481 #$(TEMACS_SRC)\paths.h: $(TEMACS_SRC)\paths.h.in
482 # !"cd $(TEMACS_SRC); cp paths.h.in paths.h"
401 483
402 $(TEMACS): $(TEMACS_INCLUDES) $(TEMACS_OBJS) 484 $(TEMACS): $(TEMACS_INCLUDES) $(TEMACS_OBJS)
403 link.exe @<< 485 link.exe @<<
404 $(TEMACS_LFLAGS) $(TEMACS_OBJS) $(TEMACS_LIBS) 486 $(TEMACS_LFLAGS) $(TEMACS_OBJS) $(TEMACS_LIBS)
405 << 487 <<
406 488
407 $(OUTDIR)\abbrev.obj: $(TEMACS_SRC)\abbrev.c 489 # MSDEV Source Broswer file. "*.sbr" is too inclusive but this is harmless
408 $(CC) $(TEMACS_FLAGS) $** -Fo$@ 490 $(TEMACS_BROWSE): $(TEMACS_OBJS)
409 491 dir /b/s $(OUTDIR)\*.sbr > bscmake.tmp
410 $(OUTDIR)\alloc.obj: $(TEMACS_SRC)\alloc.c 492 bscmake -o$@ @bscmake.tmp
411 $(CC) $(TEMACS_FLAGS) $** -Fo$@ 493 del bscmake.tmp
412
413 $(OUTDIR)\alloca.obj: $(TEMACS_SRC)\alloca.c
414 $(CC) $(TEMACS_FLAGS) $** -Fo$@
415
416 $(OUTDIR)\balloon-x.obj: $(TEMACS_SRC)\balloon-x.c
417 $(CC) $(TEMACS_FLAGS) $** -Fo$@
418
419 $(OUTDIR)\balloon_help.obj: $(TEMACS_SRC)\balloon_help.c
420 $(CC) $(TEMACS_FLAGS) $** -Fo$@
421
422 $(OUTDIR)\blocktype.obj: $(TEMACS_SRC)\blocktype.c
423 $(CC) $(TEMACS_FLAGS) $** -Fo$@
424
425 $(OUTDIR)\buffer.obj: $(TEMACS_SRC)\buffer.c
426 $(CC) $(TEMACS_FLAGS) $** -Fo$@
427
428 $(OUTDIR)\bytecode.obj: $(TEMACS_SRC)\bytecode.c
429 $(CC) $(TEMACS_FLAGS) $** -Fo$@
430
431 $(OUTDIR)\callint.obj: $(TEMACS_SRC)\callint.c
432 $(CC) $(TEMACS_FLAGS) $** -Fo$@
433
434 $(OUTDIR)\callproc.obj: $(TEMACS_SRC)\callproc.c
435 $(CC) $(TEMACS_FLAGS) $** -Fo$@
436
437 $(OUTDIR)\casefiddle.obj: $(TEMACS_SRC)\casefiddle.c
438 $(CC) $(TEMACS_FLAGS) $** -Fo$@
439
440 $(OUTDIR)\casetab.obj: $(TEMACS_SRC)\casetab.c
441 $(CC) $(TEMACS_FLAGS) $** -Fo$@
442
443 $(OUTDIR)\chartab.obj: $(TEMACS_SRC)\chartab.c
444 $(CC) $(TEMACS_FLAGS) $** -Fo$@
445
446 $(OUTDIR)\cmdloop.obj: $(TEMACS_SRC)\cmdloop.c
447 $(CC) $(TEMACS_FLAGS) $** -Fo$@
448
449 $(OUTDIR)\cmds.obj: $(TEMACS_SRC)\cmds.c
450 $(CC) $(TEMACS_FLAGS) $** -Fo$@
451
452 $(OUTDIR)\console-stream.obj: $(TEMACS_SRC)\console-stream.c
453 $(CC) $(TEMACS_FLAGS) $** -Fo$@
454
455 $(OUTDIR)\console-x.obj: $(TEMACS_SRC)\console-x.c
456 $(CC) $(TEMACS_FLAGS) $** -Fo$@
457
458 $(OUTDIR)\console.obj: $(TEMACS_SRC)\console.c
459 $(CC) $(TEMACS_FLAGS) $** -Fo$@
460
461 $(OUTDIR)\data.obj: $(TEMACS_SRC)\data.c
462 $(CC) $(TEMACS_FLAGS) $** -Fo$@
463
464 $(OUTDIR)\debug.obj: $(TEMACS_SRC)\debug.c
465 $(CC) $(TEMACS_FLAGS) $** -Fo$@
466
467 $(OUTDIR)\device-x.obj: $(TEMACS_SRC)\device-x.c
468 $(CC) $(TEMACS_FLAGS) $** -Fo$@
469
470 $(OUTDIR)\device.obj: $(TEMACS_SRC)\device.c
471 $(CC) $(TEMACS_FLAGS) $** -Fo$@
472
473 $(OUTDIR)\dgif_lib.obj: $(TEMACS_SRC)\dgif_lib.c
474 $(CC) $(TEMACS_FLAGS) $** -Fo$@
475
476 $(OUTDIR)\dialog-x.obj: $(TEMACS_SRC)\dialog-x.c
477 $(CC) $(TEMACS_FLAGS) $** -Fo$@
478
479 $(OUTDIR)\dialog.obj: $(TEMACS_SRC)\dialog.c
480 $(CC) $(TEMACS_FLAGS) $** -Fo$@
481
482 $(OUTDIR)\dired.obj: $(TEMACS_SRC)\dired.c
483 $(CC) $(TEMACS_FLAGS) $** -Fo$@
484
485 $(OUTDIR)\doc.obj: $(TEMACS_SRC)\doc.c
486 $(CC) $(TEMACS_FLAGS) $** -Fo$@
487
488 $(OUTDIR)\doprnt.obj: $(TEMACS_SRC)\doprnt.c
489 $(CC) $(TEMACS_FLAGS) $** -Fo$@
490
491 $(OUTDIR)\dynarr.obj: $(TEMACS_SRC)\dynarr.c
492 $(CC) $(TEMACS_FLAGS) $** -Fo$@
493
494 $(OUTDIR)\editfns.obj: $(TEMACS_SRC)\editfns.c
495 $(CC) $(TEMACS_FLAGS) $** -Fo$@
496
497 $(OUTDIR)\elhash.obj: $(TEMACS_SRC)\elhash.c
498 $(CC) $(TEMACS_FLAGS) $** -Fo$@
499
500 $(OUTDIR)\emacs.obj: $(TEMACS_SRC)\emacs.c
501 $(CC) $(TEMACS_FLAGS) $** -Fo$@
502
503 $(OUTDIR)\EmacsFrame.obj: $(TEMACS_SRC)\EmacsFrame.c
504 $(CC) $(TEMACS_FLAGS) $** -Fo$@
505
506 $(OUTDIR)\EmacsManager.obj: $(TEMACS_SRC)\EmacsManager.c
507 $(CC) $(TEMACS_FLAGS) $** -Fo$@
508
509 $(OUTDIR)\TopLevelEmacsShell.obj: $(TEMACS_SRC)\EmacsShell-sub.c
510 $(CC) $(TEMACS_FLAGS) -DDEFINE_TOP_LEVEL_EMACS_SHELL $** -Fo$@
511
512 $(OUTDIR)\TransientEmacsShell.obj: $(TEMACS_SRC)\EmacsShell-sub.c
513 $(CC) $(TEMACS_FLAGS) -DDEFINE_TRANSIENT_EMACS_SHELL $** -Fo$@
514
515 $(OUTDIR)\EmacsShell.obj: $(TEMACS_SRC)\EmacsShell.c
516 $(CC) $(TEMACS_FLAGS) $** -Fo$@
517
518 $(OUTDIR)\energize.obj: $(TEMACS_SRC)\energize.c
519 $(CC) $(TEMACS_FLAGS) $** -Fo$@
520
521 $(OUTDIR)\eval.obj: $(TEMACS_SRC)\eval.c
522 $(CC) $(TEMACS_FLAGS) $** -Fo$@
523
524 $(OUTDIR)\event-stream.obj: $(TEMACS_SRC)\event-stream.c
525 $(CC) $(TEMACS_FLAGS) $** -Fo$@
526
527 $(OUTDIR)\event-unixoid.obj: $(TEMACS_SRC)\event-unixoid.c
528 $(CC) $(TEMACS_FLAGS) $** -Fo$@
529
530 $(OUTDIR)\event-Xt.obj: $(TEMACS_SRC)\event-Xt.c
531 $(CC) $(TEMACS_FLAGS) $** -Fo$@
532
533 $(OUTDIR)\events.obj: $(TEMACS_SRC)\events.c
534 $(CC) $(TEMACS_FLAGS) $** -Fo$@
535
536 $(OUTDIR)\extents.obj: $(TEMACS_SRC)\extents.c
537 $(CC) $(TEMACS_FLAGS) $** -Fo$@
538
539 $(OUTDIR)\faces.obj: $(TEMACS_SRC)\faces.c
540 $(CC) $(TEMACS_FLAGS) $** -Fo$@
541
542 $(OUTDIR)\fileio.obj: $(TEMACS_SRC)\fileio.c
543 $(CC) $(TEMACS_FLAGS) $** -Fo$@
544
545 $(OUTDIR)\filelock.obj: $(TEMACS_SRC)\filelock.c
546 $(CC) $(TEMACS_FLAGS) $** -Fo$@
547
548 $(OUTDIR)\filemode.obj: $(TEMACS_SRC)\filemode.c
549 $(CC) $(TEMACS_FLAGS) $** -Fo$@
550
551 $(OUTDIR)\floatfns.obj: $(TEMACS_SRC)\floatfns.c
552 $(CC) $(TEMACS_FLAGS) $** -Fo$@
553
554 $(OUTDIR)\fns.obj: $(TEMACS_SRC)\fns.c
555 $(CC) $(TEMACS_FLAGS) $** -Fo$@
556
557 $(OUTDIR)\font-lock.obj: $(TEMACS_SRC)\font-lock.c
558 $(CC) $(TEMACS_FLAGS) $** -Fo$@
559
560 $(OUTDIR)\frame-x.obj: $(TEMACS_SRC)\frame-x.c
561 $(CC) $(TEMACS_FLAGS) $** -Fo$@
562
563 $(OUTDIR)\frame.obj: $(TEMACS_SRC)\frame.c
564 $(CC) $(TEMACS_FLAGS) $** -Fo$@
565
566 $(OUTDIR)\free-hook.obj: $(TEMACS_SRC)\free-hook.c
567 $(CC) $(TEMACS_FLAGS) $** -Fo$@
568
569 $(OUTDIR)\general.obj: $(TEMACS_SRC)\general.c
570 $(CC) $(TEMACS_FLAGS) $** -Fo$@
571
572 $(OUTDIR)\gif_err.obj: $(TEMACS_SRC)\gif_err.c
573 $(CC) $(TEMACS_FLAGS) $** -Fo$@
574
575 $(OUTDIR)\gifalloc.obj: $(TEMACS_SRC)\gifalloc.c
576 $(CC) $(TEMACS_FLAGS) $** -Fo$@
577
578 $(OUTDIR)\glyphs-x.obj: $(TEMACS_SRC)\glyphs-x.c
579 $(CC) $(TEMACS_FLAGS) $** -Fo$@
580
581 $(OUTDIR)\glyphs.obj: $(TEMACS_SRC)\glyphs.c
582 $(CC) $(TEMACS_FLAGS) $** -Fo$@
583
584 $(OUTDIR)\gmalloc.obj: $(TEMACS_SRC)\gmalloc.c
585 $(CC) $(TEMACS_FLAGS) $** -Fo$@
586
587 $(OUTDIR)\gui-x.obj: $(TEMACS_SRC)\gui-x.c
588 $(CC) $(TEMACS_FLAGS) $** -Fo$@
589
590 $(OUTDIR)\gui.obj: $(TEMACS_SRC)\gui.c
591 $(CC) $(TEMACS_FLAGS) $** -Fo$@
592
593 $(OUTDIR)\hash.obj: $(TEMACS_SRC)\hash.c
594 $(CC) $(TEMACS_FLAGS) $** -Fo$@
595
596 $(OUTDIR)\indent.obj: $(TEMACS_SRC)\indent.c
597 $(CC) $(TEMACS_FLAGS) $** -Fo$@
598
599 $(OUTDIR)\inline.obj: $(TEMACS_SRC)\inline.c
600 $(CC) $(TEMACS_FLAGS) $** -Fo$@
601
602 $(OUTDIR)\insdel.obj: $(TEMACS_SRC)\insdel.c
603 $(CC) $(TEMACS_FLAGS) $** -Fo$@
604
605 $(OUTDIR)\intl.obj: $(TEMACS_SRC)\intl.c
606 $(CC) $(TEMACS_FLAGS) $** -Fo$@
607
608 $(OUTDIR)\keymap.obj: $(TEMACS_SRC)\keymap.c
609 $(CC) $(TEMACS_FLAGS) $** -Fo$@
610
611 $(OUTDIR)\lread.obj: $(TEMACS_SRC)\lread.c
612 $(CC) $(TEMACS_FLAGS) $** -Fo$@
613
614 $(OUTDIR)\lstream.obj: $(TEMACS_SRC)\lstream.c
615 $(CC) $(TEMACS_FLAGS) $** -Fo$@
616
617 $(OUTDIR)\macros.obj: $(TEMACS_SRC)\macros.c
618 $(CC) $(TEMACS_FLAGS) $** -Fo$@
619
620 $(OUTDIR)\marker.obj: $(TEMACS_SRC)\marker.c
621 $(CC) $(TEMACS_FLAGS) $** -Fo$@
622
623 $(OUTDIR)\md5.obj: $(TEMACS_SRC)\md5.c
624 $(CC) $(TEMACS_FLAGS) $** -Fo$@
625
626 $(OUTDIR)\menubar-x.obj: $(TEMACS_SRC)\menubar-x.c
627 $(CC) $(TEMACS_FLAGS) $** -Fo$@
628
629 $(OUTDIR)\menubar.obj: $(TEMACS_SRC)\menubar.c
630 $(CC) $(TEMACS_FLAGS) $** -Fo$@
631
632 $(OUTDIR)\minibuf.obj: $(TEMACS_SRC)\minibuf.c
633 $(CC) $(TEMACS_FLAGS) $** -Fo$@
634
635 $(OUTDIR)\msdos.obj: $(TEMACS_SRC)\msdos.c
636 $(CC) $(TEMACS_FLAGS) $** -Fo$@
637
638 $(OUTDIR)\input-method-xlib.obj: $(TEMACS_SRC)\input-method-xlib.c
639 $(CC) $(TEMACS_FLAGS) $** -Fo$@
640
641 $(OUTDIR)\mule.obj: $(TEMACS_SRC)\mule.c
642 $(CC) $(TEMACS_FLAGS) $** -Fo$@
643
644 $(OUTDIR)\mule-charset.obj: $(TEMACS_SRC)\mule-charset.c
645 $(CC) $(TEMACS_FLAGS) $** -Fo$@
646
647 $(OUTDIR)\mule-ccl.obj: $(TEMACS_SRC)\mule-ccl.c
648 $(CC) $(TEMACS_FLAGS) $** -Fo$@
649
650 $(OUTDIR)\mule-coding.obj: $(TEMACS_SRC)\mule-coding.c
651 $(CC) $(TEMACS_FLAGS) $** -Fo$@
652
653 $(OUTDIR)\nt.obj: $(TEMACS_SRC)\nt.c
654 $(CC) $(TEMACS_FLAGS) $** -Fo$@
655
656 $(OUTDIR)\ntheap.obj: $(TEMACS_SRC)\ntheap.c
657 $(CC) $(TEMACS_FLAGS) $** -Fo$@
658
659 $(OUTDIR)\ntproc.obj: $(TEMACS_SRC)\ntproc.c
660 $(CC) $(TEMACS_FLAGS) $** -Fo$@
661
662 $(OUTDIR)\objects-x.obj: $(TEMACS_SRC)\objects-x.c
663 $(CC) $(TEMACS_FLAGS) $** -Fo$@
664
665 $(OUTDIR)\objects.obj: $(TEMACS_SRC)\objects.c
666 $(CC) $(TEMACS_FLAGS) $** -Fo$@
667
668 $(OUTDIR)\opaque.obj: $(TEMACS_SRC)\opaque.c
669 $(CC) $(TEMACS_FLAGS) $** -Fo$@
670
671 $(OUTDIR)\print.obj: $(TEMACS_SRC)\print.c
672 $(CC) $(TEMACS_FLAGS) $** -Fo$@
673
674 $(OUTDIR)\process.obj: $(TEMACS_SRC)\process.c
675 $(CC) $(TEMACS_FLAGS) $** -Fo$@
676
677 $(OUTDIR)\pure.obj: $(TEMACS_SRC)\pure.c
678 $(CC) $(TEMACS_FLAGS) $** -Fo$@
679
680 $(OUTDIR)\rangetab.obj: $(TEMACS_SRC)\rangetab.c
681 $(CC) $(TEMACS_FLAGS) $** -Fo$@
682
683 $(OUTDIR)\realpath.obj: $(TEMACS_SRC)\realpath.c
684 $(CC) $(TEMACS_FLAGS) $** -Fo$@
685
686 $(OUTDIR)\redisplay-output.obj: $(TEMACS_SRC)\redisplay-output.c
687 $(CC) $(TEMACS_FLAGS) $** -Fo$@
688
689 $(OUTDIR)\redisplay-x.obj: $(TEMACS_SRC)\redisplay-x.c
690 $(CC) $(TEMACS_FLAGS) $** -Fo$@
691
692 $(OUTDIR)\redisplay.obj: $(TEMACS_SRC)\redisplay.c
693 $(CC) $(TEMACS_FLAGS) $** -Fo$@
694
695 $(OUTDIR)\regex.obj: $(TEMACS_SRC)\regex.c
696 $(CC) $(TEMACS_FLAGS) $** -Fo$@
697
698 $(OUTDIR)\scrollbar-x.obj: $(TEMACS_SRC)\scrollbar-x.c
699 $(CC) $(TEMACS_FLAGS) $** -Fo$@
700
701 $(OUTDIR)\scrollbar.obj: $(TEMACS_SRC)\scrollbar.c
702 $(CC) $(TEMACS_FLAGS) $** -Fo$@
703
704 $(OUTDIR)\search.obj: $(TEMACS_SRC)\search.c
705 $(CC) $(TEMACS_FLAGS) $** -Fo$@
706
707 $(OUTDIR)\signal.obj: $(TEMACS_SRC)\signal.c
708 $(CC) $(TEMACS_FLAGS) $** -Fo$@
709
710 $(OUTDIR)\sound.obj: $(TEMACS_SRC)\sound.c
711 $(CC) $(TEMACS_FLAGS) $** -Fo$@
712
713 $(OUTDIR)\specifier.obj: $(TEMACS_SRC)\specifier.c
714 $(CC) $(TEMACS_FLAGS) $** -Fo$@
715
716 $(OUTDIR)\strftime.obj: $(TEMACS_SRC)\strftime.c
717 $(CC) $(TEMACS_FLAGS) $** -Fo$@
718
719 $(OUTDIR)\symbols.obj: $(TEMACS_SRC)\symbols.c
720 $(CC) $(TEMACS_FLAGS) $** -Fo$@
721
722 $(OUTDIR)\syntax.obj: $(TEMACS_SRC)\syntax.c
723 $(CC) $(TEMACS_FLAGS) $** -Fo$@
724
725 $(OUTDIR)\sysdep.obj: $(TEMACS_SRC)\sysdep.c
726 $(CC) $(TEMACS_FLAGS) $** -Fo$@
727
728 $(OUTDIR)\termcap.obj: $(TEMACS_SRC)\termcap.c
729 $(CC) $(TEMACS_FLAGS) $** -Fo$@
730
731 $(OUTDIR)\tparam.obj: $(TEMACS_SRC)\tparam.c
732 $(CC) $(TEMACS_FLAGS) $** -Fo$@
733
734 $(OUTDIR)\undo.obj: $(TEMACS_SRC)\undo.c
735 $(CC) $(TEMACS_FLAGS) $** -Fo$@
736
737 $(OUTDIR)\unexnt.obj: $(TEMACS_SRC)\unexnt.c
738 $(CC) $(TEMACS_FLAGS) $** -Fo$@
739
740 $(OUTDIR)\vm-limit.obj: $(TEMACS_SRC)\vm-limit.c
741 $(CC) $(TEMACS_FLAGS) $** -Fo$@
742
743 $(OUTDIR)\widget.obj: $(TEMACS_SRC)\widget.c
744 $(CC) $(TEMACS_FLAGS) $** -Fo$@
745
746 $(OUTDIR)\window.obj: $(TEMACS_SRC)\window.c
747 $(CC) $(TEMACS_FLAGS) $** -Fo$@
748
749 $(OUTDIR)\xgccache.obj: $(TEMACS_SRC)\xgccache.c
750 $(CC) $(TEMACS_FLAGS) $** -Fo$@
751
752 $(OUTDIR)\xmu.obj: $(TEMACS_SRC)\xmu.c
753 $(CC) $(TEMACS_FLAGS) $** -Fo$@
754
755 $(OUTDIR)\xselect.obj: $(TEMACS_SRC)\xselect.c
756 $(CC) $(TEMACS_FLAGS) $** -Fo$@
757
758 #$(TEMACS_SRC)\Emacs.ad.h: $(XEMACS)\etc\Emacs.ad
759 # !"sed -f ad2c.sed < $(XEMACS)\etc\Emacs.ad > $(TEMACS_SRC)\Emacs.ad.h"
760
761 #$(TEMACS_SRC)\paths.h: $(TEMACS_SRC)\paths.h.in
762 # !"cd $(TEMACS_SRC); cp paths.h.in paths.h"
763 494
764 #------------------------------------------------------------------------------ 495 #------------------------------------------------------------------------------
765 496
766 # LISP bits 'n bobs 497 # LISP bits 'n bobs
767 498
768 $(DOC): $(LIB_SRC)\make-docfile.exe 499 LOADPATH=$(LISP)
500
501 $(DOC): $(LOADPATH)\startup.elc $(LIB_SRC)\make-docfile.exe
502 del $(DOC)
769 !$(TEMACS) -batch -l make-docfile.el -- -o $(DOC) -i $(XEMACS)\site-packages 503 !$(TEMACS) -batch -l make-docfile.el -- -o $(DOC) -i $(XEMACS)\site-packages
770 !$(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC1) 504 !$(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC1)
771 !$(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC2) 505 !$(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC2)
772 !$(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC3) 506 !$(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC3)
773 !$(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC4) 507 !$(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC4)
774 !$(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC4)
775 !$(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC5) 508 !$(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC5)
776 509 !$(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC6)
777 LOADPATH=$(LISP)\prim 510 !$(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC7)
778 dump-elcs: 511 !$(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC8)
779 !"$(TEMACS) -batch -l update-elc.el" 512
513 $(LOADPATH)\startup.elc: $(LOADPATH)\startup.el
514 !$(TEMACS) -batch -l update-elc.el
515
516 update-elc: $(LOADPATH)\startup.el
517 !$(TEMACS) -batch -l update-elc.el
780 518
781 dump-xemacs: 519 dump-xemacs:
782 !"$(TEMACS) -batch -l loadup.el dump" 520 cd $(TEMACS_DIR)
521 !$(TEMACS) -batch -l loadup.el dump
783 522
784 #------------------------------------------------------------------------------ 523 #------------------------------------------------------------------------------
785 524
786 # use this rule to build the complete system 525 # use this rule to build the complete system
787 all: $(LASTFILE) $(LWLIB) $(TEMACS) $(SUPPORT_PROGS) $(DOC) 526 all: $(LASTFILE) $(LWLIB) $(SUPPORT_PROGS) $(TEMACS) $(TEMACS_BROWSE) $(DOC) dump-xemacs
788 527
789 # use this rule to install the system 528 # use this rule to install the system
790 install: 529 install:
530
531 # The last line demands that you have a semi-decent shell
532 distclean:
533 -mkdepend -f xemacs.mak
534 del *.bak
535 del *.orig
536 del *.rej
537 del *.pdb
538 del *.tmp
539 del puresize-adjust.h
540 cd $(OUTDIR)
541 del *.obj
542 del *.sbr
543 del *.lib
544 cd ..\$(TEMACS_DIR)
545 del config.h
546 del paths.h
547 del *.bak
548 del *.orig
549 del *.rej
550 del *.exe
551 del *.map
552 del *.bsc
553 del *.pdb
554 cd $(LIB_SRC)
555 del DOC
556 del *.bak
557 del *.orig
558 del *.rej
559 del *.exe
560 cd $(LISP)
561 -del /s /q *.bak *.elc *.orig *.rej
562
563 depend:
564 mkdepend -f xemacs.mak -p$(OUTDIR)\ -o.obj -w9999 -- $(TEMACS_CPP_FLAGS) -- $(DOC_SRC1) $(DOC_SRC2) $(DOC_SRC3) $(DOC_SRC4) $(DOC_SRC5) $(DOC_SRC6) $(DOC_SRC7) $(DOC_SRC8) $(LASTFILE_SRC)\lastfile.c $(LIB_SRC)\make-docfile.c .\runemacs.c
565
566 # DO NOT DELETE THIS LINE -- make depend depends on it.