Mercurial > hg > xemacs-beta
comparison src/Makefile.in.in @ 263:727739f917cb r20-5b30
Import from CVS: tag r20-5b30
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:24:41 +0200 |
parents | 405dd6d1825b |
children | 8efd647ea9ca |
comparison
equal
deleted
inserted
replaced
262:9d8607af9e13 | 263:727739f917cb |
---|---|
38 etcdir = ../etc/ | 38 etcdir = ../etc/ |
39 | 39 |
40 ## Here are the things that we expect ../configure to edit. | 40 ## Here are the things that we expect ../configure to edit. |
41 prefix=@prefix@ | 41 prefix=@prefix@ |
42 srcdir=@srcdir@ | 42 srcdir=@srcdir@ |
43 blddir=@blddir@ | |
43 version=@version@ | 44 version=@version@ |
44 infodir=@infodir@ | 45 infodir=@infodir@ |
45 infopath=@infopath@ | 46 infopath=@infopath@ |
46 CC=@CC@ | 47 CC=@CC@ |
47 CPP=@CPP@ | 48 CPP=@CPP@ |
57 ld_switch_window_system=@ld_switch_window_system@ | 58 ld_switch_window_system=@ld_switch_window_system@ |
58 ld_switch_all=@ld_switch_all@ | 59 ld_switch_all=@ld_switch_all@ |
59 ld_libs_general=@ld_libs_general@ | 60 ld_libs_general=@ld_libs_general@ |
60 ld_libs_window_system=@ld_libs_window_system@ | 61 ld_libs_window_system=@ld_libs_window_system@ |
61 ld_libs_all=@ld_libs_all@ | 62 ld_libs_all=@ld_libs_all@ |
63 ld_dynamic_link_flags=@ld_dynamic_link_flags@ | |
62 | 64 |
63 extra_objs=@extra_objs@ | 65 extra_objs=@extra_objs@ |
64 LN_S=@LN_S@ | 66 LN_S=@LN_S@ |
65 | 67 |
66 ld_switch_shared=@ld_switch_shared@ | 68 ld_switch_shared=@ld_switch_shared@ |
134 ## -Demacs is needed to make some files produce the correct version | 136 ## -Demacs is needed to make some files produce the correct version |
135 ## for use in Emacs. | 137 ## for use in Emacs. |
136 | 138 |
137 cppflags = $(CPPFLAGS) -Demacs -I. $(c_switch_all) | 139 cppflags = $(CPPFLAGS) -Demacs -I. $(c_switch_all) |
138 cflags = $(CFLAGS) $(cppflags) | 140 cflags = $(CFLAGS) $(cppflags) |
139 ldflags = $(ld_switch_all) | 141 ldflags = $(ld_switch_all) $(ld_dynamic_link_flags) |
140 | 142 |
141 #ifdef SOLARIS2 | 143 #ifdef SOLARIS2 |
142 %.o : %.c | 144 %.o : %.c |
143 #else | 145 #else |
144 .c.o: | 146 .c.o: |
153 $(CC) -c $(cflags) $< | 155 $(CC) -c $(cflags) $< |
154 | 156 |
155 ## Create preprocessor output (debugging purposes only) | 157 ## Create preprocessor output (debugging purposes only) |
156 .c.i: | 158 .c.i: |
157 $(CC) -P $(cppflags) $< | 159 $(CC) -P $(cppflags) $< |
160 | |
161 ## Create RTL files | |
162 %.c.rtl : %.c | |
163 $(CC) -dr -c $(cflags) $< | |
158 | 164 |
159 ## lastfile must follow all files whose initialized data areas should | 165 ## lastfile must follow all files whose initialized data areas should |
160 ## be dumped as pure by dump-emacs. | 166 ## be dumped as pure by dump-emacs. |
161 | 167 |
162 ## NOTE: The last line cannot be all macros, because make will barf | 168 ## NOTE: The last line cannot be all macros, because make will barf |
178 print.o process.o profile.o pure.o\ | 184 print.o process.o profile.o pure.o\ |
179 rangetab.o redisplay.o redisplay-output.o regex.o\ | 185 rangetab.o redisplay.o redisplay-output.o regex.o\ |
180 search.o $(sheap_obj) signal.o sound.o\ | 186 search.o $(sheap_obj) signal.o sound.o\ |
181 specifier.o strftime.o symbols.o syntax.o sysdep.o\ | 187 specifier.o strftime.o symbols.o syntax.o sysdep.o\ |
182 undo.o $(x_objs) widget.o window.o | 188 undo.o $(x_objs) widget.o window.o |
189 | |
190 obj_rtl = $(objs:.o=.c.rtl) | |
183 | 191 |
184 #ifdef REL_ALLOC | 192 #ifdef REL_ALLOC |
185 rallocdocsrc = ralloc.c | 193 rallocdocsrc = ralloc.c |
186 rallocobjs = ralloc.o | 194 rallocobjs = ralloc.o |
187 #endif | 195 #endif |
269 #endif /* HAVE_X_WINDOWS */ | 277 #endif /* HAVE_X_WINDOWS */ |
270 | 278 |
271 ## define otherobjs as list of object files that make-docfile | 279 ## define otherobjs as list of object files that make-docfile |
272 ## should not be told about. | 280 ## should not be told about. |
273 otherobjs = $(BTL_objs) lastfile.o $(mallocobjs) $(rallocobjs) $(X11_objs) | 281 otherobjs = $(BTL_objs) lastfile.o $(mallocobjs) $(rallocobjs) $(X11_objs) |
282 otherrtls = $(otherobjs:.o=.c.rtl) | |
283 othersrcs = $(otherobjs:.o=.c) | |
274 | 284 |
275 LIBES = $(lwlib_libs) $(quantify_libs) $(malloclib) $(ld_libs_all) $(lib_gcc) | 285 LIBES = $(lwlib_libs) $(quantify_libs) $(malloclib) $(ld_libs_all) $(lib_gcc) |
276 | 286 |
277 #ifdef I18N3 | 287 #ifdef I18N3 |
278 mo_dir = ${etcdir} | 288 mo_dir = ${etcdir} |
279 mo_file = ${mo_dir}emacs.mo | 289 mo_file = ${mo_dir}emacs.mo |
280 #endif | 290 #endif |
281 | 291 |
282 LOADPATH = EMACSLOADPATH="${lispdir}" | 292 LOADPATH = EMACSLOADPATH="${lispdir}:${blddir}" |
283 DUMPENV = $(LOADPATH) | 293 DUMPENV = $(LOADPATH) |
284 | 294 |
285 release: temacs ${libsrc}DOC $(mo_file) ${other_files} | 295 release: temacs ${libsrc}DOC $(mo_file) ${other_files} |
286 #ifdef CANNOT_DUMP | 296 #ifdef CANNOT_DUMP |
287 ln temacs xemacs | 297 ln temacs xemacs |
323 @if test ! -f $@ -o -f NOBYTECOMPILE; then touch $@; fi; \ | 333 @if test ! -f $@ -o -f NOBYTECOMPILE; then touch $@; fi; \ |
324 $(RM) NOBYTECOMPILE | 334 $(RM) NOBYTECOMPILE |
325 | 335 |
326 obj_src = $(objs:.o=.c) | 336 obj_src = $(objs:.o=.c) |
327 | 337 |
338 dortl : $(obj_rtl) $(otherrtls) | |
339 echo "(defvar source-files '(" > ${srcdir}/../lisp/source-files.el | |
340 (for a in $(obj_src) $(othersrcs);do \ | |
341 echo -n "\""$$a"\"" >> ${srcdir}/../lisp/source-files.el ;\ | |
342 done) | |
343 echo "))" >> ${srcdir}/../lisp/source-files.el | |
344 | |
328 #ifdef DYNODUMP | 345 #ifdef DYNODUMP |
329 dynodump_deps = ../dynodump/dynodump.so | 346 dynodump_deps = ../dynodump/dynodump.so |
330 ../dynodump/dynodump.so: | 347 ../dynodump/dynodump.so: |
331 cd ../dynodump && $(RECURSIVE_MAKE) | 348 cd ../dynodump && $(RECURSIVE_MAKE) |
332 #endif /* DYNODUMP */ | 349 #endif /* DYNODUMP */ |
462 | 479 |
463 TopLevelEmacsShell.o : ${srcdir}/EmacsShell-sub.c config.h xintrinsicp.h EmacsShellP.h | 480 TopLevelEmacsShell.o : ${srcdir}/EmacsShell-sub.c config.h xintrinsicp.h EmacsShellP.h |
464 $(CC) -c $(cflags) -DDEFINE_TOP_LEVEL_EMACS_SHELL ${srcdir}/EmacsShell-sub.c | 481 $(CC) -c $(cflags) -DDEFINE_TOP_LEVEL_EMACS_SHELL ${srcdir}/EmacsShell-sub.c |
465 mv EmacsShell-sub.o TopLevelEmacsShell.o | 482 mv EmacsShell-sub.o TopLevelEmacsShell.o |
466 | 483 |
484 TopLevelEmacsShell.c.rtl : ${srcdir}/EmacsShell-sub.c config.h xintrinsicp.h EmacsShellP.h | |
485 $(CC) -dr -c $(cflags) -DDEFINE_TOP_LEVEL_EMACS_SHELL ${srcdir}/EmacsShell-sub.c | |
486 mv EmacsShell-sub.c.rtl TopLevelEmacsShell.c.rtl | |
487 | |
467 TransientEmacsShell.o : ${srcdir}/EmacsShell-sub.c TopLevelEmacsShell.o config.h xintrinsicp.h EmacsShellP.h | 488 TransientEmacsShell.o : ${srcdir}/EmacsShell-sub.c TopLevelEmacsShell.o config.h xintrinsicp.h EmacsShellP.h |
468 $(CC) -c $(cflags) -DDEFINE_TRANSIENT_EMACS_SHELL ${srcdir}/EmacsShell-sub.c | 489 $(CC) -c $(cflags) -DDEFINE_TRANSIENT_EMACS_SHELL ${srcdir}/EmacsShell-sub.c |
469 mv EmacsShell-sub.o TransientEmacsShell.o | 490 mv EmacsShell-sub.o TransientEmacsShell.o |
491 | |
492 TransientEmacsShell.c.rtl : ${srcdir}/EmacsShell-sub.c TopLevelEmacsShell.o config.h xintrinsicp.h EmacsShellP.h | |
493 $(CC) -dr -c $(cflags) -DDEFINE_TRANSIENT_EMACS_SHELL ${srcdir}/EmacsShell-sub.c | |
494 mv EmacsShell-sub.c.rtl TransientEmacsShell.c.rtl | |
470 | 495 |
471 ## Position-independent code for shared library creation | 496 ## Position-independent code for shared library creation |
472 #if USE_GCC | 497 #if USE_GCC |
473 pic_arg = -fpic | 498 pic_arg = -fpic |
474 #elif defined (IRIX) | 499 #elif defined (IRIX) |
934 frame-x.o: xintrinsic.h | 959 frame-x.o: xintrinsic.h |
935 offix.o: offix-cursors.h | 960 offix.o: offix-cursors.h |
936 offix.o: offix.h | 961 offix.o: offix.h |
937 offix.o: offix-types.h | 962 offix.o: offix-types.h |
938 offix.o: xintrinsic.h | 963 offix.o: xintrinsic.h |
964 #endif | |
965 | |
966 #ifdef HAVE_MS_WINDOWS | |
967 console-msw.o: blocktype.h | |
968 console-msw.o: config.h | |
969 console-msw.o: conslots.h | |
970 console-msw.o: console-msw.h | |
971 console-msw.o: console.h | |
972 console-msw.o: dynarr.h | |
973 device-msw.o: blocktype.h | |
974 device-msw.o: buffer.h | |
975 device-msw.o: bufslots.h | |
976 device-msw.o: config.h | |
977 device-msw.o: conslots.h | |
978 device-msw.o: console-msw.h | |
979 device-msw.o: console-stream.h | |
980 device-msw.o: console.h | |
981 device-msw.o: device.h | |
982 device-msw.o: dynarr.h | |
983 device-msw.o: events.h | |
984 device-msw.o: faces.h | |
985 device-msw.o: frame.h | |
986 device-msw.o: frameslots.h | |
987 device-msw.o: scrollbar.h | |
988 device-msw.o: specifier.h | |
989 device-msw.o: sysdep.h | |
990 device-msw.o: systime.h | |
991 device-msw.o: toolbar.h | |
992 event-msw.o: blocktype.h | |
993 event-msw.o: config.h | |
994 event-msw.o: conslots.h | |
995 event-msw.o: console-msw.h | |
996 event-msw.o: console.h | |
997 event-msw.o: device.h | |
998 event-msw.o: dynarr.h | |
999 event-msw.o: events-mod.h | |
1000 event-msw.o: events.h | |
1001 event-msw.o: frame.h | |
1002 event-msw.o: frameslots.h | |
1003 event-msw.o: menubar-msw.h | |
1004 event-msw.o: process.h | |
1005 event-msw.o: redisplay.h | |
1006 event-msw.o: scrollbar-msw.h | |
1007 event-msw.o: scrollbar.h | |
1008 event-msw.o: specifier.h | |
1009 event-msw.o: sysproc.h | |
1010 event-msw.o: systime.h | |
1011 event-msw.o: syswait.h | |
1012 event-msw.o: toolbar.h | |
1013 frame-msw.o: blocktype.h | |
1014 frame-msw.o: buffer.h | |
1015 frame-msw.o: bufslots.h | |
1016 frame-msw.o: config.h | |
1017 frame-msw.o: conslots.h | |
1018 frame-msw.o: console-msw.h | |
1019 frame-msw.o: console.h | |
1020 frame-msw.o: device.h | |
1021 frame-msw.o: dynarr.h | |
1022 frame-msw.o: events.h | |
1023 frame-msw.o: faces.h | |
1024 frame-msw.o: frame.h | |
1025 frame-msw.o: frameslots.h | |
1026 frame-msw.o: scrollbar.h | |
1027 frame-msw.o: specifier.h | |
1028 frame-msw.o: systime.h | |
1029 frame-msw.o: toolbar.h | |
1030 menubar-msw.o: blocktype.h | |
1031 menubar-msw.o: buffer.h | |
1032 menubar-msw.o: bufslots.h | |
1033 menubar-msw.o: commands.h | |
1034 menubar-msw.o: config.h | |
1035 menubar-msw.o: conslots.h | |
1036 menubar-msw.o: console-msw.h | |
1037 menubar-msw.o: console.h | |
1038 menubar-msw.o: device.h | |
1039 menubar-msw.o: dynarr.h | |
1040 menubar-msw.o: elhash.h | |
1041 menubar-msw.o: events.h | |
1042 menubar-msw.o: frame.h | |
1043 menubar-msw.o: frameslots.h | |
1044 menubar-msw.o: gui.h | |
1045 menubar-msw.o: menubar-msw.h | |
1046 menubar-msw.o: menubar.h | |
1047 menubar-msw.o: opaque.h | |
1048 menubar-msw.o: redisplay.h | |
1049 menubar-msw.o: scrollbar.h | |
1050 menubar-msw.o: specifier.h | |
1051 menubar-msw.o: systime.h | |
1052 menubar-msw.o: toolbar.h | |
1053 menubar-msw.o: window.h | |
1054 objects-msw.o: blocktype.h | |
1055 objects-msw.o: buffer.h | |
1056 objects-msw.o: bufslots.h | |
1057 objects-msw.o: config.h | |
1058 objects-msw.o: conslots.h | |
1059 objects-msw.o: console-msw.h | |
1060 objects-msw.o: console.h | |
1061 objects-msw.o: device.h | |
1062 objects-msw.o: dynarr.h | |
1063 objects-msw.o: insdel.h | |
1064 objects-msw.o: objects-msw.h | |
1065 objects-msw.o: objects.h | |
1066 objects-msw.o: specifier.h | |
1067 redisplay-msw.o: blocktype.h | |
1068 redisplay-msw.o: buffer.h | |
1069 redisplay-msw.o: bufslots.h | |
1070 redisplay-msw.o: config.h | |
1071 redisplay-msw.o: conslots.h | |
1072 redisplay-msw.o: console-msw.h | |
1073 redisplay-msw.o: console.h | |
1074 redisplay-msw.o: debug.h | |
1075 redisplay-msw.o: device.h | |
1076 redisplay-msw.o: dynarr.h | |
1077 redisplay-msw.o: events.h | |
1078 redisplay-msw.o: faces.h | |
1079 redisplay-msw.o: frame.h | |
1080 redisplay-msw.o: frameslots.h | |
1081 redisplay-msw.o: glyphs.h | |
1082 redisplay-msw.o: objects-msw.h | |
1083 redisplay-msw.o: objects.h | |
1084 redisplay-msw.o: redisplay.h | |
1085 redisplay-msw.o: scrollbar.h | |
1086 redisplay-msw.o: specifier.h | |
1087 redisplay-msw.o: sysdep.h | |
1088 redisplay-msw.o: systime.h | |
1089 redisplay-msw.o: toolbar.h | |
1090 redisplay-msw.o: window.h | |
1091 scrollbar-msw.o: blocktype.h | |
1092 scrollbar-msw.o: config.h | |
1093 scrollbar-msw.o: conslots.h | |
1094 scrollbar-msw.o: console-msw.h | |
1095 scrollbar-msw.o: console.h | |
1096 scrollbar-msw.o: device.h | |
1097 scrollbar-msw.o: dynarr.h | |
1098 scrollbar-msw.o: events.h | |
1099 scrollbar-msw.o: frame.h | |
1100 scrollbar-msw.o: frameslots.h | |
1101 scrollbar-msw.o: redisplay.h | |
1102 scrollbar-msw.o: scrollbar-msw.h | |
1103 scrollbar-msw.o: scrollbar.h | |
1104 scrollbar-msw.o: specifier.h | |
1105 scrollbar-msw.o: systime.h | |
1106 scrollbar-msw.o: toolbar.h | |
1107 scrollbar-msw.o: window.h | |
1108 select-msw.o: blocktype.h | |
1109 select-msw.o: config.h | |
1110 select-msw.o: conslots.h | |
1111 select-msw.o: console-msw.h | |
1112 select-msw.o: console.h | |
1113 select-msw.o: dynarr.h | |
939 #endif | 1114 #endif |
940 | 1115 |
941 EmacsFrame.o: $(LWLIB_SRCDIR)/lwlib.h | 1116 EmacsFrame.o: $(LWLIB_SRCDIR)/lwlib.h |
942 EmacsFrame.o: EmacsFrame.h | 1117 EmacsFrame.o: EmacsFrame.h |
943 EmacsFrame.o: EmacsFrameP.h | 1118 EmacsFrame.o: EmacsFrameP.h |