aboutsummaryrefslogtreecommitdiffstats
path: root/nt
diff options
context:
space:
mode:
authorEli Zaretskii2011-01-29 14:36:11 +0200
committerEli Zaretskii2011-01-29 14:36:11 +0200
commitf915f0f7c8a35ecc5ca95e99f5bf4286aafa3d05 (patch)
tree164a36f43c2ba41f70fb6f8aad8341bfdedab59c /nt
parent497a1925ecc0550630ba44f29d2db7378e7c9e4e (diff)
downloademacs-f915f0f7c8a35ecc5ca95e99f5bf4286aafa3d05.tar.gz
emacs-f915f0f7c8a35ecc5ca95e99f5bf4286aafa3d05.zip
Fix the MS-Windows build broken by 2011-01-17T19:01:01Z!eggert@cs.ucla.edu and emacs-23/2010-05-21T19:51:48Z!acm@muc.de.
lib/makefile.w32-in: lib/getopt_.h: New files. src/s/ms-w32.h (HAVE_MKTIME): Remove. src/makefile.w32-in (LOCAL_FLAGS): Add -I../lib. (GNULIB): New variable. (LIBS): Add $(GNULIB). $(TEMACS): Depend on $(GNULIB). <top-level>: Fix font-lock disrupted by a lone `"'. src/makefile.w32-in (LOCAL_FLAGS): Add -I../lib. (GETOPTOBJS, GETOPTDEPS): Remove targets. (MOVEMAILOBJS): Replace $(GETOPTOBJS) with ../lib/$(BLD)/libgnu.$(A). ($(BLD)/movemail.exe): Depend on ../lib/getopt.h. (ECLIENTOBJS, ETAGSOBJ, CTAGSOBJ, EBROWSEOBJ): Replace getopt.o and getopt1.o with ../lib/$(BLD)/libgnu.$(A). (clean): Don't remove getopt.h. (getopt.h, $(BLD)/getopt.$(O), $(BLD)/getopt1.$(O)): Remove targets. ($(BLD)/ctags.$(O), $(BLD)/etags.$(O)): Replace getopt.h with $(EMACS_ROOT)/lib/getopt.h. nt/makefile.w32-in (all-other-dirs-nmake, all-other-dirs-gmake) (bootstrap-nmake, bootstrap-gmake, bootstrap-clean-nmake) (bootstrap-clean-gmake, clean-other-dirs-nmake) (clean-other-dirs-gmake, cleanall-other-dirs-nmake) (cleanall-other-dirs-gmake, distclean-other-dirs-nmake) (distclean-other-dirs-gmake, maintainer-clean-other-dirs-nmake) (maintainer-clean-other-dirs-gmake): Recurse into ../lib as well. nt/configure.bat: Create lib/makefile. nt/config.nt (HAVE_MKTIME, BROKEN_MKTIME): Remove. (HAVE_ATTRIBUTE_ALIGNED, HAVE_C99_STRTOLD, HAVE_DECL_GETENV) (HAVE_DECL_LOCALTIME_R, HAVE_WCHAR_T, PACKAGE, VERSION, inline) (_GL_UNUSED, _UNUSED_PARAMETER_): Add definitions, for gnulib.
Diffstat (limited to 'nt')
-rw-r--r--nt/ChangeLog17
-rw-r--r--nt/config.nt67
-rwxr-xr-xnt/configure.bat1
-rw-r--r--nt/makefile.w32-in22
4 files changed, 101 insertions, 6 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog
index e0c5aa2f756..d7301e8ff23 100644
--- a/nt/ChangeLog
+++ b/nt/ChangeLog
@@ -1,3 +1,20 @@
12011-01-29 Eli Zaretskii <eliz@gnu.org>
2
3 * makefile.w32-in (all-other-dirs-nmake, all-other-dirs-gmake)
4 (bootstrap-nmake, bootstrap-gmake, bootstrap-clean-nmake)
5 (bootstrap-clean-gmake, clean-other-dirs-nmake)
6 (clean-other-dirs-gmake, cleanall-other-dirs-nmake)
7 (cleanall-other-dirs-gmake, distclean-other-dirs-nmake)
8 (distclean-other-dirs-gmake, maintainer-clean-other-dirs-nmake)
9 (maintainer-clean-other-dirs-gmake): Recurse into ../lib as well.
10
11 * configure.bat: Create lib/makefile.
12
13 * config.nt (HAVE_MKTIME, BROKEN_MKTIME): Remove.
14 (HAVE_ATTRIBUTE_ALIGNED, HAVE_C99_STRTOLD, HAVE_DECL_GETENV)
15 (HAVE_DECL_LOCALTIME_R, HAVE_WCHAR_T, PACKAGE, VERSION, inline)
16 (_GL_UNUSED, _UNUSED_PARAMETER_): Add definitions, for gnulib.
17
12011-01-07 Eli Zaretskii <eliz@gnu.org> 182011-01-07 Eli Zaretskii <eliz@gnu.org>
2 19
3 * config.nt (HAVE___BUILTIN_UNWIND_INIT) [GCC >= 2.8]: Define. 20 * config.nt (HAVE___BUILTIN_UNWIND_INIT) [GCC >= 2.8]: Define.
diff --git a/nt/config.nt b/nt/config.nt
index 6e10c758d3f..53d89701c69 100644
--- a/nt/config.nt
+++ b/nt/config.nt
@@ -224,7 +224,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
224#undef HAVE_SETSID 224#undef HAVE_SETSID
225#undef HAVE_FPATHCONF 225#undef HAVE_FPATHCONF
226#undef HAVE_SELECT 226#undef HAVE_SELECT
227#undef HAVE_MKTIME
228#undef HAVE_EUIDACCESS 227#undef HAVE_EUIDACCESS
229#undef HAVE_GETPAGESIZE 228#undef HAVE_GETPAGESIZE
230#undef HAVE_GET_CURRENT_DIR_NAME 229#undef HAVE_GET_CURRENT_DIR_NAME
@@ -273,6 +272,67 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
273/* Define to 1 if you have the `getopt_long_only' function. */ 272/* Define to 1 if you have the `getopt_long_only' function. */
274#undef HAVE_GETOPT_LONG_ONLY 273#undef HAVE_GETOPT_LONG_ONLY
275 274
275/* Preprocessor macros needed for gnulib imports. */
276
277/* Define to 1 if GCC-style __attribute__ ((__aligned__ (expr))) works. */
278#ifdef __GNUC__
279#define HAVE_ATTRIBUTE_ALIGNED 1
280#else
281#undef HAVE_ATTRIBUTE_ALIGNED
282#endif
283
284/* Define to 1 if strtold conforms to C99. */
285#ifdef __GNUC__
286#define HAVE_C99_STRTOLD 1
287#else
288#undef HAVE_C99_STRTOLD
289#endif
290
291/* Define to 1 if you have the declaration of `getenv', and to 0 if you don't.
292 */
293#define HAVE_DECL_GETENV 1
294
295/* Define to 1 if you have the declaration of `localtime_r', and to 0 if you
296 don't. */
297#undef HAVE_DECL_LOCALTIME_R
298
299/* Define to 1 if you have the `localtime_r' function. */
300#undef HAVE_LOCALTIME_R
301
302/* Define if you have the 'wchar_t' type. */
303#define HAVE_WCHAR_T 1
304
305/* Name of package */
306#define PACKAGE "emacs"
307
308/* FIXME: This is defined by the various makefile.w32-in files for
309 now. Revisit if/when VERSION from config.h is used by any
310 Makefile.in files. */
311#if 0
312/* Version number of package */
313#define VERSION "24.0.50"
314#endif
315
316/* Define to `__inline__' or `__inline' if that's what the C compiler
317 calls it, or to nothing if 'inline' is not supported under any name. */
318#ifndef __cplusplus
319#undef inline
320#endif
321
322/* Define as a marker that can be attached to declarations that might not
323 be used. This helps to reduce warnings, such as from
324 GCC -Wunused-parameter. */
325#if __GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
326# define _GL_UNUSED __attribute__ ((__unused__))
327#else
328# define _GL_UNUSED
329#endif
330/* The name _UNUSED_PARAMETER_ is an earlier spelling, although the name
331 is a misnomer outside of parameter lists. */
332#define _UNUSED_PARAMETER_ _GL_UNUSED
333
334/* End of gnulib-related stuff. */
335
276/* If using GNU, then support inline function declarations. */ 336/* If using GNU, then support inline function declarations. */
277#ifdef __GNUC__ 337#ifdef __GNUC__
278#define INLINE __inline__ 338#define INLINE __inline__
@@ -344,11 +404,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
344#define RE_TRANSLATE_P(TBL) (XFASTINT (TBL) != 0) 404#define RE_TRANSLATE_P(TBL) (XFASTINT (TBL) != 0)
345#endif 405#endif
346 406
347/* Avoid link-time collision with system mktime if we will use our own. */
348#if ! HAVE_MKTIME || BROKEN_MKTIME
349#define mktime emacs_mktime
350#endif
351
352#define my_strftime nstrftime /* for strftime.c */ 407#define my_strftime nstrftime /* for strftime.c */
353 408
354#ifndef WINDOWSNT 409#ifndef WINDOWSNT
diff --git a/nt/configure.bat b/nt/configure.bat
index a2ec2ca700f..1450650304d 100755
--- a/nt/configure.bat
+++ b/nt/configure.bat
@@ -679,6 +679,7 @@ if exist config.tmp del config.tmp
679copy /b config.settings+%MAKECMD%.defs+..\nt\makefile.w32-in ..\nt\makefile 679copy /b config.settings+%MAKECMD%.defs+..\nt\makefile.w32-in ..\nt\makefile
680if exist ..\admin\unidata copy /b config.settings+%MAKECMD%.defs+..\admin\unidata\makefile.w32-in ..\admin\unidata\makefile 680if exist ..\admin\unidata copy /b config.settings+%MAKECMD%.defs+..\admin\unidata\makefile.w32-in ..\admin\unidata\makefile
681copy /b config.settings+%MAKECMD%.defs+..\lib-src\makefile.w32-in ..\lib-src\makefile 681copy /b config.settings+%MAKECMD%.defs+..\lib-src\makefile.w32-in ..\lib-src\makefile
682copy /b config.settings+%MAKECMD%.defs+..\lib\makefile.w32-in ..\lib\makefile
682copy /b config.settings+%MAKECMD%.defs+..\src\makefile.w32-in ..\src\makefile 683copy /b config.settings+%MAKECMD%.defs+..\src\makefile.w32-in ..\src\makefile
683copy /b config.settings+%MAKECMD%.defs+..\doc\emacs\makefile.w32-in ..\doc\emacs\makefile 684copy /b config.settings+%MAKECMD%.defs+..\doc\emacs\makefile.w32-in ..\doc\emacs\makefile
684copy /b config.settings+%MAKECMD%.defs+..\doc\misc\makefile.w32-in ..\doc\misc\makefile 685copy /b config.settings+%MAKECMD%.defs+..\doc\misc\makefile.w32-in ..\doc\misc\makefile
diff --git a/nt/makefile.w32-in b/nt/makefile.w32-in
index 5ad398fd725..0ce8a5a052e 100644
--- a/nt/makefile.w32-in
+++ b/nt/makefile.w32-in
@@ -92,6 +92,8 @@ $(BLD)/addpm.$(O) $(BLD)/ddeclient.$(O) $(BLD)/runemacs.$(O) $(BLD)/cmdproxy.$(O
92all: which-sh stamp_BLD $(ALL) $(CLIENTRES) maybe-bootstrap all-other-dirs-$(MAKETYPE) 92all: which-sh stamp_BLD $(ALL) $(CLIENTRES) maybe-bootstrap all-other-dirs-$(MAKETYPE)
93 93
94all-other-dirs-nmake: addsection 94all-other-dirs-nmake: addsection
95 cd ..\lib
96 $(MAKE) $(MFLAGS) all
95 cd ..\lib-src 97 cd ..\lib-src
96 $(MAKE) $(MFLAGS) all 98 $(MAKE) $(MFLAGS) all
97 cd ..\src 99 cd ..\src
@@ -103,6 +105,7 @@ all-other-dirs-nmake: addsection
103 cd ..\nt 105 cd ..\nt
104 106
105all-other-dirs-gmake: addsection 107all-other-dirs-gmake: addsection
108 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib all
106 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src all 109 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src all
107 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src all 110 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src all
108 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp all 111 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp all
@@ -158,6 +161,8 @@ bootstrap-nmake: addsection cmdproxy
158 $(MAKE) $(MFLAGS) clean 161 $(MAKE) $(MFLAGS) clean
159 cd ..\lib-src 162 cd ..\lib-src
160 $(MAKE) $(MFLAGS) clean 163 $(MAKE) $(MFLAGS) clean
164 cd ..\lib
165 $(MAKE) $(MFLAGS) clean
161 cd ..\src 166 cd ..\src
162 $(MAKE) $(MFLAGS) bootstrap 167 $(MAKE) $(MFLAGS) bootstrap
163 $(MAKE) $(MFLAGS) bootstrap-clean 168 $(MAKE) $(MFLAGS) bootstrap-clean
@@ -173,6 +178,7 @@ bootstrap-gmake: addsection cmdproxy
173 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp bootstrap-clean 178 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp bootstrap-clean
174 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src clean 179 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src clean
175 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src clean 180 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src clean
181 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib clean
176 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src bootstrap 182 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src bootstrap
177 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src bootstrap-clean 183 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src bootstrap-clean
178 $(CP) $(BLD)/cmdproxy.exe ../bin 184 $(CP) $(BLD)/cmdproxy.exe ../bin
@@ -184,11 +190,14 @@ bootstrap-clean: bootstrap-clean-$(MAKETYPE)
184bootstrap-clean-nmake: 190bootstrap-clean-nmake:
185 cd ..\src 191 cd ..\src
186 $(MAKE) $(MFLAGS) bootstrap-clean 192 $(MAKE) $(MFLAGS) bootstrap-clean
193 cd ..\lib
194 $(MAKE) $(MFLAGS) clean
187 cd ..\lisp 195 cd ..\lisp
188 $(MAKE) $(MFLAGS) bootstrap-clean 196 $(MAKE) $(MFLAGS) bootstrap-clean
189 197
190bootstrap-clean-gmake: 198bootstrap-clean-gmake:
191 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src bootstrap-clean 199 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src bootstrap-clean
200 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib clean
192 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp bootstrap-clean 201 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp bootstrap-clean
193 202
194$(INSTALL_DIR): 203$(INSTALL_DIR):
@@ -297,6 +306,8 @@ clean: clean-other-dirs-$(MAKETYPE)
297 - $(DEL) ../etc/DOC ../etc/DOC-X 306 - $(DEL) ../etc/DOC ../etc/DOC-X
298 307
299clean-other-dirs-nmake: 308clean-other-dirs-nmake:
309 cd ..\lib
310 $(MAKE) $(MFLAGS) clean
300 cd ..\lib-src 311 cd ..\lib-src
301 $(MAKE) $(MFLAGS) clean 312 $(MAKE) $(MFLAGS) clean
302 cd ..\src 313 cd ..\src
@@ -314,6 +325,7 @@ clean-other-dirs-nmake:
314 cd ..\nt 325 cd ..\nt
315 326
316clean-other-dirs-gmake: 327clean-other-dirs-gmake:
328 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib clean
317 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src clean 329 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src clean
318 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src clean 330 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src clean
319 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../leim clean 331 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../leim clean
@@ -323,6 +335,8 @@ clean-other-dirs-gmake:
323 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/lispref clean 335 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../doc/lispref clean
324 336
325cleanall-other-dirs-nmake: 337cleanall-other-dirs-nmake:
338 cd ..\lib
339 $(MAKE) $(MFLAGS) cleanall
326 cd ..\lib-src 340 cd ..\lib-src
327 $(MAKE) $(MFLAGS) cleanall 341 $(MAKE) $(MFLAGS) cleanall
328 cd ..\src 342 cd ..\src
@@ -330,6 +344,7 @@ cleanall-other-dirs-nmake:
330 cd ..\nt 344 cd ..\nt
331 345
332cleanall-other-dirs-gmake: 346cleanall-other-dirs-gmake:
347 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib cleanall
333 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src cleanall 348 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src cleanall
334 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src cleanall 349 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src cleanall
335 350
@@ -355,6 +370,8 @@ top-distclean:
355distclean: distclean-other-dirs-$(MAKETYPE) top-distclean 370distclean: distclean-other-dirs-$(MAKETYPE) top-distclean
356 371
357distclean-other-dirs-nmake: 372distclean-other-dirs-nmake:
373 cd ..\lib
374 $(MAKE) $(MFLAGS) distclean
358 cd ..\lib-src 375 cd ..\lib-src
359 $(MAKE) $(MFLAGS) distclean 376 $(MAKE) $(MFLAGS) distclean
360 cd ..\src 377 cd ..\src
@@ -374,6 +391,7 @@ distclean-other-dirs-nmake:
374 cd ..\nt 391 cd ..\nt
375 392
376distclean-other-dirs-gmake: 393distclean-other-dirs-gmake:
394 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib distclean
377 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src distclean 395 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src distclean
378 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src distclean 396 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src distclean
379 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp distclean 397 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp distclean
@@ -386,6 +404,8 @@ distclean-other-dirs-gmake:
386maintainer-clean: maintainer-clean-other-dirs-$(MAKETYPE) top-distclean 404maintainer-clean: maintainer-clean-other-dirs-$(MAKETYPE) top-distclean
387 405
388maintainer-clean-other-dirs-nmake: 406maintainer-clean-other-dirs-nmake:
407 cd ..\lib
408 $(MAKE) $(MFLAGS) maintainer-clean
389 cd ..\lib-src 409 cd ..\lib-src
390 $(MAKE) $(MFLAGS) maintainer-clean 410 $(MAKE) $(MFLAGS) maintainer-clean
391 cd ..\src 411 cd ..\src
@@ -405,6 +425,7 @@ maintainer-clean-other-dirs-nmake:
405 cd ..\nt 425 cd ..\nt
406 426
407maintainer-clean-other-dirs-gmake: 427maintainer-clean-other-dirs-gmake:
428 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib maintainer-clean
408 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src maintainer-clean 429 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src maintainer-clean
409 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src maintainer-clean 430 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src maintainer-clean
410 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp maintainer-clean 431 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp maintainer-clean
@@ -424,6 +445,7 @@ TAGS-gmake: frc
424 ../lib-src/$(BLD)/etags $(CURDIR)/*.c 445 ../lib-src/$(BLD)/etags $(CURDIR)/*.c
425 $(MAKE) $(MFLAGS) -C ../src TAGS TAGS-LISP 446 $(MAKE) $(MFLAGS) -C ../src TAGS TAGS-LISP
426 $(MAKE) $(MFLAGS) -C ../lib-src TAGS 447 $(MAKE) $(MFLAGS) -C ../lib-src TAGS
448 $(MAKE) $(MFLAGS) -C ../lib TAGS
427 449
428TAGS-nmake: 450TAGS-nmake:
429 echo This target is not supported with NMake 451 echo This target is not supported with NMake