aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Nicolaescu2010-04-14 08:36:25 -0700
committerDan Nicolaescu2010-04-14 08:36:25 -0700
commit19d4c244ec7a13e509090511da9698c718eeee2e (patch)
tree688470e0fb40fcb9e9cfd8a40db44cf1bf667183
parent38111a5adc942318efa24ae30ac98b369202f5ea (diff)
downloademacs-19d4c244ec7a13e509090511da9698c718eeee2e.tar.gz
emacs-19d4c244ec7a13e509090511da9698c718eeee2e.zip
Reduce cpp use in Makefile.in.
* Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS) (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H) (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section. (ORDINARY_LINK): Remove, defined in src/s/gnu.h. (CRT0_COMPILE): Remove, inline it in the only user.
-rw-r--r--src/ChangeLog9
-rw-r--r--src/Makefile.in56
2 files changed, 28 insertions, 37 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 82484b105be..a32558a2ac7 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,12 @@
12010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
2
3 Reduce cpp use in Makefile.in.
4 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
5 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
6 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
7 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
8 (CRT0_COMPILE): Remove, inline it in the only user.
9
12010-04-14 Juri Linkov <juri@jurta.org> 102010-04-14 Juri Linkov <juri@jurta.org>
2 11
3 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to 12 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
diff --git a/src/Makefile.in b/src/Makefile.in
index 04df2de7d26..0862aa94725 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -80,6 +80,24 @@ C_SWITCH_MACHINE=@c_switch_machine@
80 80
81C_SWITCH_X_SITE=@C_SWITCH_X_SITE@ 81C_SWITCH_X_SITE=@C_SWITCH_X_SITE@
82 82
83DBUS_CFLAGS = @DBUS_CFLAGS@
84DBUS_LIBS = @DBUS_LIBS@
85
86GCONF_CFLAGS = @GCONF_CFLAGS@
87GCONF_LIBS = @GCONF_LIBS@
88
89LIBSOUND= @LIBSOUND@
90CFLAGS_SOUND= @CFLAGS_SOUND@
91
92RSVG_LIBS= @RSVG_LIBS@
93RSVG_CFLAGS= @RSVG_CFLAGS@
94
95INTERVALS_H = dispextern.h intervals.h composite.h
96
97GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
98
99RUN_TEMACS = `/bin/pwd`/temacs
100
83# ========================== start of cpp stuff ======================= 101# ========================== start of cpp stuff =======================
84/* From here on, comments must be done in C syntax. */ 102/* From here on, comments must be done in C syntax. */
85 103
@@ -117,14 +135,6 @@ DEPFLAGS = -MMD -MF deps/$*.d
117 do not let it interfere with this file. */ 135 do not let it interfere with this file. */
118#undef register 136#undef register
119 137
120/* GNU libc requires ORDINARY_LINK so that its own crt0 is used.
121 GNU/Linux is an exception because it uses a funny variant of GNU libc. */
122#ifdef __GNU_LIBRARY__
123#ifndef GNU_LINUX
124#define ORDINARY_LINK
125#endif
126#endif
127
128/* Some machines do not find the standard C libraries in the usual place. */ 138/* Some machines do not find the standard C libraries in the usual place. */
129#ifndef ORDINARY_LINK 139#ifndef ORDINARY_LINK
130#ifndef LIB_STANDARD 140#ifndef LIB_STANDARD
@@ -201,10 +211,6 @@ DEPFLAGS = -MMD -MF deps/$*.d
201 211
202#ifndef ORDINARY_LINK 212#ifndef ORDINARY_LINK
203 213
204#ifndef CRT0_COMPILE
205#define CRT0_COMPILE $(CC) -c $(ALL_CFLAGS)
206#endif
207
208#ifndef START_FILES 214#ifndef START_FILES
209#ifdef NO_REMAP 215#ifdef NO_REMAP
210#define START_FILES pre-crt0.o /lib/crt0.o 216#define START_FILES pre-crt0.o /lib/crt0.o
@@ -234,16 +240,9 @@ shared=no
234#endif 240#endif
235 241
236#ifdef HAVE_DBUS 242#ifdef HAVE_DBUS
237DBUS_CFLAGS = @DBUS_CFLAGS@
238DBUS_LIBS = @DBUS_LIBS@
239DBUS_OBJ = dbusbind.o 243DBUS_OBJ = dbusbind.o
240#endif 244#endif
241 245
242#ifdef HAVE_GCONF
243GCONF_CFLAGS = @GCONF_CFLAGS@
244GCONF_LIBS = @GCONF_LIBS@
245#endif
246
247/* DO NOT use -R. There is a special hack described in lastfile.c 246/* DO NOT use -R. There is a special hack described in lastfile.c
248 which is used instead. Some initialized data areas are modified 247 which is used instead. Some initialized data areas are modified
249 at initial startup, then labeled as part of the text area when 248 at initial startup, then labeled as part of the text area when
@@ -370,12 +369,6 @@ LIBX= $(LIBXMENU) LD_SWITCH_X_SITE
370#endif /* not HAVE_X11 */ 369#endif /* not HAVE_X11 */
371#endif /* not HAVE_X_WINDOWS */ 370#endif /* not HAVE_X_WINDOWS */
372 371
373LIBSOUND= @LIBSOUND@
374CFLAGS_SOUND= @CFLAGS_SOUND@
375
376RSVG_LIBS= @RSVG_LIBS@
377RSVG_CFLAGS= @RSVG_CFLAGS@
378
379#ifndef ORDINARY_LINK 372#ifndef ORDINARY_LINK
380/* Fix linking if compiled with GCC. */ 373/* Fix linking if compiled with GCC. */
381#ifdef __GNUC__ 374#ifdef __GNUC__
@@ -445,15 +438,6 @@ TEMACS_LDFLAGS = LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_TEMACS LD_SWITCH_MACHINE LD_S
445#define YMF_PASS_LDFLAGS(flags) flags 438#define YMF_PASS_LDFLAGS(flags) flags
446#endif 439#endif
447 440
448/* Allow config.h to specify a replacement file for unexec.c. */
449#ifndef UNEXEC
450#define UNEXEC unexec.o
451#endif
452
453INTERVALS_H = dispextern.h intervals.h composite.h
454
455GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
456
457#ifdef MSDOS 441#ifdef MSDOS
458#ifdef HAVE_X_WINDOWS 442#ifdef HAVE_X_WINDOWS
459MSDOS_OBJ = dosfns.o msdos.o xmenu.o 443MSDOS_OBJ = dosfns.o msdos.o xmenu.o
@@ -844,8 +828,6 @@ LIBES = $(LOADLIBES) $(LIBS) $(LIBX) $(LIBSOUND) $(RSVG_LIBS) $(DBUS_LIBS) \
844 @FREETYPE_LIBS@ @FONTCONFIG_LIBS@ @LIBOTF_LIBS@ @M17N_FLT_LIBS@ \ 828 @FREETYPE_LIBS@ @FONTCONFIG_LIBS@ @LIBOTF_LIBS@ @M17N_FLT_LIBS@ \
845 $(GNULIB_VAR) LIB_MATH LIB_STANDARD $(GNULIB_VAR) 829 $(GNULIB_VAR) LIB_MATH LIB_STANDARD $(GNULIB_VAR)
846 830
847RUN_TEMACS = `/bin/pwd`/temacs
848
849all: emacs${EXEEXT} $(OTHER_FILES) 831all: emacs${EXEEXT} $(OTHER_FILES)
850 832
851emacs${EXEEXT}: temacs${EXEEXT} ${etc}DOC ${lisp} 833emacs${EXEEXT}: temacs${EXEEXT} ${etc}DOC ${lisp}
@@ -961,7 +943,7 @@ ecrt0.o: ecrt0.c $(config_h)
961#ifdef AUTO_DEPEND 943#ifdef AUTO_DEPEND
962 @-test -d deps || mkdir deps 944 @-test -d deps || mkdir deps
963#endif 945#endif
964 CRT0_COMPILE ${srcdir}/ecrt0.c 946 $(CC) -c $(ALL_CFLAGS) ${srcdir}/ecrt0.c
965doc.o: buildobj.h 947doc.o: buildobj.h
966 948
967#ifndef AUTO_DEPEND 949#ifndef AUTO_DEPEND