274
|
1 # Makefile for Microsoft NMAKE
|
|
2 # Copyright (C) 1995 Board of Trustees, University of Illinois.
|
|
3 # Copyright (C) 1995, 1996 Ben Wing.
|
|
4 # Copyright (C) 1995 Sun Microsystems, Inc.
|
|
5 # Copyright (C) 1998 Free Software Foundation, Inc.
|
|
6 #
|
|
7 # This file is part of XEmacs.
|
|
8 #
|
|
9 # XEmacs is free software; you can redistribute it and/or modify it
|
|
10 # under the terms of the GNU General Public License as published by the
|
|
11 # Free Software Foundation; either version 2, or (at your option) any
|
|
12 # later version.
|
|
13 #
|
|
14 # XEmacs is distributed in the hope that it will be useful, but WITHOUT
|
|
15 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
16 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
17 # for more details.
|
|
18 #
|
|
19 # You should have received a copy of the GNU General Public License
|
|
20 # along with XEmacs; see the file COPYING. If not, write to
|
|
21 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
22 # Boston, MA 02111-1307, USA.
|
|
23 #
|
|
24 # Synched up with: Not in FSF.
|
|
25 #
|
|
26
|
371
|
27 XEMACS=..
|
183
|
28 LISP=$(XEMACS)\lisp
|
388
|
29 MODULES=$(XEMACS)\modules
|
304
|
30 NT=$(XEMACS)\nt
|
396
|
31 OUTDIR=$(NT)\obj
|
398
|
32
|
298
|
33 # Program name and version
|
|
34
|
412
|
35 !include "..\version.sh"
|
404
|
36
|
298
|
37 !if !defined(INFODOCK)
|
|
38 INFODOCK=0
|
|
39 !endif
|
|
40
|
|
41 !if $(INFODOCK)
|
|
42 INFODOCK_VERSION_STRING=$(infodock_major_version).$(infodock_minor_version).$(infodock_build_version)
|
|
43 PROGRAM_DEFINES=-DINFODOCK \
|
|
44 -DPATH_VERSION=\"$(INFODOCK_VERSION_STRING)\" \
|
|
45 -DPATH_PROGNAME=\"infodock\" \
|
|
46 -DINFODOCK_MAJOR_VERSION=$(infodock_major_version) \
|
|
47 -DINFODOCK_MINOR_VERSION=$(infodock_minor_version) \
|
|
48 -DINFODOCK_BUILD_VERSION=$(infodock_build_version)
|
|
49 !else
|
371
|
50 !if "$(emacs_beta_version)" != ""
|
298
|
51 XEMACS_VERSION_STRING=$(emacs_major_version).$(emacs_minor_version)-b$(emacs_beta_version)
|
|
52 !else
|
371
|
53 XEMACS_VERSION_STRING=$(emacs_major_version).$(emacs_minor_version)
|
298
|
54 !endif
|
|
55 PROGRAM_DEFINES= \
|
|
56 -DPATH_VERSION=\"$(XEMACS_VERSION_STRING)\" \
|
412
|
57 -DPATH_PROGNAME=\"xemacs\"
|
298
|
58 !endif
|
|
59
|
274
|
60 #
|
|
61 # Command line options defaults
|
|
62 #
|
298
|
63 !if !defined(INSTALL_DIR)
|
|
64 ! if $(INFODOCK)
|
|
65 INSTALL_DIR=c:\Program Files\Infodock\Infodock-$(INFODOCK_VERSION_STRING)
|
|
66 ! else
|
|
67 INSTALL_DIR=c:\Program Files\XEmacs\XEmacs-$(XEMACS_VERSION_STRING)
|
|
68 ! endif
|
|
69 !endif
|
396
|
70 !if !defined(HAVE_MULE)
|
|
71 HAVE_MULE=0
|
|
72 !endif
|
384
|
73 !if !defined(PACKAGE_PATH)
|
|
74 ! if !defined(PACKAGE_PREFIX)
|
|
75 PACKAGE_PREFIX=c:\Program Files\XEmacs
|
|
76 ! endif
|
396
|
77 ! if $(HAVE_MULE)
|
384
|
78 PACKAGE_PATH=~\.xemacs;;$(PACKAGE_PREFIX)\site-packages;$(PACKAGE_PREFIX)\mule-packages;$(PACKAGE_PREFIX)\xemacs-packages
|
396
|
79 ! else
|
|
80 PACKAGE_PATH=~\.xemacs;;$(PACKAGE_PREFIX)\site-packages;$(PACKAGE_PREFIX)\xemacs-packages
|
|
81 ! endif
|
274
|
82 !endif
|
384
|
83 PATH_PACKAGEPATH="$(PACKAGE_PATH:\=\\)"
|
412
|
84 !if !defined(HAVE_MSW)
|
|
85 HAVE_MSW=1
|
274
|
86 !endif
|
412
|
87 !if !defined(HAVE_X)
|
|
88 HAVE_X=0
|
274
|
89 !endif
|
276
|
90 !if !defined(HAVE_XPM)
|
|
91 HAVE_XPM=0
|
|
92 !endif
|
373
|
93 !if !defined(HAVE_PNG)
|
|
94 HAVE_PNG=0
|
|
95 !endif
|
|
96 !if !defined(HAVE_TIFF)
|
|
97 HAVE_TIFF=0
|
|
98 !endif
|
|
99 !if !defined(HAVE_JPEG)
|
|
100 HAVE_JPEG=0
|
|
101 !endif
|
394
|
102 !if !defined(HAVE_XFACE)
|
|
103 HAVE_XFACE=0
|
|
104 !endif
|
373
|
105 !if !defined(HAVE_GIF)
|
|
106 HAVE_GIF=1
|
|
107 !endif
|
276
|
108 !if !defined(HAVE_TOOLBARS)
|
|
109 HAVE_TOOLBARS=$(HAVE_XPM)
|
|
110 !endif
|
286
|
111 !if !defined(HAVE_DIALOGS)
|
|
112 HAVE_DIALOGS=1
|
|
113 !endif
|
274
|
114 !if !defined(HAVE_MSW_C_DIRED)
|
|
115 HAVE_MSW_C_DIRED=1
|
|
116 !endif
|
298
|
117 !if !defined(HAVE_NATIVE_SOUND)
|
|
118 HAVE_NATIVE_SOUND=1
|
|
119 !endif
|
274
|
120 !if !defined(DEBUG_XEMACS)
|
298
|
121 DEBUG_XEMACS=0
|
274
|
122 !endif
|
|
123 !if !defined(USE_UNION_TYPE)
|
|
124 USE_UNION_TYPE=0
|
|
125 !endif
|
|
126 !if !defined(USE_MINIMAL_TAGBITS)
|
|
127 USE_MINIMAL_TAGBITS=0
|
|
128 !endif
|
|
129 !if !defined(USE_INDEXED_LRECORD_IMPLEMENTATION)
|
|
130 USE_INDEXED_LRECORD_IMPLEMENTATION=0
|
|
131 !endif
|
298
|
132
|
|
133 #
|
|
134 # System configuration
|
|
135 #
|
396
|
136 !if !defined(OS)
|
|
137 OS=Windows_95/98
|
388
|
138 EMACS_CONFIGURATION=i586-pc-win32
|
298
|
139 !else if "$(PROCESSOR_ARCHITECTURE)" == "x86"
|
388
|
140 EMACS_CONFIGURATION=i586-pc-win32
|
298
|
141 !else if "$(PROCESSOR_ARCHITECTURE)" == "MIPS"
|
|
142 EMACS_CONFIGURATION=mips-pc-win32
|
|
143 !else if "$(PROCESSOR_ARCHITECTURE)" == "ALPHA"
|
|
144 EMACS_CONFIGURATION=alpha-pc-win32
|
|
145 !else if "$(PROCESSOR_ARCHITECTURE)" == "PPC"
|
|
146 EMACS_CONFIGURATION=ppc-pc-win32
|
|
147 !else
|
|
148 ! error Unknown processor architecture type $(PROCESSOR_ARCHITECTURE)
|
288
|
149 !endif
|
213
|
150
|
274
|
151 #
|
|
152 # Conf error checks
|
|
153 #
|
278
|
154 CONFIG_ERROR=0
|
288
|
155 !if $(INFODOCK) && !exist("..\..\Infodock.rules")
|
|
156 !message Cannot build InfoDock without InfoDock sources
|
|
157 CONFIG_ERROR=1
|
|
158 !endif
|
412
|
159 !if !$(HAVE_MSW) && !$(HAVE_X)
|
|
160 !message Please specify at least one HAVE_MSW=1 and/or HAVE_X=1
|
398
|
161 CONFIG_ERROR=1
|
|
162 !endif
|
412
|
163 !if $(HAVE_X) && !defined(X11_DIR)
|
278
|
164 !message Please specify root directory for your X11 installation: X11_DIR=path
|
|
165 CONFIG_ERROR=1
|
|
166 !endif
|
412
|
167 !if $(HAVE_X) && defined(X11_DIR) && !exist("$(X11_DIR)\LIB\X11.LIB")
|
278
|
168 !message Specified X11 directory does not contain "$(X11_DIR)\LIB\X11.LIB"
|
|
169 CONFIG_ERROR=1
|
274
|
170 !endif
|
412
|
171 !if $(HAVE_MSW) && $(HAVE_XPM) && !defined(XPM_DIR)
|
278
|
172 !message Please specify root directory for your XPM installation: XPM_DIR=path
|
|
173 CONFIG_ERROR=1
|
|
174 !endif
|
412
|
175 !if $(HAVE_MSW) && $(HAVE_XPM) && defined(XPM_DIR) && !exist("$(XPM_DIR)\lib\Xpm.lib")
|
294
|
176 !message Specified XPM directory does not contain "$(XPM_DIR)\lib\Xpm.lib"
|
278
|
177 CONFIG_ERROR=1
|
276
|
178 !endif
|
412
|
179 !if $(HAVE_MSW) && $(HAVE_PNG) && !defined(PNG_DIR)
|
373
|
180 !message Please specify root directory for your PNG installation: PNG_DIR=path
|
|
181 CONFIG_ERROR=1
|
|
182 !endif
|
412
|
183 !if $(HAVE_MSW) && $(HAVE_PNG) && defined(PNG_DIR) && !exist("$(PNG_DIR)\libpng.lib")
|
373
|
184 !message Specified PNG directory does not contain "$(PNG_DIR)\libpng.lib"
|
|
185 CONFIG_ERROR=1
|
|
186 !endif
|
412
|
187 !if $(HAVE_MSW) && $(HAVE_PNG) && !defined(ZLIB_DIR)
|
373
|
188 !message Please specify root directory for your ZLIB installation: ZLIB_DIR=path
|
|
189 CONFIG_ERROR=1
|
|
190 !endif
|
412
|
191 !if $(HAVE_MSW) && $(HAVE_PNG) && defined(ZLIB_DIR) && !exist("$(ZLIB_DIR)\zlib.lib")
|
373
|
192 !message Specified ZLIB directory does not contain "$(ZLIB_DIR)\zlib.lib"
|
|
193 CONFIG_ERROR=1
|
|
194 !endif
|
412
|
195 !if $(HAVE_MSW) && $(HAVE_TIFF) && !defined(TIFF_DIR)
|
373
|
196 !message Please specify root directory for your TIFF installation: TIFF_DIR=path
|
|
197 CONFIG_ERROR=1
|
|
198 !endif
|
412
|
199 !if $(HAVE_MSW) && $(HAVE_TIFF) && !exist("$(TIFF_DIR)\libtiff\libtiff.lib")
|
373
|
200 !message Specified TIFF directory does not contain "$(TIFF_DIR)\libtiff\libtiff.lib"
|
|
201 CONFIG_ERROR=1
|
|
202 !endif
|
412
|
203 !if $(HAVE_MSW) && $(HAVE_JPEG) && !defined(JPEG_DIR)
|
373
|
204 !message Please specify root directory for your JPEG installation: JPEG_DIR=path
|
|
205 CONFIG_ERROR=1
|
|
206 !endif
|
412
|
207 !if $(HAVE_MSW) && $(HAVE_JPEG) && !exist("$(JPEG_DIR)\libjpeg.lib")
|
373
|
208 !message Specified JPEG directory does not contain "$(JPEG_DIR)\libjpeg.lib"
|
|
209 CONFIG_ERROR=1
|
|
210 !endif
|
412
|
211 !if $(HAVE_MSW) && $(HAVE_XFACE) && !defined(COMPFACE_DIR)
|
394
|
212 !message Please specify root directory for your COMPFACE installation: COMPFACE_DIR=path
|
|
213 CONFIG_ERROR=1
|
|
214 !endif
|
412
|
215 !if $(HAVE_MSW) && $(HAVE_XFACE) && !exist("$(COMPFACE_DIR)\libcompface.lib")
|
394
|
216 !message Specified COMPFACE directory does not contain "$(COMPFACE_DIR)\libcompface.lib"
|
|
217 CONFIG_ERROR=1
|
|
218 !endif
|
412
|
219 !if $(HAVE_MSW) && $(HAVE_TOOLBARS) && !$(HAVE_XPM)
|
396
|
220 !message Toolbars require XPM support
|
278
|
221 CONFIG_ERROR=1
|
|
222 !endif
|
|
223 !if $(CONFIG_ERROR)
|
|
224 !error Configuration error(s) found
|
276
|
225 !endif
|
274
|
226
|
|
227 #
|
|
228 # Handle GUNG_HO
|
|
229 #
|
|
230 !if defined(GUNG_HO)
|
|
231 USE_MINIMAL_TAGBITS=$(GUNG_HO)
|
|
232 USE_INDEXED_LRECORD_IMPLEMENTATION=$(GUNG_HO)
|
|
233 !endif
|
219
|
234
|
274
|
235 #
|
412
|
236 # Compiler command echo control. Define VERBOSECC=1 to get vebose compilation.
|
278
|
237 #
|
|
238 !if !defined(VERBOSECC)
|
|
239 VERBOSECC=0
|
|
240 !endif
|
|
241 !if $(VERBOSECC)
|
388
|
242 CCV=$(CC)
|
278
|
243 !else
|
388
|
244 CCV=@$(CC)
|
278
|
245 !endif
|
|
246
|
219
|
247 !if $(DEBUG_XEMACS)
|
183
|
248 OPT=-Od -Zi
|
219
|
249 !else
|
396
|
250 OPT=-O2 -G5
|
219
|
251 !endif
|
183
|
252
|
412
|
253 CFLAGS=-nologo -W3 $(OPT)
|
398
|
254
|
412
|
255 !if $(HAVE_X)
|
213
|
256 X_DEFINES=-DHAVE_X_WINDOWS
|
274
|
257 X_INCLUDES=-I$(X11_DIR)\include
|
|
258 X_LIBS=-libpath:$(X11_DIR)\lib Xaw.lib Xmu.lib Xt.lib SM.lib ICE.lib Xext.lib X11.lib
|
213
|
259 !endif
|
|
260
|
412
|
261 !if $(HAVE_MSW)
|
231
|
262 MSW_DEFINES=-DHAVE_MS_WINDOWS -DHAVE_SCROLLBARS -DHAVE_MENUBARS
|
276
|
263 MSW_INCLUDES=
|
|
264 MSW_LIBS=
|
263
|
265 !if $(HAVE_MSW_C_DIRED)
|
276
|
266 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_MSW_C_DIRED
|
412
|
267 MSW_C_DIRED_SRC=$(XEMACS)\src\dired-msw.c
|
263
|
268 MSW_C_DIRED_OBJ=$(OUTDIR)\dired-msw.obj
|
|
269 !endif
|
276
|
270 !if $(HAVE_XPM)
|
|
271 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_XPM -DFOR_MSW
|
278
|
272 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(XPM_DIR)" -I"$(XPM_DIR)\lib"
|
|
273 MSW_LIBS=$(MSW_LIBS) "$(XPM_DIR)\lib\Xpm.lib"
|
276
|
274 !endif
|
373
|
275 !if $(HAVE_GIF)
|
|
276 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_GIF
|
412
|
277 MSW_GIF_SRC=$(XEMACS)\src\dgif_lib.c $(XEMACS)\src\gif_io.c
|
373
|
278 MSW_GIF_OBJ=$(OUTDIR)\dgif_lib.obj $(OUTDIR)\gif_io.obj
|
|
279 !endif
|
|
280 !if $(HAVE_PNG)
|
|
281 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_PNG
|
|
282 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(PNG_DIR)" -I"$(ZLIB_DIR)"
|
|
283 MSW_LIBS=$(MSW_LIBS) "$(PNG_DIR)\libpng.lib" "$(ZLIB_DIR)\zlib.lib"
|
|
284 !endif
|
|
285 !if $(HAVE_TIFF)
|
|
286 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_TIFF
|
|
287 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(TIFF_DIR)\libtiff"
|
|
288 MSW_LIBS=$(MSW_LIBS) "$(TIFF_DIR)\libtiff\libtiff.lib"
|
|
289 !endif
|
|
290 !if $(HAVE_JPEG)
|
|
291 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_JPEG
|
|
292 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(JPEG_DIR)"
|
|
293 MSW_LIBS=$(MSW_LIBS) "$(JPEG_DIR)\libjpeg.lib"
|
|
294 !endif
|
394
|
295 !if $(HAVE_XFACE)
|
|
296 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_XFACE
|
|
297 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(COMPFACE_DIR)"
|
|
298 MSW_LIBS=$(MSW_LIBS) "$(COMPFACE_DIR)\libcompface.lib"
|
|
299 !endif
|
276
|
300 !if $(HAVE_TOOLBARS)
|
|
301 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_TOOLBARS
|
412
|
302 MSW_TOOLBAR_SRC=$(XEMACS)\src\toolbar.c $(XEMACS)\src\toolbar-msw.c
|
276
|
303 MSW_TOOLBAR_OBJ=$(OUTDIR)\toolbar.obj $(OUTDIR)\toolbar-msw.obj
|
|
304 MSW_LIBS=$(MSW_LIBS) comctl32.lib
|
|
305 !endif
|
286
|
306 !if $(HAVE_DIALOGS)
|
|
307 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_DIALOGS
|
412
|
308 MSW_DIALOG_SRC=$(XEMACS)\src\dialog.c $(XEMACS)\src\dialog-msw.c
|
286
|
309 MSW_DIALOG_OBJ=$(OUTDIR)\dialog.obj $(OUTDIR)\dialog-msw.obj
|
|
310 !endif
|
298
|
311 !if $(HAVE_NATIVE_SOUND)
|
|
312 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_NATIVE_SOUND
|
|
313 !endif
|
213
|
314 !endif
|
|
315
|
|
316 !if $(HAVE_MULE)
|
|
317 MULE_DEFINES=-DMULE
|
|
318 !endif
|
|
319
|
219
|
320 !if $(DEBUG_XEMACS)
|
282
|
321 DEBUG_DEFINES=-DDEBUG_XEMACS -D_DEBUG
|
396
|
322 DEBUG_FLAGS=-debug:full
|
219
|
323 !endif
|
|
324
|
282
|
325 !if $(USE_MINIMAL_TAGBITS)
|
|
326 TAGBITS_DEFINES=-DUSE_MINIMAL_TAGBITS
|
|
327 !endif
|
|
328 !if $(USE_INDEXED_LRECORD_IMPLEMENTATION)
|
|
329 LRECORD_DEFINES=-DUSE_INDEXED_LRECORD_IMPLEMENTATION
|
|
330 !endif
|
|
331 !if $(USE_UNION_TYPE)
|
|
332 UNION_DEFINES=-DUSE_UNION_TYPE
|
|
333 !endif
|
|
334
|
288
|
335 # Hard-coded paths
|
|
336
|
|
337 !if $(INFODOCK)
|
|
338 PATH_PREFIX=../..
|
|
339 !else
|
|
340 PATH_PREFIX=..
|
|
341 !endif
|
|
342
|
|
343 PATH_DEFINES=-DPATH_PREFIX=\"$(PATH_PREFIX)\"
|
|
344
|
118
|
345 # Generic variables
|
|
346
|
412
|
347 INCLUDES=$(X_INCLUDES) $(MSW_INCLUDES) -I$(XEMACS)\nt\inc -I$(XEMACS)\src -I$(XEMACS)\lwlib
|
213
|
348
|
276
|
349 DEFINES=$(X_DEFINES) $(MSW_DEFINES) $(MULE_DEFINES) \
|
282
|
350 $(TAGBITS_DEFINES) $(LRECORD_DEFINES) $(UNION_DEFINES) \
|
412
|
351 -DWIN32 -D_WIN32 -DWIN32_LEAN_AND_MEAN -DWINDOWSNT -Demacs \
|
288
|
352 -DHAVE_CONFIG_H $(PROGRAM_DEFINES) $(PATH_DEFINES)
|
118
|
353
|
|
354 #------------------------------------------------------------------------------
|
|
355
|
412
|
356 default: $(OUTDIR)\nul all
|
|
357
|
213
|
358 $(OUTDIR)\nul:
|
118
|
359 -@mkdir $(OUTDIR)
|
|
360
|
183
|
361 XEMACS_INCLUDES=\
|
412
|
362 $(XEMACS)\src\config.h \
|
|
363 $(XEMACS)\src\Emacs.ad.h \
|
|
364 $(XEMACS)\src\paths.h
|
183
|
365
|
412
|
366 $(XEMACS)\src\config.h: config.h
|
|
367 copy config.h $(XEMACS)\src
|
219
|
368
|
412
|
369 $(XEMACS)\src\Emacs.ad.h: Emacs.ad.h
|
|
370 copy Emacs.ad.h $(XEMACS)\src
|
219
|
371
|
412
|
372 $(XEMACS)\src\paths.h: paths.h
|
|
373 copy paths.h $(XEMACS)\src
|
183
|
374
|
|
375 #------------------------------------------------------------------------------
|
|
376
|
288
|
377 # lib-src programs
|
|
378
|
412
|
379 LIB_SRC = $(XEMACS)\lib-src
|
|
380 LIB_SRC_DEFINES = -DHAVE_CONFIG_H -DWIN32 -DWINDOWSNT
|
288
|
381
|
382
|
382 #
|
|
383 # Creating config.values to be used by config.el
|
|
384 #
|
|
385 CONFIG_VALUES = $(LIB_SRC)\config.values
|
|
386 !if [echo Creating $(CONFIG_VALUES) && echo ;;; Do not edit this file!>$(CONFIG_VALUES)]
|
|
387 !endif
|
|
388 # MAKEDIR has to be made into a string.
|
398
|
389 #!if [echo blddir>>$(CONFIG_VALUES) && echo $(ESC)"$(MAKEDIR:\=\\)\\..$(ESC)">>$(CONFIG_VALUES)]
|
|
390 !if [echo blddir>>$(CONFIG_VALUES) && echo "$(MAKEDIR:\=\\)\\..">>$(CONFIG_VALUES)]
|
382
|
391 !endif
|
398
|
392 !if [echo CC>>$(CONFIG_VALUES) && echo "$(CC:\=\\)">>$(CONFIG_VALUES)]
|
382
|
393 !endif
|
398
|
394 !if [echo CFLAGS>>$(CONFIG_VALUES) && echo "$(CFLAGS:\=\\)">>$(CONFIG_VALUES)]
|
|
395 !endif
|
|
396 !if [echo CPP>>$(CONFIG_VALUES) && echo "$(CPP:\=\\)">>$(CONFIG_VALUES)]
|
382
|
397 !endif
|
398
|
398 !if [echo CPPFLAGS>>$(CONFIG_VALUES) && echo "$(CPPFLAGS:\=\\)">>$(CONFIG_VALUES)]
|
382
|
399 !endif
|
398
|
400 !if [echo LISPDIR>>$(CONFIG_VALUES) && echo "$(MAKEDIR:\=\\)\\$(LISP:\=\\)">>$(CONFIG_VALUES)]
|
382
|
401 !endif
|
|
402 # PATH_PACKAGEPATH is already a quoted string.
|
|
403 !if [echo PACKAGE_PATH>>$(CONFIG_VALUES) && echo $(PATH_PACKAGEPATH)>>$(CONFIG_VALUES)]
|
|
404 !endif
|
|
405
|
288
|
406 # Inferred rule
|
|
407 {$(LIB_SRC)}.c{$(LIB_SRC)}.exe :
|
412
|
408 @cd $(LIB_SRC)
|
|
409 $(CCV) -I. -I$(XEMACS)/src -I$(XEMACS)/nt/inc $(LIB_SRC_DEFINES) $(CFLAGS) -Fe$@ $** -link -incremental:no
|
|
410 @cd $(NT)
|
288
|
411
|
|
412 # Individual dependencies
|
|
413 ETAGS_DEPS = $(LIB_SRC)/getopt.c $(LIB_SRC)/getopt1.c $(LIB_SRC)/../src/regex.c
|
|
414 $(LIB_SRC)/etags.exe : $(LIB_SRC)/etags.c $(ETAGS_DEPS)
|
382
|
415 $(LIB_SRC)/movemail.exe: $(LIB_SRC)/movemail.c $(LIB_SRC)/pop.c $(ETAGS_DEPS)
|
412
|
416 @cd $(LIB_SRC)
|
396
|
417 $(CCV) -I. -I$(XEMACS)/src -I$(XEMACS)/nt/inc $(LIB_SRC_DEFINES) $(CFLAGS) -Fe$@ $** wsock32.lib -link -incremental:no
|
412
|
418 @cd $(NT)
|
288
|
419
|
|
420 LIB_SRC_TOOLS = \
|
412
|
421 $(LIB_SRC)/make-docfile.exe \
|
288
|
422 $(LIB_SRC)/hexl.exe \
|
412
|
423 $(LIB_SRC)/movemail.exe \
|
288
|
424 $(LIB_SRC)/mmencode.exe \
|
|
425 $(LIB_SRC)/sorted-doc.exe \
|
412
|
426 $(LIB_SRC)/wakeup.exe \
|
|
427 $(LIB_SRC)/etags.exe
|
288
|
428
|
298
|
429 #------------------------------------------------------------------------------
|
|
430
|
412
|
431 # runxemacs proglet
|
|
432
|
|
433 RUNEMACS = $(XEMACS)\src\runxemacs.exe
|
406
|
434
|
412
|
435 $(RUNEMACS): $(LIB_SRC)\run.c $(LIB_SRC)\run.res
|
|
436 $(CCV) -I$(LIB_SRC) $(CFLAGS) -Fe$@ -Fo$(LIB_SRC) -Fd$(LIB_SRC)\ $** kernel32.lib user32.lib -link -incremental:no
|
|
437
|
|
438 $(LIB_SRC)\run.res: $(LIB_SRC)\run.rc
|
|
439 rc -I$(LIB_SRC) -Fo$@ $**
|
406
|
440
|
|
441 #------------------------------------------------------------------------------
|
|
442
|
298
|
443 # LASTFILE Library
|
|
444
|
183
|
445 LASTFILE=$(OUTDIR)\lastfile.lib
|
412
|
446 LASTFILE_SRC=$(XEMACS)\src
|
396
|
447 LASTFILE_FLAGS=$(CFLAGS) $(INCLUDES) -Fo$@ -Fd$* -c
|
118
|
448 LASTFILE_OBJS= \
|
183
|
449 $(OUTDIR)\lastfile.obj
|
179
|
450
|
215
|
451 $(LASTFILE): $(XEMACS_INCLUDES) $(LASTFILE_OBJS)
|
183
|
452 link.exe -lib -nologo -out:$@ $(LASTFILE_OBJS)
|
118
|
453
|
183
|
454 $(OUTDIR)\lastfile.obj: $(LASTFILE_SRC)\lastfile.c
|
278
|
455 $(CCV) $(LASTFILE_FLAGS) $**
|
118
|
456
|
|
457 #------------------------------------------------------------------------------
|
|
458
|
412
|
459 !if $(HAVE_X)
|
213
|
460
|
118
|
461 # LWLIB Library
|
|
462
|
183
|
463 LWLIB=$(OUTDIR)\lwlib.lib
|
412
|
464 LWLIB_SRC=$(XEMACS)\lwlib
|
388
|
465 LWLIB_FLAGS=$(CFLAGS) $(INCLUDES) $(DEFINES) \
|
213
|
466 -DNEED_ATHENA -DNEED_LUCID \
|
|
467 -D_WINDOWS -DMENUBARS_LUCID -DSCROLLBARS_LUCID -DDIALOGS_ATHENA \
|
|
468 -Fo$@ -c
|
118
|
469 LWLIB_OBJS= \
|
213
|
470 $(OUTDIR)\lwlib-config.obj \
|
|
471 $(OUTDIR)\lwlib-utils.obj \
|
|
472 $(OUTDIR)\lwlib-Xaw.obj \
|
|
473 $(OUTDIR)\lwlib-Xlw.obj \
|
|
474 $(OUTDIR)\lwlib.obj \
|
|
475 $(OUTDIR)\xlwmenu.obj \
|
|
476 $(OUTDIR)\xlwscrollbar.obj
|
118
|
477
|
215
|
478 $(LWLIB): $(LWLIB_OBJS)
|
396
|
479 link.exe -lib -nologo -out:$@ $(LWLIB_OBJS)
|
118
|
480
|
412
|
481 $(OUTDIR)\lwlib-config.obj: $(LWLIB_SRC)\lwlib-config.c
|
278
|
482 $(CCV) $(LWLIB_FLAGS) $**
|
118
|
483
|
412
|
484 $(OUTDIR)\lwlib-utils.obj: $(LWLIB_SRC)\lwlib-utils.c
|
278
|
485 $(CCV) $(LWLIB_FLAGS) $**
|
118
|
486
|
412
|
487 $(OUTDIR)\lwlib-Xaw.obj: $(LWLIB_SRC)\lwlib-Xaw.c
|
278
|
488 $(CCV) $(LWLIB_FLAGS) $**
|
118
|
489
|
412
|
490 $(OUTDIR)\lwlib-Xlw.obj: $(LWLIB_SRC)\lwlib-Xlw.c
|
278
|
491 $(CCV) $(LWLIB_FLAGS) $**
|
118
|
492
|
412
|
493 $(OUTDIR)\lwlib.obj: $(LWLIB_SRC)\lwlib.c
|
278
|
494 $(CCV) $(LWLIB_FLAGS) $**
|
118
|
495
|
412
|
496 $(OUTDIR)\xlwmenu.obj: $(LWLIB_SRC)\xlwmenu.c
|
278
|
497 $(CCV) $(LWLIB_FLAGS) $**
|
118
|
498
|
412
|
499 $(OUTDIR)\xlwscrollbar.obj: $(LWLIB_SRC)\xlwscrollbar.c
|
278
|
500 $(CCV) $(LWLIB_FLAGS) $**
|
118
|
501
|
213
|
502 !endif
|
118
|
503 #------------------------------------------------------------------------------
|
|
504
|
183
|
505 DOC=$(LIB_SRC)\DOC
|
195
|
506 DOC_SRC1=\
|
412
|
507 $(XEMACS)\src\abbrev.c \
|
|
508 $(XEMACS)\src\alloc.c \
|
|
509 $(XEMACS)\src\alloca.c \
|
|
510 $(XEMACS)\src\blocktype.c \
|
|
511 $(XEMACS)\src\buffer.c \
|
|
512 $(XEMACS)\src\bytecode.c \
|
|
513 $(XEMACS)\src\callint.c \
|
|
514 $(XEMACS)\src\callproc.c \
|
|
515 $(XEMACS)\src\casefiddle.c \
|
|
516 $(XEMACS)\src\casetab.c \
|
|
517 $(XEMACS)\src\chartab.c \
|
|
518 $(XEMACS)\src\cmdloop.c \
|
|
519 $(XEMACS)\src\cmds.c \
|
|
520 $(XEMACS)\src\console-stream.c \
|
|
521 $(XEMACS)\src\console.c \
|
|
522 $(XEMACS)\src\data.c \
|
|
523 $(XEMACS)\src\device.c
|
195
|
524 DOC_SRC2=\
|
412
|
525 $(XEMACS)\src\dired.c \
|
|
526 $(XEMACS)\src\doc.c \
|
|
527 $(XEMACS)\src\doprnt.c \
|
|
528 $(XEMACS)\src\dragdrop.c \
|
|
529 $(XEMACS)\src\dynarr.c \
|
|
530 $(XEMACS)\src\editfns.c \
|
|
531 $(XEMACS)\src\elhash.c \
|
|
532 $(XEMACS)\src\emacs.c \
|
|
533 $(XEMACS)\src\eval.c \
|
|
534 $(XEMACS)\src\event-stream.c \
|
|
535 $(XEMACS)\src\events.c \
|
|
536 $(XEMACS)\src\extents.c \
|
|
537 $(XEMACS)\src\faces.c \
|
|
538 $(XEMACS)\src\file-coding.c \
|
|
539 $(XEMACS)\src\fileio.c \
|
|
540 $(XEMACS)\src\filemode.c \
|
|
541 $(XEMACS)\src\floatfns.c \
|
|
542 $(XEMACS)\src\fns.c
|
213
|
543 DOC_SRC3=\
|
412
|
544 $(XEMACS)\src\font-lock.c \
|
|
545 $(XEMACS)\src\frame.c \
|
|
546 $(XEMACS)\src\free-hook.c \
|
|
547 $(XEMACS)\src\general.c \
|
|
548 $(XEMACS)\src\glyphs.c \
|
|
549 $(XEMACS)\src\glyphs-eimage.c \
|
|
550 $(XEMACS)\src\glyphs-widget.c \
|
|
551 $(XEMACS)\src\gmalloc.c \
|
|
552 $(XEMACS)\src\gui.c \
|
|
553 $(XEMACS)\src\hash.c \
|
|
554 $(XEMACS)\src\imgproc.c \
|
|
555 $(XEMACS)\src\indent.c \
|
|
556 $(XEMACS)\src\insdel.c \
|
|
557 $(XEMACS)\src\intl.c \
|
|
558 $(XEMACS)\src\keymap.c \
|
|
559 $(XEMACS)\src\line-number.c \
|
|
560 $(XEMACS)\src\lread.c \
|
|
561 $(XEMACS)\src\lstream.c \
|
|
562 $(XEMACS)\src\macros.c \
|
|
563 $(XEMACS)\src\marker.c
|
213
|
564 DOC_SRC4=\
|
412
|
565 $(XEMACS)\src\md5.c \
|
|
566 $(XEMACS)\src\menubar.c \
|
|
567 $(XEMACS)\src\minibuf.c \
|
|
568 $(XEMACS)\src\nt.c \
|
|
569 $(XEMACS)\src\ntheap.c \
|
|
570 $(XEMACS)\src\ntplay.c \
|
|
571 $(XEMACS)\src\ntproc.c \
|
|
572 $(XEMACS)\src\objects.c \
|
|
573 $(XEMACS)\src\opaque.c \
|
|
574 $(XEMACS)\src\print.c \
|
|
575 $(XEMACS)\src\process.c \
|
|
576 $(XEMACS)\src\process-nt.c \
|
|
577 $(XEMACS)\src\profile.c \
|
|
578 $(XEMACS)\src\rangetab.c \
|
|
579 $(XEMACS)\src\realpath.c \
|
|
580 $(XEMACS)\src\redisplay-output.c \
|
|
581 $(XEMACS)\src\redisplay.c \
|
|
582 $(XEMACS)\src\regex.c \
|
|
583 $(XEMACS)\src\scrollbar.c \
|
|
584 $(XEMACS)\src\search.c \
|
414
|
585 $(XEMACS)\src\select.c \
|
412
|
586 $(XEMACS)\src\signal.c \
|
|
587 $(XEMACS)\src\sound.c
|
213
|
588 DOC_SRC5=\
|
412
|
589 $(XEMACS)\src\specifier.c \
|
|
590 $(XEMACS)\src\strftime.c \
|
|
591 $(XEMACS)\src\symbols.c \
|
|
592 $(XEMACS)\src\syntax.c \
|
|
593 $(XEMACS)\src\sysdep.c \
|
|
594 $(XEMACS)\src\termcap.c \
|
|
595 $(XEMACS)\src\tparam.c \
|
|
596 $(XEMACS)\src\undo.c \
|
|
597 $(XEMACS)\src\unexnt.c \
|
|
598 $(XEMACS)\src\vm-limit.c \
|
|
599 $(XEMACS)\src\window.c \
|
|
600 $(XEMACS)\src\widget.c
|
213
|
601
|
412
|
602 !if $(HAVE_X)
|
213
|
603 DOC_SRC6=\
|
412
|
604 $(XEMACS)\src\balloon_help.c \
|
|
605 $(XEMACS)\src\console-x.c \
|
|
606 $(XEMACS)\src\device-x.c \
|
|
607 $(XEMACS)\src\dialog-x.c \
|
|
608 $(XEMACS)\src\EmacsFrame.c \
|
|
609 $(XEMACS)\src\EmacsManager.c \
|
|
610 $(XEMACS)\src\EmacsShell-sub.c\
|
|
611 $(XEMACS)\src\EmacsShell.c \
|
|
612 $(XEMACS)\src\event-Xt.c \
|
|
613 $(XEMACS)\src\frame-x.c \
|
|
614 $(XEMACS)\src\glyphs-x.c \
|
|
615 $(XEMACS)\src\gui-x.c \
|
|
616 $(XEMACS)\src\menubar.c \
|
|
617 $(XEMACS)\src\menubar-x.c \
|
|
618 $(XEMACS)\src\objects-x.c \
|
|
619 $(XEMACS)\src\redisplay-x.c \
|
|
620 $(XEMACS)\src\scrollbar-x.c \
|
|
621 $(XEMACS)\src\balloon-x.c \
|
|
622 $(XEMACS)\src\xgccache.c \
|
|
623 $(XEMACS)\src\xmu.c \
|
414
|
624 $(XEMACS)\src\select-x.c
|
213
|
625 !endif
|
|
626
|
412
|
627 !if $(HAVE_MSW)
|
219
|
628 DOC_SRC7=\
|
412
|
629 $(XEMACS)\src\console-msw.c \
|
|
630 $(XEMACS)\src\device-msw.c \
|
|
631 $(XEMACS)\src\event-msw.c \
|
|
632 $(XEMACS)\src\frame-msw.c \
|
|
633 $(XEMACS)\src\glyphs-msw.c \
|
|
634 $(XEMACS)\src\gui-msw.c \
|
|
635 $(XEMACS)\src\menubar-msw.c \
|
|
636 $(XEMACS)\src\objects-msw.c \
|
|
637 $(XEMACS)\src\redisplay-msw.c \
|
|
638 $(XEMACS)\src\scrollbar-msw.c \
|
|
639 $(XEMACS)\src\select-msw.c \
|
276
|
640 $(MSW_C_DIRED_SRC) \
|
286
|
641 $(MSW_TOOLBAR_SRC) \
|
373
|
642 $(MSW_DIALOG_SRC) \
|
|
643 $(MSW_GIF_SRC)
|
213
|
644 !endif
|
|
645
|
267
|
646 !if $(HAVE_MULE)
|
265
|
647 DOC_SRC8=\
|
412
|
648 $(XEMACS)\src\mule.c \
|
|
649 $(XEMACS)\src\mule-charset.c \
|
|
650 $(XEMACS)\src\mule-ccl.c \
|
|
651 $(XEMACS)\src\mule-coding.c
|
|
652 ! if $(HAVE_X)
|
|
653 DOC_SRC8=$(DOC_SRC8) $(XEMACS)\src\input-method-xlib.c
|
388
|
654 ! endif
|
213
|
655 !endif
|
118
|
656
|
219
|
657 !if $(DEBUG_XEMACS)
|
267
|
658 DOC_SRC9=\
|
412
|
659 $(XEMACS)\src\debug.c
|
219
|
660 !endif
|
|
661
|
118
|
662 #------------------------------------------------------------------------------
|
|
663
|
|
664 # TEMACS Executable
|
|
665
|
294
|
666 # This may not exist
|
371
|
667 !if "$(emacs_beta_version)" != ""
|
294
|
668 EMACS_BETA_VERSION=-DEMACS_BETA_VERSION=$(emacs_beta_version)
|
|
669 !ENDIF
|
|
670
|
412
|
671 TEMACS_DIR=$(XEMACS)\src
|
183
|
672 TEMACS=$(TEMACS_DIR)\temacs.exe
|
213
|
673 TEMACS_BROWSE=$(TEMACS_DIR)\temacs.bsc
|
412
|
674 TEMACS_SRC=$(XEMACS)\src
|
276
|
675 TEMACS_LIBS=$(LASTFILE) $(LWLIB) $(X_LIBS) $(MSW_LIBS) \
|
412
|
676 kernel32.lib user32.lib gdi32.lib advapi32.lib \
|
|
677 shell32.lib wsock32.lib winmm.lib libc.lib
|
223
|
678 TEMACS_LFLAGS=-nologo $(LIBRARIES) $(DEBUG_FLAGS) -base:0x1000000\
|
412
|
679 -stack:0x800000 -entry:_start -subsystem:console\
|
223
|
680 -pdb:$(TEMACS_DIR)\temacs.pdb -map:$(TEMACS_DIR)\temacs.map \
|
412
|
681 -heap:0x00100000 -out:$@
|
|
682 TEMACS_CPP_FLAGS=-ML -c \
|
396
|
683 $(CFLAGS) $(INCLUDES) $(DEFINES) $(DEBUG_DEFINES) \
|
183
|
684 -DEMACS_MAJOR_VERSION=$(emacs_major_version) \
|
|
685 -DEMACS_MINOR_VERSION=$(emacs_minor_version) \
|
294
|
686 $(EMACS_BETA_VERSION) \
|
412
|
687 -DXEMACS_CODENAME=\"$(xemacs_codename)\" \
|
298
|
688 -DEMACS_CONFIGURATION=\"$(EMACS_CONFIGURATION)\" \
|
269
|
689 -DPATH_PACKAGEPATH=\"$(PATH_PACKAGEPATH)\"
|
219
|
690
|
412
|
691 !if $(HAVE_X)
|
213
|
692 TEMACS_X_OBJS=\
|
|
693 $(OUTDIR)\balloon-x.obj \
|
|
694 $(OUTDIR)\balloon_help.obj \
|
|
695 $(OUTDIR)\console-x.obj \
|
|
696 $(OUTDIR)\device-x.obj \
|
|
697 $(OUTDIR)\dialog-x.obj \
|
|
698 $(OUTDIR)\EmacsFrame.obj \
|
|
699 $(OUTDIR)\EmacsManager.obj \
|
|
700 $(OUTDIR)\EmacsShell.obj \
|
|
701 $(OUTDIR)\TopLevelEmacsShell.obj\
|
|
702 $(OUTDIR)\TransientEmacsShell.obj\
|
|
703 $(OUTDIR)\event-Xt.obj \
|
|
704 $(OUTDIR)\frame-x.obj \
|
|
705 $(OUTDIR)\glyphs-x.obj \
|
|
706 $(OUTDIR)\gui-x.obj \
|
|
707 $(OUTDIR)\menubar-x.obj \
|
|
708 $(OUTDIR)\objects-x.obj \
|
|
709 $(OUTDIR)\redisplay-x.obj \
|
|
710 $(OUTDIR)\scrollbar-x.obj \
|
|
711 $(OUTDIR)\xgccache.obj \
|
|
712 $(OUTDIR)\xmu.obj \
|
414
|
713 $(OUTDIR)\select-x.obj
|
213
|
714 !endif
|
|
715
|
412
|
716 !if $(HAVE_MSW)
|
213
|
717 TEMACS_MSW_OBJS=\
|
|
718 $(OUTDIR)\console-msw.obj \
|
|
719 $(OUTDIR)\device-msw.obj \
|
|
720 $(OUTDIR)\event-msw.obj \
|
|
721 $(OUTDIR)\frame-msw.obj \
|
269
|
722 $(OUTDIR)\glyphs-msw.obj \
|
388
|
723 $(OUTDIR)\gui-msw.obj \
|
231
|
724 $(OUTDIR)\menubar-msw.obj \
|
213
|
725 $(OUTDIR)\objects-msw.obj \
|
|
726 $(OUTDIR)\redisplay-msw.obj \
|
231
|
727 $(OUTDIR)\scrollbar-msw.obj \
|
263
|
728 $(OUTDIR)\select-msw.obj \
|
276
|
729 $(MSW_C_DIRED_OBJ) \
|
286
|
730 $(MSW_TOOLBAR_OBJ) \
|
373
|
731 $(MSW_DIALOG_OBJ) \
|
|
732 $(MSW_GIF_OBJ)
|
213
|
733 !endif
|
|
734
|
|
735 !if $(HAVE_MULE)
|
|
736 TEMACS_MULE_OBJS=\
|
|
737 $(OUTDIR)\mule.obj \
|
|
738 $(OUTDIR)\mule-charset.obj \
|
412
|
739 $(OUTDIR)\mule-ccl.obj \
|
|
740 $(OUTDIR)\mule-coding.obj
|
|
741 ! if $(HAVE_X)
|
388
|
742 TEMACS_MULE_OBJS=\
|
|
743 $(TEMACS_MULE_OBJS) $(OUTDIR)\input-method-xlib.obj
|
|
744 ! endif
|
219
|
745 !endif
|
|
746
|
|
747 !if $(DEBUG_XEMACS)
|
|
748 TEMACS_DEBUG_OBJS=\
|
412
|
749 $(OUTDIR)\debug.obj
|
213
|
750 !endif
|
|
751
|
118
|
752 TEMACS_OBJS= \
|
213
|
753 $(TEMACS_X_OBJS)\
|
|
754 $(TEMACS_MSW_OBJS)\
|
265
|
755 $(TEMACS_CODING_OBJS)\
|
213
|
756 $(TEMACS_MULE_OBJS)\
|
219
|
757 $(TEMACS_DEBUG_OBJS)\
|
183
|
758 $(OUTDIR)\abbrev.obj \
|
|
759 $(OUTDIR)\alloc.obj \
|
|
760 $(OUTDIR)\alloca.obj \
|
|
761 $(OUTDIR)\blocktype.obj \
|
|
762 $(OUTDIR)\buffer.obj \
|
|
763 $(OUTDIR)\bytecode.obj \
|
|
764 $(OUTDIR)\callint.obj \
|
|
765 $(OUTDIR)\callproc.obj \
|
|
766 $(OUTDIR)\casefiddle.obj \
|
|
767 $(OUTDIR)\casetab.obj \
|
|
768 $(OUTDIR)\chartab.obj \
|
|
769 $(OUTDIR)\cmdloop.obj \
|
|
770 $(OUTDIR)\cmds.obj \
|
|
771 $(OUTDIR)\console-stream.obj \
|
|
772 $(OUTDIR)\console.obj \
|
|
773 $(OUTDIR)\data.obj \
|
|
774 $(OUTDIR)\device.obj \
|
|
775 $(OUTDIR)\dired.obj \
|
|
776 $(OUTDIR)\doc.obj \
|
|
777 $(OUTDIR)\doprnt.obj \
|
284
|
778 $(OUTDIR)\dragdrop.obj \
|
183
|
779 $(OUTDIR)\dynarr.obj \
|
|
780 $(OUTDIR)\editfns.obj \
|
|
781 $(OUTDIR)\elhash.obj \
|
|
782 $(OUTDIR)\emacs.obj \
|
|
783 $(OUTDIR)\eval.obj \
|
|
784 $(OUTDIR)\event-stream.obj \
|
|
785 $(OUTDIR)\events.obj \
|
|
786 $(OUTDIR)\extents.obj \
|
|
787 $(OUTDIR)\faces.obj \
|
267
|
788 $(OUTDIR)\file-coding.obj \
|
183
|
789 $(OUTDIR)\fileio.obj \
|
|
790 $(OUTDIR)\filemode.obj \
|
|
791 $(OUTDIR)\floatfns.obj \
|
|
792 $(OUTDIR)\fns.obj \
|
|
793 $(OUTDIR)\font-lock.obj \
|
|
794 $(OUTDIR)\frame.obj \
|
412
|
795 $(OUTDIR)\free-hook.obj \
|
183
|
796 $(OUTDIR)\general.obj \
|
|
797 $(OUTDIR)\glyphs.obj \
|
280
|
798 $(OUTDIR)\glyphs-eimage.obj \
|
388
|
799 $(OUTDIR)\glyphs-widget.obj \
|
412
|
800 $(OUTDIR)\gmalloc.obj \
|
183
|
801 $(OUTDIR)\gui.obj \
|
|
802 $(OUTDIR)\hash.obj \
|
|
803 $(OUTDIR)\indent.obj \
|
269
|
804 $(OUTDIR)\imgproc.obj \
|
183
|
805 $(OUTDIR)\insdel.obj \
|
|
806 $(OUTDIR)\intl.obj \
|
|
807 $(OUTDIR)\keymap.obj \
|
213
|
808 $(OUTDIR)\line-number.obj \
|
183
|
809 $(OUTDIR)\lread.obj \
|
|
810 $(OUTDIR)\lstream.obj \
|
|
811 $(OUTDIR)\macros.obj \
|
231
|
812 $(OUTDIR)\menubar.obj \
|
183
|
813 $(OUTDIR)\marker.obj \
|
|
814 $(OUTDIR)\md5.obj \
|
|
815 $(OUTDIR)\minibuf.obj \
|
|
816 $(OUTDIR)\nt.obj \
|
412
|
817 $(OUTDIR)\ntheap.obj \
|
298
|
818 $(OUTDIR)\ntplay.obj \
|
183
|
819 $(OUTDIR)\ntproc.obj \
|
|
820 $(OUTDIR)\objects.obj \
|
|
821 $(OUTDIR)\opaque.obj \
|
|
822 $(OUTDIR)\print.obj \
|
|
823 $(OUTDIR)\process.obj \
|
274
|
824 $(OUTDIR)\process-nt.obj \
|
223
|
825 $(OUTDIR)\profile.obj \
|
183
|
826 $(OUTDIR)\rangetab.obj \
|
|
827 $(OUTDIR)\realpath.obj \
|
|
828 $(OUTDIR)\redisplay-output.obj \
|
|
829 $(OUTDIR)\redisplay.obj \
|
|
830 $(OUTDIR)\regex.obj \
|
225
|
831 $(OUTDIR)\scrollbar.obj \
|
183
|
832 $(OUTDIR)\search.obj \
|
414
|
833 $(OUTDIR)\select.obj \
|
183
|
834 $(OUTDIR)\signal.obj \
|
|
835 $(OUTDIR)\sound.obj \
|
|
836 $(OUTDIR)\specifier.obj \
|
|
837 $(OUTDIR)\strftime.obj \
|
|
838 $(OUTDIR)\symbols.obj \
|
|
839 $(OUTDIR)\syntax.obj \
|
|
840 $(OUTDIR)\sysdep.obj \
|
|
841 $(OUTDIR)\tparam.obj \
|
|
842 $(OUTDIR)\undo.obj \
|
412
|
843 $(OUTDIR)\unexnt.obj \
|
|
844 $(OUTDIR)\vm-limit.obj \
|
197
|
845 $(OUTDIR)\widget.obj \
|
412
|
846 $(OUTDIR)\window.obj \
|
|
847 $(OUTDIR)\xemacs.res
|
155
|
848
|
213
|
849 # Rules
|
118
|
850
|
213
|
851 .SUFFIXES:
|
412
|
852 .SUFFIXES: .c
|
118
|
853
|
213
|
854 # nmake rule
|
396
|
855 !if $(DEBUG_XEMACS)
|
213
|
856 {$(TEMACS_SRC)}.c{$(OUTDIR)}.obj:
|
396
|
857 $(CCV) $(TEMACS_CPP_FLAGS) $< -Fo$@ -Fr$*.sbr -Fd$(OUTDIR)\temacs.pdb
|
|
858 !else
|
|
859 {$(TEMACS_SRC)}.c{$(OUTDIR)}.obj:
|
|
860 $(CCV) $(TEMACS_CPP_FLAGS) $< -Fo$@
|
|
861 !endif
|
118
|
862
|
183
|
863 $(OUTDIR)\TopLevelEmacsShell.obj: $(TEMACS_SRC)\EmacsShell-sub.c
|
388
|
864 $(CCV) $(TEMACS_CPP_FLAGS) -DDEFINE_TOP_LEVEL_EMACS_SHELL $** -Fo$@
|
118
|
865
|
183
|
866 $(OUTDIR)\TransientEmacsShell.obj: $(TEMACS_SRC)\EmacsShell-sub.c
|
388
|
867 $(CCV) $(TEMACS_CPP_FLAGS) -DDEFINE_TRANSIENT_EMACS_SHELL $** -Fo$@
|
118
|
868
|
398
|
869 $(OUTDIR)\alloc.obj: $(TEMACS_SRC)\alloc.c
|
223
|
870
|
183
|
871 #$(TEMACS_SRC)\Emacs.ad.h: $(XEMACS)\etc\Emacs.ad
|
|
872 # !"sed -f ad2c.sed < $(XEMACS)\etc\Emacs.ad > $(TEMACS_SRC)\Emacs.ad.h"
|
118
|
873
|
183
|
874 #$(TEMACS_SRC)\paths.h: $(TEMACS_SRC)\paths.h.in
|
|
875 # !"cd $(TEMACS_SRC); cp paths.h.in paths.h"
|
118
|
876
|
412
|
877 $(TEMACS): $(TEMACS_INCLUDES) $(TEMACS_OBJS)
|
396
|
878 !if $(DEBUG_XEMACS)
|
|
879 @dir /b/s $(OUTDIR)\*.sbr > bscmake.tmp
|
|
880 bscmake -nologo -o$(TEMACS_BROWSE) @bscmake.tmp
|
412
|
881 @del bscmake.tmp
|
398
|
882 !endif
|
213
|
883 link.exe @<<
|
412
|
884 $(TEMACS_LFLAGS) $(TEMACS_OBJS) $(TEMACS_LIBS)
|
213
|
885 <<
|
|
886
|
396
|
887 $(OUTDIR)\xemacs.res: xemacs.rc
|
|
888 rc -Fo$@ xemacs.rc
|
213
|
889
|
118
|
890 #------------------------------------------------------------------------------
|
|
891
|
|
892 # LISP bits 'n bobs
|
|
893
|
213
|
894 LOADPATH=$(LISP)
|
|
895
|
412
|
896 $(DOC): $(LIB_SRC)\make-docfile.exe
|
|
897 -del $(DOC)
|
|
898 $(TEMACS) -batch -l $(TEMACS_DIR)\..\lisp\make-docfile.el -- -o $(DOC) -i $(XEMACS)\site-packages
|
278
|
899 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC1)
|
|
900 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC2)
|
|
901 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC3)
|
|
902 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC4)
|
|
903 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC5)
|
|
904 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC6)
|
|
905 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC7)
|
|
906 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC8)
|
|
907 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC9)
|
183
|
908
|
398
|
909 update-elc:
|
388
|
910 set EMACSBOOTSTRAPLOADPATH=$(LISP);$(PACKAGE_PATH)
|
|
911 set EMACSBOOTSTRAPMODULEPATH=$(MODULES)
|
412
|
912 $(TEMACS) -batch -l $(TEMACS_DIR)\..\lisp\update-elc.el
|
223
|
913
|
278
|
914 # This rule dumps xemacs and then possibly spawns sub-make if PURESPACE
|
412
|
915 # requirements has changed.
|
|
916 dump-xemacs: $(TEMACS)
|
278
|
917 @echo >$(TEMACS_DIR)\SATISFIED
|
269
|
918 cd $(TEMACS_DIR)
|
388
|
919 set EMACSBOOTSTRAPLOADPATH=$(LISP);$(PACKAGE_PATH)
|
412
|
920 -1 $(TEMACS) -batch -l $(TEMACS_DIR)\..\lisp\loadup.el dump
|
|
921 @cd $(NT)
|
278
|
922 @if not exist $(TEMACS_DIR)\SATISFIED nmake -nologo -f xemacs.mak $@
|
412
|
923
|
118
|
924 #------------------------------------------------------------------------------
|
|
925
|
|
926 # use this rule to build the complete system
|
412
|
927 all: Installation $(OUTDIR)\nul $(LASTFILE) $(LWLIB) $(LIB_SRC_TOOLS) $(RUNEMACS) \
|
|
928 $(TEMACS) update-elc $(DOC) dump-xemacs
|
118
|
929
|
412
|
930 temacs: $(TEMACS)
|
231
|
931
|
118
|
932 # use this rule to install the system
|
373
|
933 install: all
|
|
934 @echo Installing in $(INSTALL_DIR) ...
|
384
|
935 @echo PlaceHolder > PlaceHolder
|
373
|
936 @xcopy /q PROBLEMS "$(INSTALL_DIR)\"
|
384
|
937 @xcopy /q PlaceHolder "$(INSTALL_DIR)\lock\"
|
412
|
938 @del "$(INSTALL_DIR)\lock\PlaceHolder"
|
298
|
939 @xcopy /q $(LIB_SRC)\*.exe "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)\"
|
373
|
940 @copy $(LIB_SRC)\DOC "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)"
|
382
|
941 @copy $(CONFIG_VALUES) "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)"
|
412
|
942 @copy $(XEMACS)\src\xemacs.exe "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)"
|
|
943 @copy $(RUNEMACS) "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)"
|
298
|
944 @xcopy /e /q $(XEMACS)\etc "$(INSTALL_DIR)\etc\"
|
|
945 @xcopy /e /q $(XEMACS)\info "$(INSTALL_DIR)\info\"
|
|
946 @xcopy /e /q $(XEMACS)\lisp "$(INSTALL_DIR)\lisp\"
|
384
|
947 @echo Making skeleton package tree in $(PACKAGE_PREFIX) ...
|
|
948 @xcopy /q PlaceHolder "$(PACKAGE_PREFIX)\site-packages\"
|
412
|
949 @del "$(PACKAGE_PREFIX)\site-packages\PlaceHolder"
|
384
|
950 @xcopy /q PlaceHolder "$(PACKAGE_PREFIX)\mule-packages\"
|
412
|
951 @del "$(PACKAGE_PREFIX)\mule-packages\PlaceHolder"
|
384
|
952 @xcopy /q PlaceHolder "$(PACKAGE_PREFIX)\xemacs-packages\"
|
412
|
953 @del "$(PACKAGE_PREFIX)\xemacs-packages\PlaceHolder"
|
|
954 @del PlaceHolder
|
371
|
955
|
213
|
956 distclean:
|
412
|
957 del *.bak
|
|
958 del *.orig
|
|
959 del *.rej
|
|
960 del *.tmp
|
|
961 del Installation
|
213
|
962 cd $(OUTDIR)
|
412
|
963 del *.lib
|
|
964 del *.obj
|
|
965 del *.pdb
|
|
966 del *.res
|
|
967 del *.sbr
|
286
|
968 cd $(XEMACS)\$(TEMACS_DIR)
|
412
|
969 del config.h
|
|
970 del paths.h
|
|
971 del Emacs.ad.h
|
|
972 del *.bak
|
|
973 del *.orig
|
|
974 del *.rej
|
|
975 del *.exe
|
|
976 del *.map
|
|
977 del *.bsc
|
|
978 del *.pdb
|
213
|
979 cd $(LIB_SRC)
|
412
|
980 del DOC
|
|
981 del *.bak
|
|
982 del *.orig
|
|
983 del *.rej
|
|
984 del *.exe
|
|
985 del *.obj
|
|
986 del *.pdb
|
|
987 del *.res
|
|
988 del $(CONFIG_VALUES)
|
213
|
989 cd $(LISP)
|
412
|
990 -del /s /q *.bak *.elc *.orig *.rej
|
213
|
991
|
|
992 depend:
|
412
|
993 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) $(DOC_SRC9) $(LASTFILE_SRC)\lastfile.c $(LIB_SRC)\make-docfile.c $(LIB_SRC)\run.c
|
398
|
994
|
412
|
995 Installation:
|
|
996 @type > Installation <<
|
398
|
997 !if defined(OS)
|
|
998 OS: $(OS)
|
|
999 !endif
|
|
1000
|
|
1001 XEmacs $(XEMACS_VERSION_STRING) $(xemacs_codename:"=\") configured for `$(EMACS_CONFIGURATION)'.
|
|
1002
|
|
1003 Building XEmacs in \"$(MAKEDIR:\=\\)\".
|
|
1004 !if defined(CCV)
|
|
1005 Using compiler \"$(CC) $(CFLAGS)\".
|
|
1006 !endif
|
|
1007 Installing XEmacs in \"$(INSTALL_DIR:\=\\)\".
|
|
1008 Package path is $(PATH_PACKAGEPATH:"=\").
|
|
1009 !if $(INFODOCK)
|
|
1010 Building InfoDock.
|
|
1011 !endif
|
412
|
1012 !if $(HAVE_MSW)
|
398
|
1013 Compiling in support for Microsoft Windows native GUI.
|
|
1014 !endif
|
412
|
1015 !if $(HAVE_X)
|
398
|
1016 Compiling in support for X-Windows.
|
|
1017 !endif
|
|
1018 !if $(HAVE_MULE)
|
|
1019 Compiling in MULE.
|
|
1020 !endif
|
|
1021 !if $(HAVE_XPM)
|
|
1022 Compiling in support for XPM images.
|
|
1023 !else
|
|
1024 --------------------------------------------------------------------
|
|
1025 WARNING: Compiling without XPM support.
|
|
1026 WARNING: You should strongly consider installing XPM.
|
|
1027 WARNING: Otherwise toolbars and other graphics will look suboptimal.
|
|
1028 WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)
|
|
1029 --------------------------------------------------------------------
|
|
1030 !endif
|
|
1031 !if $(HAVE_GIF)
|
|
1032 Compiling in support for GIF images.
|
|
1033 !endif
|
|
1034 !if $(HAVE_PNG)
|
|
1035 Compiling in support for PNG images.
|
|
1036 !else
|
|
1037 --------------------------------------------------------------------
|
|
1038 WARNING: Compiling without PNG image support.
|
|
1039 WARNING: You should strongly consider installing the PNG libraries.
|
|
1040 WARNING: Otherwise certain images and glyphs may not display.
|
|
1041 WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux
|
|
1042 --------------------------------------------------------------------
|
|
1043 !endif
|
|
1044 !if $(HAVE_TIFF)
|
|
1045 Compiling in support for TIFF images.
|
|
1046 !endif
|
|
1047 !if $(HAVE_JPEG)
|
|
1048 Compiling in support for JPEG images.
|
|
1049 !endif
|
|
1050 !if $(HAVE_XFACE)
|
|
1051 Compiling in support for X-Face message headers.
|
|
1052 !endif
|
|
1053 !if $(HAVE_TOOLBARS)
|
|
1054 Compiling in support for toolbars.
|
|
1055 !endif
|
|
1056 !if $(HAVE_DIALOGS)
|
|
1057 Compiling in support for dialogs.
|
|
1058 !endif
|
|
1059 !if $(HAVE_NATIVE_SOUND)
|
|
1060 Compiling in support for native sounds.
|
|
1061 !endif
|
|
1062 !if $(HAVE_MSW_C_DIRED)
|
|
1063 Compiling in fast dired implementation.
|
|
1064 !else
|
|
1065 --------------------------------------------------------------------
|
|
1066 WARNING: Define HAVE_MSW_C_DIRED to be non-zero if you want XEmacs
|
|
1067 WARNING: to use C primitives to significantly speed up dired, at the
|
|
1068 WARNING: expense of an additional ~4KB of code.
|
|
1069 --------------------------------------------------------------------
|
|
1070 !endif
|
|
1071 !if $(USE_MINIMAL_TAGBITS)
|
|
1072 Using minimal tagbits.
|
|
1073 !endif
|
|
1074 !if $(USE_INDEXED_LRECORD_IMPLEMENTATION)
|
|
1075 Using indexed lrecord implementation.
|
|
1076 !endif
|
|
1077 !if $(USE_UNION_TYPE)
|
|
1078 Using union type for Lisp object storage.
|
|
1079 !endif
|
|
1080 !if $(DEBUG_XEMACS)
|
|
1081 Compiling in extra debug checks. XEmacs will be slow!
|
|
1082 !endif
|
|
1083 <<NOKEEP
|
|
1084 @echo --------------------------------------------------------------------
|
412
|
1085 @type Installation
|
398
|
1086 @echo --------------------------------------------------------------------
|
|
1087
|
213
|
1088 # DO NOT DELETE THIS LINE -- make depend depends on it.
|
267
|
1089
|