Mercurial > hg > xemacs-beta
comparison src/Makefile.in.in @ 412:697ef44129c6 r21-2-14
Import from CVS: tag r21-2-14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:20:41 +0200 |
parents | de805c49cfc1 |
children | da8ed4261e83 |
comparison
equal
deleted
inserted
replaced
411:12e008d41344 | 412:697ef44129c6 |
---|---|
23 | 23 |
24 ## Synched up with: Not synched with FSF. | 24 ## Synched up with: Not synched with FSF. |
25 | 25 |
26 PROGNAME=@PROGNAME@ | 26 PROGNAME=@PROGNAME@ |
27 | 27 |
28 #define NOT_C_CODE | 28 all: ${PROGNAME} |
29 #include "config.h" | |
30 | |
31 #ifdef PDUMP | |
32 DUMP_TARGET = ${PROGNAME}.dmp | |
33 EXE_TARGET = ${PROGNAME} | |
34 ID_FILE = dump-id.c | |
35 #else | |
36 DUMP_TARGET = ${PROGNAME} | |
37 EXE_TARGET = temacs | |
38 ID_FILE = | |
39 #endif | |
40 | |
41 all: ${DUMP_TARGET} | |
42 .PHONY : all release dump-elc dump-elcs all-elc all-elcs lint | 29 .PHONY : all release dump-elc dump-elcs all-elc all-elcs lint |
43 | 30 |
44 ## For performance and consistency, no built-in rules. | 31 ## For performance and consistency, no built-in rules. |
45 .SUFFIXES: | 32 .SUFFIXES: |
46 .SUFFIXES: .c .h .o .i .s .dep | 33 .SUFFIXES: .c .h .o .i .s .dep |
84 start_flags=@start_flags@ | 71 start_flags=@start_flags@ |
85 LD=@ld@ | 72 LD=@ld@ |
86 lib_gcc=@lib_gcc@ | 73 lib_gcc=@lib_gcc@ |
87 ##libmcheck=@libmcheck@ | 74 ##libmcheck=@libmcheck@ |
88 | 75 |
76 #define NOT_C_CODE | |
77 #include "config.h" | |
89 | 78 |
90 ## With the traditional VPATH setting, it is not possible to | 79 ## With the traditional VPATH setting, it is not possible to |
91 ## simultaneously compile in-place and in another directory. The | 80 ## simultaneously compile in-place and in another directory. The |
92 ## mistaken definition is that *all* dependencies are searched for in | 81 ## mistaken definition is that *all* dependencies are searched for in |
93 ## the VPATH directory, rather than just the dependencies that are not | 82 ## the VPATH directory, rather than just the dependencies that are not |
107 ## (e.g. a .in file). | 96 ## (e.g. a .in file). |
108 vpath config.h | 97 vpath config.h |
109 vpath paths.h | 98 vpath paths.h |
110 vpath Emacs.ad.h | 99 vpath Emacs.ad.h |
111 vpath sheap-adjust.h | 100 vpath sheap-adjust.h |
112 vpath dump-id.c | |
113 #else | 101 #else |
114 VPATH=@srcdir@ | 102 VPATH=@srcdir@ |
115 #endif | 103 #endif |
116 | 104 |
117 RM = rm -f | 105 RM = rm -f |
106 | |
107 #ifdef HAVE_NATIVE_SOUND | |
108 sound_cflags=@sound_cflags@ | |
109 #endif | |
118 | 110 |
119 LWLIB_SRCDIR = ${srcdir}/../lwlib | 111 LWLIB_SRCDIR = ${srcdir}/../lwlib |
120 | 112 |
121 #ifdef HAVE_X_WINDOWS | 113 #ifdef HAVE_X_WINDOWS |
122 lwlib_libs = ../lwlib/liblw.a | 114 lwlib_libs = ../lwlib/liblw.a |
123 lwlib_deps = $(lwlib_libs) | 115 lwlib_deps = $(lwlib_libs) |
124 $(lwlib_libs) : | 116 $(lwlib_libs) : |
125 cd ../lwlib && $(RECURSIVE_MAKE) | 117 cd ../lwlib && $(RECURSIVE_MAKE) |
126 | 118 |
127 x_objs=balloon_help.o balloon-x.o console-x.o device-x.o event-Xt.o frame-x.o\ | 119 x_objs=balloon_help.o balloon-x.o console-x.o device-x.o event-Xt.o frame-x.o\ |
128 glyphs-x.o objects-x.o redisplay-x.o select-x.o xgccache.o | 120 glyphs-x.o objects-x.o redisplay-x.o xgccache.o xselect.o |
129 | 121 |
130 #ifdef AIX4 | 122 #ifdef AIX4 |
131 LIBI18N = -li18n | 123 LIBI18N = -li18n |
132 #endif /* AIX4 */ | 124 #endif /* AIX4 */ |
133 | 125 |
134 X11_libs = $(LIBI18N) | 126 X11_libs = $(LIBI18N) |
135 #endif /* HAVE_X_WINDOWS */ | 127 #endif /* HAVE_X_WINDOWS */ |
136 | 128 |
137 #if defined (HEAP_IN_DATA) && !defined(PDUMP) | 129 #ifdef HEAP_IN_DATA |
138 sheap_obj=sheap.o | 130 sheap_obj=sheap.o |
139 #endif | |
140 | |
141 #if defined(MINGW) || defined(CYGWIN) | |
142 res_obj=xemacs_res.o | |
143 #endif | 131 #endif |
144 | 132 |
145 ## -Demacs is needed to make some files produce the correct version | 133 ## -Demacs is needed to make some files produce the correct version |
146 ## for use in Emacs. | 134 ## for use in Emacs. |
147 | 135 |
186 editfns.o elhash.o emacs.o\ | 174 editfns.o elhash.o emacs.o\ |
187 eval.o events.o $(extra_objs)\ | 175 eval.o events.o $(extra_objs)\ |
188 event-stream.o extents.o faces.o\ | 176 event-stream.o extents.o faces.o\ |
189 fileio.o $(LOCK_OBJ) filemode.o floatfns.o fns.o font-lock.o\ | 177 fileio.o $(LOCK_OBJ) filemode.o floatfns.o fns.o font-lock.o\ |
190 frame.o general.o glyphs.o glyphs-eimage.o glyphs-widget.o\ | 178 frame.o general.o glyphs.o glyphs-eimage.o glyphs-widget.o\ |
191 gui.o gutter.o $(gui_objs) hash.o imgproc.o indent.o insdel.o intl.o\ | 179 gui.o $(gui_objs) hash.o imgproc.o indent.o insdel.o intl.o\ |
192 keymap.o $(RTC_patch_objs) line-number.o lread.o lstream.o\ | 180 keymap.o $(RTC_patch_objs) line-number.o lread.o lstream.o\ |
193 macros.o marker.o md5.o minibuf.o objects.o opaque.o\ | 181 macros.o marker.o md5.o minibuf.o objects.o opaque.o\ |
194 print.o process.o profile.o\ | 182 print.o process.o profile.o\ |
195 rangetab.o redisplay.o redisplay-output.o regex.o\ | 183 rangetab.o redisplay.o redisplay-output.o regex.o\ |
196 search.o select.o $(sheap_obj) signal.o sound.o\ | 184 search.o $(sheap_obj) signal.o sound.o\ |
197 specifier.o strftime.o symbols.o syntax.o sysdep.o\ | 185 specifier.o strftime.o symbols.o syntax.o sysdep.o\ |
198 undo.o $(x_objs) widget.o window.o $(res_obj) | 186 undo.o $(x_objs) widget.o window.o |
199 | 187 |
200 obj_rtl = $(objs:.o=.c.rtl) | 188 obj_rtl = $(objs:.o=.c.rtl) |
201 | 189 |
202 #ifdef REL_ALLOC | 190 #ifdef REL_ALLOC |
203 rallocdocsrc = ralloc.c | 191 rallocdocsrc = ralloc.c |
246 # ifdef USE_GCC | 234 # ifdef USE_GCC |
247 # ifdef USG5 | 235 # ifdef USG5 |
248 # define EXTW_LINK(objs, output) $(CC) -shared objs -Xlinker -z -Xlinker text -o output | 236 # define EXTW_LINK(objs, output) $(CC) -shared objs -Xlinker -z -Xlinker text -o output |
249 extw_link_beg = $(CC) -shared | 237 extw_link_beg = $(CC) -shared |
250 extw_link_mid = -Xlinker -z -Xlinker text -o | 238 extw_link_mid = -Xlinker -z -Xlinker text -o |
251 extw_link_end = | 239 extw_link_end = |
252 ## I cannot figure out how to do shared a.out libraries, so just punt. | 240 ## I cannot figure out how to do shared a.out libraries, so just punt. |
253 # elif !defined (LINUX) || defined (__ELF__) | 241 # elif !defined (LINUX) || defined (__ELF__) |
254 # define EXTW_LINK(objs, output) $(CC) -shared objs -o output | 242 # define EXTW_LINK(objs, output) $(CC) -shared objs -o output |
255 extw_link_beg = $(CC) -shared | 243 extw_link_beg = $(CC) -shared |
256 extw_link_mid = -o | 244 extw_link_mid = -o |
257 extw_link_end = | 245 extw_link_end = |
258 # endif | 246 # endif |
259 # elif defined (USG5) | 247 # elif defined (USG5) |
260 # if defined (IRIX) | 248 # if defined (IRIX) |
261 # define EXTW_LINK(objs, output) $(LD) -shared -g -check_registry ${TOOLROOT}/usr/lib/so_locations objs -o output | 249 # define EXTW_LINK(objs, output) $(LD) -shared -g -check_registry ${TOOLROOT}/usr/lib/so_locations objs -o output |
262 extw_link_beg = $(LD) -shared -g -check_registry ${TOOLROOT}/usr/lib/so_locations | 250 extw_link_beg = $(LD) -shared -g -check_registry ${TOOLROOT}/usr/lib/so_locations |
263 extw_link_mid = -o | 251 extw_link_mid = -o |
264 extw_link_end = | 252 extw_link_end = |
265 # else /* not IRIX */ | 253 # else /* not IRIX */ |
266 # define EXTW_LINK(objs, output) $(CC) -G objs -z text -o output | 254 # define EXTW_LINK(objs, output) $(CC) -G objs -z text -o output |
267 extw_link_beg = $(CC) -G | 255 extw_link_beg = $(CC) -G |
268 extw_link_mid = -z text -o | 256 extw_link_mid = -z text -o |
269 extw_link_end = | 257 extw_link_end = |
270 # endif /* not IRIX */ | 258 # endif /* not IRIX */ |
271 # else /* not USG5 */ | 259 # else /* not USG5 */ |
272 # if defined (DEC_ALPHA) && defined (OSF1) | 260 # if defined (DEC_ALPHA) && defined (OSF1) |
273 # define EXTW_LINK(objs, output) $(LD) $(ldflags) $(ld_switch_shared) -d objs -o output $(LIBES) | 261 # define EXTW_LINK(objs, output) $(LD) $(ldflags) $(ld_switch_shared) -d objs -o output $(LIBES) |
274 extw_link_beg = $(LD) $(ldflags) $(ld_switch_shared) -d | 262 extw_link_beg = $(LD) $(ldflags) $(ld_switch_shared) -d |
275 extw_link_mid = -o | 263 extw_link_mid = -o |
276 extw_link_end = $(LIBES) | 264 extw_link_end = $(LIBES) |
277 # else /* !(DEC_ALPHA && OSF1) */ | 265 # else /* !(DEC_ALPHA && OSF1) */ |
278 # define EXTW_LINK(objs, output) $(LD) -dc objs -assert pure-text -o output | 266 # define EXTW_LINK(objs, output) $(LD) -dc objs -assert pure-text -o output |
279 extw_link_beg = $(LD) -dc | 267 extw_link_beg = $(LD) -dc |
280 extw_link_mid = -assert pure-text -o | 268 extw_link_mid = -assert pure-text -o |
281 extw_link_end = | 269 extw_link_end = |
282 # endif /* !(DEC_ALPHA && OSF1) */ | 270 # endif /* !(DEC_ALPHA && OSF1) */ |
283 # endif /* not USG5 */ | 271 # endif /* not USG5 */ |
284 | 272 |
285 # ifdef LWLIB_USES_MOTIF | 273 # ifdef LWLIB_USES_MOTIF |
286 # ifdef EXTW_LINK | 274 # ifdef EXTW_LINK |
319 #ifdef I18N3 | 307 #ifdef I18N3 |
320 mo_dir = ${etcdir} | 308 mo_dir = ${etcdir} |
321 mo_file = ${mo_dir}emacs.mo | 309 mo_file = ${mo_dir}emacs.mo |
322 #endif | 310 #endif |
323 | 311 |
324 temacs_loadup = ./${EXE_TARGET} -nd -batch -l ${srcdir}/../lisp/loadup.el | 312 #ifdef WINDOWSNT |
313 LOADPATH = EMACSBOOTSTRAPLOADPATH="${lispdir};${blddir}" | |
314 MODULEPATH = EMACSBOOTSTRAPMODULEPATH="${moduledir};${blddir}" | |
315 #else | |
316 LOADPATH = EMACSBOOTSTRAPLOADPATH="${lispdir}:${blddir}" | |
317 MODULEPATH = EMACSBOOTSTRAPMODULEPATH="${moduledir}:${blddir}" | |
318 #endif | |
319 DUMPENV = $(LOADPATH) $(MODULEPATH) | |
320 temacs_loadup = $(DUMPENV) ./temacs -batch -l ${srcdir}/../lisp/loadup.el | |
325 dump_temacs = ${temacs_loadup} dump | 321 dump_temacs = ${temacs_loadup} dump |
326 run_temacs = ${temacs_loadup} run-temacs | 322 run_temacs = ${temacs_loadup} run-temacs |
327 debug_temacs = gdb ${EXE_TARGET} | 323 |
328 | 324 release: temacs ${libsrc}DOC $(mo_file) ${other_files} |
329 release: ${EXE_TARGET} ${libsrc}DOC $(mo_file) ${other_files} | |
330 #ifdef CANNOT_DUMP | 325 #ifdef CANNOT_DUMP |
331 ln ${EXE_TARGET} ${PROGNAME} | 326 ln temacs ${PROGNAME} |
332 #else | 327 #else |
328 #ifdef HAVE_SHM | |
333 -if [ -w ${srcdir}/../lisp ]; then \ | 329 -if [ -w ${srcdir}/../lisp ]; then \ |
334 w=`pwd`; cd ${srcdir} && $${w}/${EXE_TARGET} -nd -batch -l ${srcdir}/../lisp/inc-vers; \ | 330 w=`pwd`; cd ${srcdir} && $${w}/temacs -nl -batch -l ${srcdir}/../lisp/inc-vers; \ |
335 else true; fi | 331 else true; fi |
336 -./${EXE_TARGET} -nd -batch -l ${srcdir}/../lisp/loadup.el dump | 332 -$(DUMPENV) ./temacs -nl -batch -l ${srcdir}/../lisp/loadup.el dump |
333 #else /* ! defined (HAVE_SHM) */ | |
334 -if [ -w ${srcdir}/../lisp ]; then \ | |
335 w=`pwd`; cd ${srcdir} && $${w}/temacs -batch -l ${srcdir}/../lisp/inc-vers; \ | |
336 else true; fi | |
337 -$(DUMPENV) ./temacs -batch -l ${srcdir}/../lisp/loadup.el dump | |
338 #endif /* ! defined (HAVE_SHM) */ | |
337 touch release | 339 touch release |
338 #endif /* ! defined (CANNOT_DUMP) */ | 340 #endif /* ! defined (CANNOT_DUMP) */ |
339 | 341 |
340 ${DUMP_TARGET}: ${EXE_TARGET} ${libsrc}DOC $(mo_file) ${other_files} update-elc.stamp | 342 ${PROGNAME}: temacs ${libsrc}DOC $(mo_file) ${other_files} update-elc.stamp |
341 #ifdef HEAP_IN_DATA | 343 @$(RM) $@ |
342 @$(RM) $@ && touch SATISFIED | |
343 -${dump_temacs} | 344 -${dump_temacs} |
344 @if test -f $@; then if test -f SATISFIED; then \ | |
345 echo "Testing for Lisp shadows ..."; \ | |
346 ./${PROGNAME} -batch -vanilla -f list-load-path-shadows; fi; \ | |
347 $(RM) SATISFIED; exit 0; fi; \ | |
348 if test -f SATISFIED; then $(RM) SATISFIED; exit 1; fi; \ | |
349 @$(RM) $@; \ | |
350 $(RECURSIVE_MAKE) $@; | |
351 #else | |
352 @$(RM) $@ | |
353 ${dump_temacs} | |
354 @echo "Testing for Lisp shadows ..." | 345 @echo "Testing for Lisp shadows ..." |
355 @./${PROGNAME} -batch -vanilla -f list-load-path-shadows | 346 @./${PROGNAME} -batch -vanilla -f list-load-path-shadows |
356 #endif | 347 |
357 | 348 fastdump: temacs |
358 fastdump: ${EXE_TARGET} | 349 @$(RM) ${PROGNAME} && touch SATISFIED |
359 @$(RM) ${DUMP_TARGET} && touch SATISFIED | |
360 -${dump_temacs} | 350 -${dump_temacs} |
361 @./${PROGNAME} -batch -vanilla -f list-load-path-shadows | 351 @./${PROGNAME} -batch -vanilla -f list-load-path-shadows |
362 | 352 |
363 FRC.update-elc.stamp : | 353 FRC.update-elc.stamp : |
364 | 354 |
365 update-elc.stamp : ${EXE_TARGET} FRC.update-elc.stamp | 355 update-elc.stamp : temacs FRC.update-elc.stamp |
366 @touch NOBYTECOMPILE | 356 @touch NOBYTECOMPILE |
367 ./${EXE_TARGET} -nd -batch -l ${srcdir}/../lisp/update-elc.el | 357 ${DUMPENV} ./temacs -batch -l ${srcdir}/../lisp/update-elc.el |
368 @if test ! -f $@ -o -f NOBYTECOMPILE; then touch $@; fi; \ | 358 @if test ! -f $@ -o -f NOBYTECOMPILE; then touch $@; fi; \ |
369 $(RM) NOBYTECOMPILE | 359 $(RM) NOBYTECOMPILE |
370 | 360 |
371 obj_src = $(objs:.o=.c) | 361 obj_src = $(objs:.o=.c) |
372 | 362 |
381 dynodump_deps = ../dynodump/dynodump.so | 371 dynodump_deps = ../dynodump/dynodump.so |
382 ../dynodump/dynodump.so: | 372 ../dynodump/dynodump.so: |
383 cd ../dynodump && $(RECURSIVE_MAKE) | 373 cd ../dynodump && $(RECURSIVE_MAKE) |
384 #endif /* DYNODUMP */ | 374 #endif /* DYNODUMP */ |
385 | 375 |
386 ${libsrc}DOC: ${EXE_TARGET} update-elc.stamp | 376 ${libsrc}DOC: temacs update-elc.stamp |
387 $(RM) ${libsrc}DOC; \ | 377 $(RM) ${libsrc}DOC; \ |
388 ${DUMPENV} ./${EXE_TARGET} -nd -batch -l ${srcdir}/../lisp/make-docfile.el -- \ | 378 ${DUMPENV} ./temacs -batch -l ${srcdir}/../lisp/make-docfile.el -- \ |
389 -o ${libsrc}DOC -d ${srcdir} -i ${libsrc}../site-packages \ | 379 -o ${libsrc}DOC -d ${srcdir} -i ${libsrc}../site-packages \ |
390 ${obj_src} ${mallocdocsrc} ${rallocdocsrc} | 380 ${obj_src} ${mallocdocsrc} ${rallocdocsrc} |
391 | 381 |
392 dump_elcs: dump-elcs | 382 dump_elcs: dump-elcs |
393 | 383 |
394 dump-elcs: ${EXE_TARGET} | 384 dump-elcs: temacs |
395 -${DUMPENV} ./${EXE_TARGET} -nd -batch -l ${srcdir}/../lisp/update-elc.el | 385 -${DUMPENV} ./temacs -batch -l ${srcdir}/../lisp/update-elc.el |
396 | 386 |
397 all-elc all-elcs: | 387 all-elc all-elcs: |
398 cd .. && $(RECURSIVE_MAKE) all-elc | 388 cd .. && $(RECURSIVE_MAKE) all-elc |
399 | 389 |
400 #ifdef I18N3 | 390 #ifdef I18N3 |
423 | 413 |
424 ${libsrc}make-po: | 414 ${libsrc}make-po: |
425 cd ${libsrc} && $(RECURSIVE_MAKE) make-po | 415 cd ${libsrc} && $(RECURSIVE_MAKE) make-po |
426 | 416 |
427 #endif /* I18N3 */ | 417 #endif /* I18N3 */ |
428 | |
429 ${libsrc}make-dump-id: | |
430 cd ${libsrc} && $(RECURSIVE_MAKE) make-dump-id | |
431 | 418 |
432 ${libsrc}make-docfile: | 419 ${libsrc}make-docfile: |
433 cd ${libsrc} && $(RECURSIVE_MAKE) make-docfile | 420 cd ${libsrc} && $(RECURSIVE_MAKE) make-docfile |
434 | 421 |
435 ## Lint Section | 422 ## Lint Section |
440 LINTFLAGS= -fd -m -s -u -v -x | 427 LINTFLAGS= -fd -m -s -u -v -x |
441 lint: $(LINTFILES) | 428 lint: $(LINTFILES) |
442 $(LINT.c) $(LINTFILES) | 429 $(LINT.c) $(LINTFILES) |
443 ## end of Lint Section | 430 ## end of Lint Section |
444 | 431 |
445 link_deps=\ | 432 temacs_deps=\ |
446 $(start_files) ${objs} ${otherobjs}\ | 433 $(start_files) ${objs} ${otherobjs}\ |
447 $(lwlib_deps) $(dynodump_deps) | 434 $(lwlib_deps) $(dynodump_deps) |
448 | 435 |
449 temacs_deps=\ | |
450 $(link_deps) $(ID_FILE) | |
451 | |
452 temacs_link_args=\ | 436 temacs_link_args=\ |
453 ${start_flags} ${ldflags} -I${srcdir} \ | 437 ${start_flags} ${ldflags}\ |
454 -o $@ ${start_files} ${objs} ${otherobjs} ${ID_FILE} ${LIBES} | 438 -o $@ ${start_files} ${objs} ${otherobjs} ${LIBES} |
455 | 439 |
456 ${EXE_TARGET}: $(temacs_deps) | 440 temacs: $(temacs_deps) |
457 $(LD) $(temacs_link_args) | 441 $(LD) $(temacs_link_args) |
458 | 442 |
459 dump-id.c: ${libsrc}make-dump-id ${link_deps} | |
460 ${libsrc}make-dump-id | |
461 | |
462 .PHONY : run-temacs | 443 .PHONY : run-temacs |
463 | 444 |
464 run-temacs: ${EXE_TARGET} | 445 run-temacs: temacs |
465 -${run_temacs} | 446 -${run_temacs} |
466 | 447 |
467 ## We have automated tests!! | 448 ## We have automated tests!! |
468 testdir = ${srcdir}/../tests/automated | 449 testdir = ${srcdir}/../tests/automated |
469 batch_test_emacs = -batch -l ${testdir}/test-harness.el -f batch-test-emacs ${testdir} | 450 batch_test_emacs = -batch -l ${testdir}/test-harness.el -f batch-test-emacs ${testdir} |
484 ## RTC is Sun WorkShop's Run Time Checking, integrated with dbx | 465 ## RTC is Sun WorkShop's Run Time Checking, integrated with dbx |
485 rtc_patch.o: | 466 rtc_patch.o: |
486 rtc_patch_area -o $@ | 467 rtc_patch_area -o $@ |
487 | 468 |
488 rtcmacs: $(temacs_deps) rtc_patch.o | 469 rtcmacs: $(temacs_deps) rtc_patch.o |
489 $(RM) ${EXE_TARGET}; $(RECURSIVE_MAKE) ${EXE_TARGET} RTC_patch_objs=rtc_patch.o | 470 $(RM) temacs; $(RECURSIVE_MAKE) temacs RTC_patch_objs=rtc_patch.o |
490 mv ${EXE_TARGET} rtcmacs | 471 mv temacs rtcmacs |
491 | 472 |
492 .PHONY: run-rtcmacs | 473 .PHONY: run-rtcmacs |
493 run-rtcmacs: rtcmacs | 474 run-rtcmacs: rtcmacs |
494 dbx -q -C -c \ | 475 dbx -q -C -c \ |
495 'dbxenv rtc_error_log_file_name /dev/fd/1; \ | 476 'dbxenv rtc_error_log_file_name /dev/fd/1; \ |
498 check -access; \ | 479 check -access; \ |
499 suppress rui; \ | 480 suppress rui; \ |
500 runargs -batch -l ${srcdir}/../lisp/loadup.el run-temacs -q; \ | 481 runargs -batch -l ${srcdir}/../lisp/loadup.el run-temacs -q; \ |
501 run' rtcmacs | 482 run' rtcmacs |
502 | 483 |
503 debug-temacs: ${EXE_TARGET} | |
504 -${debug_temacs} | |
505 | |
506 ## Purify, Quantify, PureCoverage are software quality products from | 484 ## Purify, Quantify, PureCoverage are software quality products from |
507 ## Rational, formerly Pure Atria, formerly Pure Software. | 485 ## Rational, formerly Pure Atria, formerly Pure Software. |
508 ## | 486 ## |
509 ## Purify | 487 ## Purify |
510 PURIFY_PROG = purify | 488 PURIFY_PROG = purify |
511 PURIFY_FLAGS =\ | 489 PURIFY_FLAGS = -chain-length=32 -ignore-signals=SIGPOLL -threads=yes \ |
512 #ifdef PDUMP | 490 -cache-dir=./purecache -always-use-cache-dir=yes -pointer-mask=0x0fffffff |
513 -search-mmaps=yes\ | |
514 #endif | |
515 -chain-length=32 -ignore-signals=SIGPOLL -threads=yes\ | |
516 -cache-dir=./purecache -always-use-cache-dir=yes | |
517 | |
518 PURIFY_LIBS = -lpthread | 491 PURIFY_LIBS = -lpthread |
519 puremacs: $(temacs_deps) | 492 puremacs: $(temacs_deps) |
520 $(PURIFY_PROG) $(PURIFY_FLAGS) $(LD) $(temacs_link_args) $(PURIFY_LIBS) | 493 $(PURIFY_PROG) $(PURIFY_FLAGS) $(LD) $(temacs_link_args) $(PURIFY_LIBS) |
521 cp $@ ${EXE_TARGET} | 494 cp $@ temacs |
522 | 495 |
523 ## Quantify | 496 ## Quantify |
524 #ifdef QUANTIFY | 497 #ifdef QUANTIFY |
525 QUANTIFY_PROG = quantify | 498 QUANTIFY_PROG = quantify |
526 QUANTIFY_HOME = `$(QUANTIFY_PROG) -print-home-dir` | 499 QUANTIFY_HOME = `$(QUANTIFY_PROG) -print-home-dir` |
528 cppflags += -I$(QUANTIFY_HOME) | 501 cppflags += -I$(QUANTIFY_HOME) |
529 temacs_link_args += $(QUANTIFY_HOME)/quantify_stubs.a | 502 temacs_link_args += $(QUANTIFY_HOME)/quantify_stubs.a |
530 | 503 |
531 quantmacs: $(temacs_deps) | 504 quantmacs: $(temacs_deps) |
532 $(QUANTIFY_PROG) $(QUANTIFY_FLAGS) $(LD) $(temacs_link_args) | 505 $(QUANTIFY_PROG) $(QUANTIFY_FLAGS) $(LD) $(temacs_link_args) |
533 cp $@ ${EXE_TARGET} | 506 cp $@ temacs |
534 #endif /* QUANTIFY */ | 507 #endif /* QUANTIFY */ |
535 | 508 |
536 | 509 |
537 PURECOV_PROG=purecov | 510 PURECOV_PROG=purecov |
538 covmacs: $(temacs_deps) | 511 covmacs: $(temacs_deps) |
685 $(RM) allocax.s allocatem.c | 658 $(RM) allocax.s allocatem.c |
686 #endif /* HAVE_ALLOCA */ | 659 #endif /* HAVE_ALLOCA */ |
687 #endif /* ! defined (C_ALLOCA) */ | 660 #endif /* ! defined (C_ALLOCA) */ |
688 | 661 |
689 #ifdef HAVE_NATIVE_SOUND | 662 #ifdef HAVE_NATIVE_SOUND |
690 sound_cflags=@sound_cflags@ | |
691 sunplay.o: ${srcdir}/sunplay.c | 663 sunplay.o: ${srcdir}/sunplay.c |
692 $(CC) -c $(sound_cflags) $(cflags) ${srcdir}/sunplay.c | 664 $(CC) -c $(sound_cflags) $(cflags) ${srcdir}/sunplay.c |
693 hpplay.o: ${srcdir}/hpplay.c | 665 hpplay.o: ${srcdir}/hpplay.c |
694 $(CC) -c -Demacs $(sound_cflags) $(cflags) ${srcdir}/hpplay.c | 666 $(CC) -c -Demacs $(sound_cflags) $(cflags) ${srcdir}/hpplay.c |
695 #endif /* HAVE_NATIVE_SOUND */ | 667 #endif /* HAVE_NATIVE_SOUND */ |
696 | |
697 xemacs_res.o: ${srcdir}/../nt/xemacs.rc | |
698 windres --include-dir ${srcdir}/../nt -i ${srcdir}/../nt/xemacs.rc -o $@ | |
699 | 668 |
700 ## System-specific programs to be made. | 669 ## System-specific programs to be made. |
701 ## ${other_files}, $(objects_system) and $(objects_machine) | 670 ## ${other_files}, $(objects_system) and $(objects_machine) |
702 ## select which of these should be compiled. */ | 671 ## select which of these should be compiled. */ |
703 | 672 |
757 ## Dependency processing using home-grown script, not makedepend | 726 ## Dependency processing using home-grown script, not makedepend |
758 .PHONY: depend | 727 .PHONY: depend |
759 FRC.depend: | 728 FRC.depend: |
760 depend: FRC.depend | 729 depend: FRC.depend |
761 cd ${srcdir} && $(RM) depend.tmp && \ | 730 cd ${srcdir} && $(RM) depend.tmp && \ |
762 perl ./make-src-depend > depend.tmp && \ | 731 perl make-src-depend > depend.tmp && \ |
763 if cmp -s depend depend.tmp; \ | 732 $(RM) depend && mv depend.tmp depend |
764 then $(RM) depend.tmp; \ | |
765 else $(RM) depend && mv depend.tmp depend; \ | |
766 fi |