aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2011-01-29 14:36:11 +0200
committerEli Zaretskii2011-01-29 14:36:11 +0200
commitf915f0f7c8a35ecc5ca95e99f5bf4286aafa3d05 (patch)
tree164a36f43c2ba41f70fb6f8aad8341bfdedab59c /src
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 'src')
-rw-r--r--src/ChangeLog10
-rw-r--r--src/makefile.w32-in9
-rw-r--r--src/s/ms-w32.h1
3 files changed, 17 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 340ca37aae4..7f19b02ef38 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,13 @@
12011-01-29 Eli Zaretskii <eliz@gnu.org>
2
3 * s/ms-w32.h (HAVE_MKTIME): Remove.
4
5 * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
6 (GNULIB): New variable.
7 (LIBS): Add $(GNULIB).
8 $(TEMACS): Depend on $(GNULIB).
9 <top-level>: Fix font-lock disrupted by a lone `"'.
10
12011-01-29 Jan Djärv <jan.h.d@swipnet.se> 112011-01-29 Jan Djärv <jan.h.d@swipnet.se>
2 12
3 * nsselect.m (ns_string_from_pasteboard): Get length of string 13 * nsselect.m (ns_string_from_pasteboard): Get length of string
diff --git a/src/makefile.w32-in b/src/makefile.w32-in
index 549acf8f6b3..ad21419ca7f 100644
--- a/src/makefile.w32-in
+++ b/src/makefile.w32-in
@@ -28,7 +28,7 @@ EMACSLOADPATH=$(CURDIR)/../lisp
28# HAVE_CONFIG_H is required by some generic gnu sources stuck into 28# HAVE_CONFIG_H is required by some generic gnu sources stuck into
29# the emacs source tree. 29# the emacs source tree.
30# 30#
31LOCAL_FLAGS = -Demacs=1 -DHAVE_CONFIG_H -I../nt/inc -DHAVE_NTGUI=1 $(EMACS_EXTRA_C_FLAGS) 31LOCAL_FLAGS = -Demacs=1 -DHAVE_CONFIG_H -I../lib -I../nt/inc -DHAVE_NTGUI=1 $(EMACS_EXTRA_C_FLAGS)
32 32
33SRC = . 33SRC = .
34EMACS = $(BLD)/emacs.exe 34EMACS = $(BLD)/emacs.exe
@@ -40,6 +40,7 @@ TLIB2 = $(BLD)/temacs2.$(A)
40TOBJ = $(BLD)/firstfile.$(O) 40TOBJ = $(BLD)/firstfile.$(O)
41TRES = $(BLD)/emacs.res 41TRES = $(BLD)/emacs.res
42TLASTLIB = $(BLD)/lastfile.$(A) 42TLASTLIB = $(BLD)/lastfile.$(A)
43GNULIB = ../lib/$(BLD)/libgnu.$(A)
43 44
44DOC = $(OBJDIR)/etc/DOC-X 45DOC = $(OBJDIR)/etc/DOC-X
45 46
@@ -140,6 +141,7 @@ LIBS = $(TLIB0) \
140 $(TLIB1) \ 141 $(TLIB1) \
141 $(TLIB2) \ 142 $(TLIB2) \
142 $(TLASTLIB) \ 143 $(TLASTLIB) \
144 $(GNULIB) \
143 $(WINMM) \ 145 $(WINMM) \
144 $(ADVAPI32) \ 146 $(ADVAPI32) \
145 $(GDI32) \ 147 $(GDI32) \
@@ -174,7 +176,7 @@ $(EMACS): $(DOC) $(TEMACS)
174# 176#
175temacs: stamp_BLD $(TEMACS) 177temacs: stamp_BLD $(TEMACS)
176$(TEMACS): $(TLIB0) $(TLIB1) $(TLIB2) $(TLASTLIB) $(TOBJ) $(TRES) \ 178$(TEMACS): $(TLIB0) $(TLIB1) $(TLIB2) $(TLASTLIB) $(TOBJ) $(TRES) \
177 ../nt/$(BLD)/addsection.exe 179 ../nt/$(BLD)/addsection.exe $(GNULIB)
178 $(LINK) $(LINK_OUT)$(TEMACS_TMP) $(FULL_LINK_FLAGS) $(TOBJ) $(TRES) $(LIBS) 180 $(LINK) $(LINK_OUT)$(TEMACS_TMP) $(FULL_LINK_FLAGS) $(TOBJ) $(TRES) $(LIBS)
179 "../nt/$(BLD)/addsection" "$(TEMACS_TMP)" "$(TEMACS)" EMHEAP 21 181 "../nt/$(BLD)/addsection" "$(TEMACS_TMP)" "$(TEMACS)" EMHEAP 21
180 182
@@ -192,6 +194,9 @@ make-buildobj-CMD:
192 echo $(OBJ2) \>> buildobj.h 194 echo $(OBJ2) \>> buildobj.h
193 echo ^">> buildobj.h 195 echo ^">> buildobj.h
194 196
197# "
198# The above line is here to countermand the single quote
199# on the last "echo" command above, wrt font-lock.
195make-buildobj-SH: 200make-buildobj-SH:
196 echo '#define BUILDOBJ $(DQUOTE)\' > buildobj.h 201 echo '#define BUILDOBJ $(DQUOTE)\' > buildobj.h
197 echo $(OBJ0) '\' >> buildobj.h 202 echo $(OBJ0) '\' >> buildobj.h
diff --git a/src/s/ms-w32.h b/src/s/ms-w32.h
index e9a580629af..d247cf866f9 100644
--- a/src/s/ms-w32.h
+++ b/src/s/ms-w32.h
@@ -150,7 +150,6 @@ struct sigaction {
150#undef HAVE_SETSID 150#undef HAVE_SETSID
151#undef HAVE_FPATHCONF 151#undef HAVE_FPATHCONF
152#define HAVE_SELECT 1 152#define HAVE_SELECT 1
153#define HAVE_MKTIME 1
154#undef HAVE_EUIDACCESS 153#undef HAVE_EUIDACCESS
155#define HAVE_GETPAGESIZE 1 154#define HAVE_GETPAGESIZE 1
156#define HAVE_TZSET 1 155#define HAVE_TZSET 1