aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile.in
diff options
context:
space:
mode:
authorDan Nicolaescu2008-02-09 07:42:06 +0000
committerDan Nicolaescu2008-02-09 07:42:06 +0000
commitdeeaffe11d28ca1b42e4f59c33a30d0e58698044 (patch)
treeb2d4bda90d751726d1bc07dcbea41a97e252aa0a /src/Makefile.in
parent05f2964e439fc44ceeaced760c7246fc966bf196 (diff)
downloademacs-deeaffe11d28ca1b42e4f59c33a30d0e58698044.tar.gz
emacs-deeaffe11d28ca1b42e4f59c33a30d0e58698044.zip
* Makefile.in (REGEXP_IN_LIBC): Remove reference to obsolete
variable. * s/gnu-linux.h: Remove commented out code. * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE. * Makefile.in: Update what RMS says about using autoconf. (C_COMPILER): (COFF_ENCAPSULATE): (MAKE_PARALLEL): Remove obsolete variable. (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1): (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1) (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
Diffstat (limited to 'src/Makefile.in')
-rw-r--r--src/Makefile.in45
1 files changed, 13 insertions, 32 deletions
diff --git a/src/Makefile.in b/src/Makefile.in
index 1b0e0504f89..e6c36e5c7ec 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -27,6 +27,11 @@
27 27
28# Don't try to replace the cpp processing using autoconf facilities, 28# Don't try to replace the cpp processing using autoconf facilities,
29# says rms. 29# says rms.
30# Replacing a particular part of the conditionals to work via autoconf
31# is OK.
32# Some of the conditionals might be dead now. Finding them and
33# deleting them would be fine.
34
30 35
31# Here are the things that we expect ../configure to edit. 36# Here are the things that we expect ../configure to edit.
32# We use $(srcdir) explicitly in dependencies so as not to depend on VPATH. 37# We use $(srcdir) explicitly in dependencies so as not to depend on VPATH.
@@ -100,10 +105,6 @@ SHELL=/bin/sh
100MAKE = MAKE_COMMAND 105MAKE = MAKE_COMMAND
101#endif 106#endif
102 107
103#ifdef C_COMPILER
104CC = C_COMPILER
105#endif
106
107/* GNU libc requires ORDINARY_LINK so that its own crt0 is used. 108/* GNU libc requires ORDINARY_LINK so that its own crt0 is used.
108 GNU/Linux is an exception because it uses a funny variant of GNU libc. */ 109 GNU/Linux is an exception because it uses a funny variant of GNU libc. */
109#ifdef __GNU_LIBRARY__ 110#ifdef __GNU_LIBRARY__
@@ -144,11 +145,11 @@ CC = C_COMPILER
144 145
145/* Some s/SYSTEM.h files define this to request special switches in ld. */ 146/* Some s/SYSTEM.h files define this to request special switches in ld. */
146#ifndef LD_SWITCH_SYSTEM 147#ifndef LD_SWITCH_SYSTEM
147#if !defined (__GNUC__) && (defined(COFF_ENCAPSULATE) || (defined (BSD_SYSTEM) && !defined (COFF))) 148#if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
148#define LD_SWITCH_SYSTEM -X 149#define LD_SWITCH_SYSTEM -X
149#else /* ! defined(COFF_ENCAPSULATE) || (defined (BSD_SYSTEM) && !defined (COFF)) */ 150#else /* (defined (BSD_SYSTEM) && !defined (COFF)) */
150#define LD_SWITCH_SYSTEM 151#define LD_SWITCH_SYSTEM
151#endif /* ! defined(COFF_ENCAPSULATE) || (defined (BSD_SYSTEM) && !defined (COFF)) */ 152#endif /* (defined (BSD_SYSTEM) && !defined (COFF)) */
152#endif /* LD_SWITCH_SYSTEM */ 153#endif /* LD_SWITCH_SYSTEM */
153 154
154/* This holds special options for linking temacs 155/* This holds special options for linking temacs
@@ -223,11 +224,7 @@ CC = C_COMPILER
223 224
224#ifndef START_FILES 225#ifndef START_FILES
225#ifdef NO_REMAP 226#ifdef NO_REMAP
226#ifdef COFF_ENCAPSULATE
227#define START_FILES pre-crt0.o /usr/local/lib/gcc-crt0.o
228#else /* ! defined (COFF_ENCAPSULATE) */
229#define START_FILES pre-crt0.o /lib/crt0.o 227#define START_FILES pre-crt0.o /lib/crt0.o
230#endif /* ! defined (COFF_ENCAPSULATE) */
231#else /* ! defined (NO_REMAP) */ 228#else /* ! defined (NO_REMAP) */
232#define START_FILES ecrt0.o 229#define START_FILES ecrt0.o
233#endif /* ! defined (NO_REMAP) */ 230#endif /* ! defined (NO_REMAP) */
@@ -536,15 +533,11 @@ STARTFLAGS = -T LD_TEXT_START_ADDR -e __start
536#ifdef ORDINARY_LINK 533#ifdef ORDINARY_LINK
537LD = $(CC) 534LD = $(CC)
538#else 535#else
539#ifdef COFF_ENCAPSULATE
540LD=$(CC) -nostdlib
541#else /* not ORDINARY_LINK */
542#ifdef LINKER 536#ifdef LINKER
543LD=LINKER 537LD=LINKER
544#else /* not LINKER */ 538#else /* not LINKER */
545LD=ld 539LD=ld
546#endif /* not LINKER */ 540#endif /* not LINKER */
547#endif /* not COFF_ENCAPSULATE */
548#endif /* not ORDINARY_LINK */ 541#endif /* not ORDINARY_LINK */
549 542
550/* Flags to pass to LD only for temacs. */ 543/* Flags to pass to LD only for temacs. */
@@ -1015,12 +1008,7 @@ ${lispsource}international/charprop.el: temacs${EXEEXT} ${UNIDATA}
1015 RUNEMACS="$${RUNEMACS}" DSTDIR=${lispsource}international 1008 RUNEMACS="$${RUNEMACS}" DSTDIR=${lispsource}international
1016#endif 1009#endif
1017 1010
1018/* Some systems define this to cause parallel Make-ing. */ 1011temacs${EXEEXT}: $(LOCALCPP) $(STARTFILES) stamp-oldxmenu ${obj} ${otherobj} OBJECTS_MACHINE prefix-args${EXEEXT}
1019#ifndef MAKE_PARALLEL
1020#define MAKE_PARALLEL
1021#endif
1022
1023temacs${EXEEXT}: MAKE_PARALLEL $(LOCALCPP) $(STARTFILES) stamp-oldxmenu ${obj} ${otherobj} OBJECTS_MACHINE prefix-args${EXEEXT}
1024 echo "${obj} ${otherobj} " OBJECTS_MACHINE > buildobj.lst 1012 echo "${obj} ${otherobj} " OBJECTS_MACHINE > buildobj.lst
1025 $(LD) YMF_PASS_LDFLAGS (${STARTFLAGS} ${TEMACS_LDFLAGS}) $(LDFLAGS) \ 1013 $(LD) YMF_PASS_LDFLAGS (${STARTFLAGS} ${TEMACS_LDFLAGS}) $(LDFLAGS) \
1026 -o temacs ${STARTFILES} ${obj} ${otherobj} \ 1014 -o temacs ${STARTFILES} ${obj} ${otherobj} \
@@ -1043,9 +1031,6 @@ stamp-oldxmenu: ${OLDXMENU} ../src/$(OLDXMENU)
1043/* Supply an ordering for parallel make. */ 1031/* Supply an ordering for parallel make. */
1044../src/$(OLDXMENU): ${OLDXMENU} 1032../src/$(OLDXMENU): ${OLDXMENU}
1045 1033
1046#ifdef USE_X_TOOLKIT
1047$(OLDXMENU): really-lwlib
1048
1049/* Encode the values of these two macros in Make variables, 1034/* Encode the values of these two macros in Make variables,
1050 so we can use $(...) to substitute their values within "...". */ 1035 so we can use $(...) to substitute their values within "...". */
1051C_SWITCH_MACHINE_1 = C_SWITCH_MACHINE 1036C_SWITCH_MACHINE_1 = C_SWITCH_MACHINE
@@ -1054,6 +1039,10 @@ C_SWITCH_SITE_1 = C_SWITCH_SITE
1054C_SWITCH_X_SITE_1 = C_SWITCH_X_SITE 1039C_SWITCH_X_SITE_1 = C_SWITCH_X_SITE
1055C_SWITCH_X_MACHINE_1 = C_SWITCH_X_MACHINE 1040C_SWITCH_X_MACHINE_1 = C_SWITCH_X_MACHINE
1056C_SWITCH_X_SYSTEM_1 = C_SWITCH_X_SYSTEM 1041C_SWITCH_X_SYSTEM_1 = C_SWITCH_X_SYSTEM
1042
1043#ifdef USE_X_TOOLKIT
1044$(OLDXMENU): really-lwlib
1045
1057really-lwlib: 1046really-lwlib:
1058 cd ${lwlibdir}; ${MAKE} ${MFLAGS} \ 1047 cd ${lwlibdir}; ${MAKE} ${MFLAGS} \
1059 CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}' \ 1048 CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}' \
@@ -1068,14 +1057,6 @@ really-lwlib:
1068#else /* not USE_X_TOOLKIT */ 1057#else /* not USE_X_TOOLKIT */
1069$(OLDXMENU): really-oldXMenu 1058$(OLDXMENU): really-oldXMenu
1070 1059
1071/* Encode the values of these two macros in Make variables,
1072 so we can use $(...) to substitute their values within "...". */
1073C_SWITCH_MACHINE_1 = C_SWITCH_MACHINE
1074C_SWITCH_SYSTEM_1 = C_SWITCH_SYSTEM
1075C_SWITCH_SITE_1 = C_SWITCH_SITE
1076C_SWITCH_X_SITE_1 = C_SWITCH_X_SITE
1077C_SWITCH_X_MACHINE_1 = C_SWITCH_X_MACHINE
1078C_SWITCH_X_SYSTEM_1 = C_SWITCH_X_SYSTEM
1079really-oldXMenu: 1060really-oldXMenu:
1080 cd ${oldXMenudir}; ${MAKE} ${MFLAGS} \ 1061 cd ${oldXMenudir}; ${MAKE} ${MFLAGS} \
1081 CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}' \ 1062 CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}' \