comparison src/Makefile.in.in @ 267:966663fcf606 r20-5b32

Import from CVS: tag r20-5b32
author cvs
date Mon, 13 Aug 2007 10:26:29 +0200
parents 8efd647ea9ca
children b2472a1930f2
comparison
equal deleted inserted replaced
266:18d185df8c54 267:966663fcf606
68 ld_switch_shared=@ld_switch_shared@ 68 ld_switch_shared=@ld_switch_shared@
69 start_files=@start_files@ 69 start_files=@start_files@
70 start_flags=@start_flags@ 70 start_flags=@start_flags@
71 LD=@ld@ 71 LD=@ld@
72 lib_gcc=@lib_gcc@ 72 lib_gcc=@lib_gcc@
73 #libmcheck=@libmcheck@
73 74
74 #define NOT_C_CODE 75 #define NOT_C_CODE
75 #include "config.h" 76 #include "config.h"
76 77
77 ## With the traditional VPATH setting, it is not possible to 78 ## With the traditional VPATH setting, it is not possible to
118 119
119 ## a separate offix lib which merges with non-Xt event systems (TkStep, XEmacs) 120 ## a separate offix lib which merges with non-Xt event systems (TkStep, XEmacs)
120 OFFIX_O = @OFFIX_O@ 121 OFFIX_O = @OFFIX_O@
121 122
122 x_objs=balloon_help.o balloon-x.o console-x.o device-x.o event-Xt.o frame-x.o\ 123 x_objs=balloon_help.o balloon-x.o console-x.o device-x.o event-Xt.o frame-x.o\
123 glyphs-x.o objects-x.o redisplay-x.o xgccache.o xselect.o imgproc.o 124 glyphs-x.o objects-x.o redisplay-x.o xgccache.o xselect.o
124 125
125 #ifdef AIX4 126 #ifdef AIX4
126 LIBI18N = -li18n 127 LIBI18N = -li18n
127 #endif /* AIX4 */ 128 #endif /* AIX4 */
128 129
176 editfns.o elhash.o emacs.o\ 177 editfns.o elhash.o emacs.o\
177 eval.o events.o $(extra_objs)\ 178 eval.o events.o $(extra_objs)\
178 event-stream.o extents.o faces.o\ 179 event-stream.o extents.o faces.o\
179 fileio.o $(LOCK_OBJ) filemode.o floatfns.o fns.o font-lock.o\ 180 fileio.o $(LOCK_OBJ) filemode.o floatfns.o fns.o font-lock.o\
180 frame.o general.o getloadavg.o glyphs.o\ 181 frame.o general.o getloadavg.o glyphs.o\
181 $(gui_objs) hash.o indent.o insdel.o intl.o\ 182 $(gui_objs) hash.o imgproc.o indent.o insdel.o intl.o\
182 keymap.o $(RTC_patch_objs) line-number.o lread.o lstream.o\ 183 keymap.o $(RTC_patch_objs) line-number.o lread.o lstream.o\
183 macros.o marker.o md5.o minibuf.o objects.o opaque.o\ 184 macros.o marker.o md5.o minibuf.o objects.o opaque.o\
184 print.o process.o profile.o pure.o\ 185 print.o process.o profile.o pure.o\
185 rangetab.o redisplay.o redisplay-output.o regex.o\ 186 rangetab.o redisplay.o redisplay-output.o regex.o\
186 search.o $(sheap_obj) signal.o sound.o\ 187 search.o $(sheap_obj) signal.o sound.o\
192 #ifdef REL_ALLOC 193 #ifdef REL_ALLOC
193 rallocdocsrc = ralloc.c 194 rallocdocsrc = ralloc.c
194 rallocobjs = ralloc.o 195 rallocobjs = ralloc.o
195 #endif 196 #endif
196 197
197 malloclib = 198 malloclib = $(libmcheck)
198 #ifndef SYSTEM_MALLOC 199 #ifndef SYSTEM_MALLOC
199 # ifdef GNU_MALLOC /* GNU malloc */ 200 # ifdef GNU_MALLOC /* GNU malloc */
200 # ifdef ERROR_CHECK_MALLOC 201 # ifdef ERROR_CHECK_MALLOC
201 #ifdef DOUG_LEA_MALLOC 202 #ifdef DOUG_LEA_MALLOC
202 mallocobjs = free-hook.o vm-limit.o 203 mallocobjs = free-hook.o vm-limit.o
287 #ifdef I18N3 288 #ifdef I18N3
288 mo_dir = ${etcdir} 289 mo_dir = ${etcdir}
289 mo_file = ${mo_dir}emacs.mo 290 mo_file = ${mo_dir}emacs.mo
290 #endif 291 #endif
291 292
292 LOADPATH = EMACSLOADPATH="${lispdir}:${blddir}" 293 LOADPATH = EMACSBOOTSTRAPLOADPATH="${lispdir}:${blddir}"
293 DUMPENV = $(LOADPATH) 294 DUMPENV = $(LOADPATH)
294 295
295 release: temacs ${libsrc}DOC $(mo_file) ${other_files} 296 release: temacs ${libsrc}DOC $(mo_file) ${other_files}
296 #ifdef CANNOT_DUMP 297 #ifdef CANNOT_DUMP
297 ln temacs xemacs 298 ln temacs xemacs
298 #else 299 #else
299 #ifdef HAVE_SHM 300 #ifdef HAVE_SHM
300 -if [ -w ${srcdir}/../lisp ]; then \ 301 -if [ -w ${srcdir}/../lisp ]; then \
301 w=`pwd`; cd ${srcdir} && $${w}/temacs -nl -batch -l inc-vers; \ 302 w=`pwd`; cd ${srcdir} && $${w}/temacs -nl -batch -l ${srcdir}/../lisp/inc-vers; \
302 else true; fi 303 else true; fi
303 @touch SATISFIED 304 @touch SATISFIED
304 -$(DUMPENV) ./temacs -nl -batch -l loadup.el dump 305 -$(DUMPENV) ./temacs -nl -batch -l ${srcdir}/../lisp/loadup.el dump
305 @if test ! -f SATISFIED; then $(RECURSIVE_MAKE) $@; fi 306 @if test ! -f SATISFIED; then $(RECURSIVE_MAKE) $@; fi
306 @$(RM) SATISFIED 307 @$(RM) SATISFIED
307 #else /* ! defined (HAVE_SHM) */ 308 #else /* ! defined (HAVE_SHM) */
308 -if [ -w ${srcdir}/../lisp ]; then \ 309 -if [ -w ${srcdir}/../lisp ]; then \
309 w=`pwd`; cd ${srcdir} && $${w}/temacs -batch -l inc-vers; \ 310 w=`pwd`; cd ${srcdir} && $${w}/temacs -batch -l ${srcdir}/../lisp/inc-vers; \
310 else true; fi 311 else true; fi
311 @touch SATISFIED 312 @touch SATISFIED
312 -$(DUMPENV) ./temacs -batch -l loadup.el dump 313 -$(DUMPENV) ./temacs -batch -l ${srcdir}/../lisp/loadup.el dump
313 @if test ! -f SATISFIED; then $(RECURSIVE_MAKE) $@; fi 314 @if test ! -f SATISFIED; then $(RECURSIVE_MAKE) $@; fi
314 @$(RM) SATISFIED 315 @$(RM) SATISFIED
315 #endif /* ! defined (HAVE_SHM) */ 316 #endif /* ! defined (HAVE_SHM) */
316 touch release 317 touch release
317 #endif /* ! defined (CANNOT_DUMP) */ 318 #endif /* ! defined (CANNOT_DUMP) */
318 319
319 xemacs: temacs ${libsrc}DOC $(mo_file) ${other_files} update-elc.stamp 320 xemacs: temacs ${libsrc}DOC $(mo_file) ${other_files} update-elc.stamp
320 @$(RM) $@ && touch SATISFIED 321 @$(RM) $@ && touch SATISFIED
321 -$(DUMPENV) ./temacs -batch -l loadup.el dump 322 -$(DUMPENV) ./temacs -batch -l ${srcdir}/../lisp/loadup.el dump
322 @if test -f $@; then if test -f SATISFIED; then \ 323 @if test -f $@; then if test -f SATISFIED; then \
323 ./xemacs -batch -vanilla -f list-load-path-shadows; fi; \ 324 ./xemacs -batch -vanilla -f list-load-path-shadows; fi; \
324 $(RM) SATISFIED; exit 0; fi; \ 325 $(RM) SATISFIED; exit 0; fi; \
325 if test -f SATISFIED; then $(RM) SATISFIED; exit 1; fi; \ 326 if test -f SATISFIED; then $(RM) SATISFIED; exit 1; fi; \
326 $(RECURSIVE_MAKE) $@; 327 $(RECURSIVE_MAKE) $@;
327 328
329 fastdump: temacs
330 @$(RM) xemacs && touch SATISFIED
331 -$(DUMPENV) ./temacs -batch -l loadup.el dump
332 @if test -f xemacs; then if test -f SATISFIED; then \
333 ./xemacs -batch -vanilla -f list-load-path-shadows; fi; \
334 $(RM) SATISFIED; exit 0; fi; \
335 if test -f SATISFIED; then $(RM) SATISFIED; exit 1; fi;
336
328 FRC.update-elc.stamp : 337 FRC.update-elc.stamp :
329 338
330 update-elc.stamp : temacs FRC.update-elc.stamp 339 update-elc.stamp : temacs FRC.update-elc.stamp
331 @touch NOBYTECOMPILE 340 @touch NOBYTECOMPILE
332 ${DUMPENV} ./temacs -batch -l update-elc.el 341 ${DUMPENV} ./temacs -batch -l ${srcdir}/../lisp/update-elc.el
333 @if test ! -f $@ -o -f NOBYTECOMPILE; then touch $@; fi; \ 342 @if test ! -f $@ -o -f NOBYTECOMPILE; then touch $@; fi; \
334 $(RM) NOBYTECOMPILE 343 $(RM) NOBYTECOMPILE
335 344
336 obj_src = $(objs:.o=.c) 345 obj_src = $(objs:.o=.c)
337 346
348 cd ../dynodump && $(RECURSIVE_MAKE) 357 cd ../dynodump && $(RECURSIVE_MAKE)
349 #endif /* DYNODUMP */ 358 #endif /* DYNODUMP */
350 359
351 ${libsrc}DOC: temacs update-elc.stamp 360 ${libsrc}DOC: temacs update-elc.stamp
352 $(RM) ${libsrc}DOC; \ 361 $(RM) ${libsrc}DOC; \
353 ${DUMPENV} ./temacs -batch -l make-docfile.el -- \ 362 ${DUMPENV} ./temacs -batch -l ${srcdir}/../lisp/make-docfile.el -- \
354 -o ${libsrc}DOC -d ${srcdir} -i ${libsrc}../site-packages \ 363 -o ${libsrc}DOC -d ${srcdir} -i ${libsrc}../site-packages \
355 ${obj_src} ${mallocdocsrc} ${rallocdocsrc} 364 ${obj_src} ${mallocdocsrc} ${rallocdocsrc}
356 365
357 dump_elcs: dump-elcs 366 dump_elcs: dump-elcs
358 367
359 dump-elcs: temacs 368 dump-elcs: temacs
360 -${DUMPENV} ./temacs -batch -l update-elc.el 369 -${DUMPENV} ./temacs -batch -l ${srcdir}/../lisp/update-elc.el
361 370
362 all-elc all-elcs: 371 all-elc all-elcs:
363 cd .. && $(RECURSIVE_MAKE) all-elc 372 cd .. && $(RECURSIVE_MAKE) all-elc
364 373
365 #ifdef I18N3 374 #ifdef I18N3
416 $(LD) $(temacs_link_args) 425 $(LD) $(temacs_link_args)
417 426
418 .PHONY : run-temacs 427 .PHONY : run-temacs
419 428
420 run-temacs: temacs 429 run-temacs: temacs
421 ./temacs -batch -l loadup.el run-temacs 430 ./temacs -batch -l ${srcdir}/../lisp/loadup.el run-temacs
422 431
423 ## Debugging targets: 432 ## Debugging targets:
424 ## 433 ##
425 ## RTC is Sun WorkShop's Run Time Checking 434 ## RTC is Sun WorkShop's Run Time Checking
426 ## 435 ##
446 'dbxenv rtc_error_log_file_name /dev/fd/1; \ 455 'dbxenv rtc_error_log_file_name /dev/fd/1; \
447 dbxenv suppress_startup_message 5.0; \ 456 dbxenv suppress_startup_message 5.0; \
448 ignore POLL; \ 457 ignore POLL; \
449 check -access; \ 458 check -access; \
450 suppress rui; \ 459 suppress rui; \
451 runargs -batch -l loadup.el run-temacs -q; \ 460 runargs -batch -l ${srcdir}/../lisp/loadup.el run-temacs -q; \
452 run' rtcmacs 461 run' rtcmacs
453 462
454 ## Purify 463 ## Purify
455 PURIFY_PROG=purify 464 PURIFY_PROG=purify
456 PURIFY_FLAGS=-chain-length=32 -ignore-signals=SIGPOLL -threads=yes \ 465 PURIFY_FLAGS=-chain-length=32 -ignore-signals=SIGPOLL -threads=yes \
457 -cache-dir=./purecache -always-use-cache-dir=yes -pointer-mask=0x0fffffff 466 -cache-dir=./purecache -always-use-cache-dir=yes -pointer-mask=0x0fffffff
458 puremacs: $(temacs_deps) 467 puremacs: $(temacs_deps)
459 $(PURIFY_PROG) $(PURIFY_FLAGS) $(LD) $(temacs_link_args) -lpthread 468 $(PURIFY_PROG) $(PURIFY_FLAGS) $(LD) $(temacs_link_args) -lpthread
460 469
461 run-puremacs: puremacs 470 run-puremacs: puremacs
462 ./puremacs -batch -l loadup.el run-temacs 471 ./puremacs -batch -l ${srcdir}/../lisp/loadup.el run-temacs
463 472
464 ## Quantify 473 ## Quantify
465 #ifdef QUANTIFY 474 #ifdef QUANTIFY
466 quantify_prog = quantify 475 quantify_prog = quantify
467 quantify_flags = -windows=no -record-data=no 476 quantify_flags = -windows=no -record-data=no
1962 glyphs.o: redisplay.h 1971 glyphs.o: redisplay.h
1963 glyphs.o: scrollbar.h 1972 glyphs.o: scrollbar.h
1964 glyphs.o: specifier.h 1973 glyphs.o: specifier.h
1965 glyphs.o: toolbar.h 1974 glyphs.o: toolbar.h
1966 glyphs.o: window.h 1975 glyphs.o: window.h
1976 glyphs-msw.o: bitmaps.h
1977 glyphs-msw.o: blocktype.h
1978 glyphs-msw.o: buffer.h
1979 glyphs-msw.o: bufslots.h
1980 glyphs-msw.o: config.h
1981 glyphs-msw.o: conslots.h
1982 glyphs-msw.o: console-msw.h
1983 glyphs-msw.o: console.h
1984 glyphs-msw.o: device.h
1985 glyphs-msw.o: dynarr.h
1986 glyphs-msw.o: frame.h
1987 glyphs-msw.o: frameslots.h
1988 glyphs-msw.o: glyphs-msw.h
1989 glyphs-msw.o: glyphs.h
1990 glyphs-msw.o: insdel.h
1991 glyphs-msw.o: objects-msw.h
1992 glyphs-msw.o: objects.h
1993 glyphs-msw.o: opaque.h
1994 glyphs-msw.o: scrollbar.h
1995 glyphs-msw.o: specifier.h
1996 glyphs-msw.o: sysfile.h
1997 glyphs-msw.o: toolbar.h
1998 glyphs-msw.o: imgproc.h
1967 gmalloc.o: config.h 1999 gmalloc.o: config.h
1968 gmalloc.o: getpagesize.h 2000 gmalloc.o: getpagesize.h
1969 gui-x.o: $(LWLIB_SRCDIR)/lwlib.h 2001 gui-x.o: $(LWLIB_SRCDIR)/lwlib.h
1970 gui-x.o: blocktype.h 2002 gui-x.o: blocktype.h
1971 gui-x.o: buffer.h 2003 gui-x.o: buffer.h