Mercurial > hg > xemacs-beta
annotate src/Makefile.in.in @ 4952:19a72041c5ed
Mule-izing, various fixes related to char * arguments
-------------------- ChangeLog entries follow: --------------------
modules/ChangeLog addition:
2010-01-26 Ben Wing <ben@xemacs.org>
* postgresql/postgresql.c:
* postgresql/postgresql.c (CHECK_LIVE_CONNECTION):
* postgresql/postgresql.c (print_pgresult):
* postgresql/postgresql.c (Fpq_conn_defaults):
* postgresql/postgresql.c (Fpq_connectdb):
* postgresql/postgresql.c (Fpq_connect_start):
* postgresql/postgresql.c (Fpq_result_status):
* postgresql/postgresql.c (Fpq_res_status):
Mule-ize large parts of it.
2010-01-26 Ben Wing <ben@xemacs.org>
* ldap/eldap.c (print_ldap):
* ldap/eldap.c (allocate_ldap):
Use write_ascstring().
src/ChangeLog addition:
2010-01-26 Ben Wing <ben@xemacs.org>
* alloc.c:
* alloc.c (build_ascstring):
* alloc.c (build_msg_cistring):
* alloc.c (staticpro_1):
* alloc.c (staticpro_name):
* alloc.c (staticpro_nodump_1):
* alloc.c (staticpro_nodump_name):
* alloc.c (unstaticpro_nodump_1):
* alloc.c (mcpro_1):
* alloc.c (mcpro_name):
* alloc.c (object_memory_usage_stats):
* alloc.c (common_init_alloc_early):
* alloc.c (init_alloc_once_early):
* buffer.c (print_buffer):
* buffer.c (vars_of_buffer):
* buffer.c (common_init_complex_vars_of_buffer):
* buffer.c (init_initial_directory):
* bytecode.c (invalid_byte_code):
* bytecode.c (print_compiled_function):
* bytecode.c (mark_compiled_function):
* chartab.c (print_table_entry):
* chartab.c (print_char_table):
* config.h.in:
* console-gtk.c:
* console-gtk.c (gtk_device_to_console_connection):
* console-gtk.c (gtk_semi_canonicalize_console_connection):
* console-gtk.c (gtk_canonicalize_console_connection):
* console-gtk.c (gtk_semi_canonicalize_device_connection):
* console-gtk.c (gtk_canonicalize_device_connection):
* console-stream.c (stream_init_frame_1):
* console-stream.c (vars_of_console_stream):
* console-stream.c (init_console_stream):
* console-x.c (x_semi_canonicalize_console_connection):
* console-x.c (x_semi_canonicalize_device_connection):
* console-x.c (x_canonicalize_device_connection):
* console-x.h:
* data.c (eq_with_ebola_notice):
* data.c (Fsubr_interactive):
* data.c (Fnumber_to_string):
* data.c (digit_to_number):
* device-gtk.c (gtk_init_device):
* device-msw.c (print_devmode):
* device-x.c (x_event_name):
* dialog-msw.c (handle_directory_dialog_box):
* dialog-msw.c (handle_file_dialog_box):
* dialog-msw.c (vars_of_dialog_mswindows):
* doc.c (weird_doc):
* doc.c (Fsnarf_documentation):
* doc.c (vars_of_doc):
* dumper.c (pdump):
* dynarr.c:
* dynarr.c (Dynarr_realloc):
* editfns.c (Fuser_real_login_name):
* editfns.c (get_home_directory):
* elhash.c (print_hash_table_data):
* elhash.c (print_hash_table):
* emacs.c (main_1):
* emacs.c (vars_of_emacs):
* emodules.c:
* emodules.c (_emodules_list):
* emodules.c (Fload_module):
* emodules.c (Funload_module):
* emodules.c (Flist_modules):
* emodules.c (find_make_module):
* emodules.c (attempt_module_delete):
* emodules.c (emodules_load):
* emodules.c (emodules_doc_subr):
* emodules.c (emodules_doc_sym):
* emodules.c (syms_of_module):
* emodules.c (vars_of_module):
* emodules.h:
* eval.c (print_subr):
* eval.c (signal_call_debugger):
* eval.c (build_error_data):
* eval.c (signal_error):
* eval.c (maybe_signal_error):
* eval.c (signal_continuable_error):
* eval.c (maybe_signal_continuable_error):
* eval.c (signal_error_2):
* eval.c (maybe_signal_error_2):
* eval.c (signal_continuable_error_2):
* eval.c (maybe_signal_continuable_error_2):
* eval.c (signal_ferror):
* eval.c (maybe_signal_ferror):
* eval.c (signal_continuable_ferror):
* eval.c (maybe_signal_continuable_ferror):
* eval.c (signal_ferror_with_frob):
* eval.c (maybe_signal_ferror_with_frob):
* eval.c (signal_continuable_ferror_with_frob):
* eval.c (maybe_signal_continuable_ferror_with_frob):
* eval.c (syntax_error):
* eval.c (syntax_error_2):
* eval.c (maybe_syntax_error):
* eval.c (sferror):
* eval.c (sferror_2):
* eval.c (maybe_sferror):
* eval.c (invalid_argument):
* eval.c (invalid_argument_2):
* eval.c (maybe_invalid_argument):
* eval.c (invalid_constant):
* eval.c (invalid_constant_2):
* eval.c (maybe_invalid_constant):
* eval.c (invalid_operation):
* eval.c (invalid_operation_2):
* eval.c (maybe_invalid_operation):
* eval.c (invalid_change):
* eval.c (invalid_change_2):
* eval.c (maybe_invalid_change):
* eval.c (invalid_state):
* eval.c (invalid_state_2):
* eval.c (maybe_invalid_state):
* eval.c (wtaerror):
* eval.c (stack_overflow):
* eval.c (out_of_memory):
* eval.c (print_multiple_value):
* eval.c (issue_call_trapping_problems_warning):
* eval.c (backtrace_specials):
* eval.c (backtrace_unevalled_args):
* eval.c (Fbacktrace):
* eval.c (warn_when_safe):
* event-Xt.c (modwarn):
* event-Xt.c (modbarf):
* event-Xt.c (check_modifier):
* event-Xt.c (store_modifier):
* event-Xt.c (emacs_Xt_format_magic_event):
* event-Xt.c (describe_event):
* event-gtk.c (dragndrop_data_received):
* event-gtk.c (store_modifier):
* event-gtk.c (gtk_reset_modifier_mapping):
* event-msw.c (dde_eval_string):
* event-msw.c (Fdde_alloc_advise_item):
* event-msw.c (mswindows_dde_callback):
* event-msw.c (FROB):
* event-msw.c (emacs_mswindows_format_magic_event):
* event-stream.c (external_debugging_print_event):
* event-stream.c (execute_help_form):
* event-stream.c (vars_of_event_stream):
* events.c (print_event_1):
* events.c (print_event):
* events.c (event_equal):
* extents.c (print_extent_1):
* extents.c (print_extent):
* extents.c (vars_of_extents):
* faces.c (print_face):
* faces.c (complex_vars_of_faces):
* file-coding.c:
* file-coding.c (print_coding_system):
* file-coding.c (print_coding_system_in_print_method):
* file-coding.c (default_query_method):
* file-coding.c (find_coding_system):
* file-coding.c (make_coding_system_1):
* file-coding.c (chain_print):
* file-coding.c (undecided_print):
* file-coding.c (gzip_print):
* file-coding.c (vars_of_file_coding):
* file-coding.c (complex_vars_of_file_coding):
* fileio.c:
* fileio.c (report_file_type_error):
* fileio.c (report_error_with_errno):
* fileio.c (report_file_error):
* fileio.c (barf_or_query_if_file_exists):
* fileio.c (vars_of_fileio):
* floatfns.c (matherr):
* fns.c (print_bit_vector):
* fns.c (Fmapconcat):
* fns.c (add_suffix_to_symbol):
* fns.c (add_prefix_to_symbol):
* frame-gtk.c:
* frame-gtk.c (Fgtk_window_id):
* frame-x.c (def):
* frame-x.c (x_cde_transfer_callback):
* frame.c:
* frame.c (Fmake_frame):
* gc.c (show_gc_cursor_and_message):
* gc.c (vars_of_gc):
* glyphs-eimage.c (png_instantiate):
* glyphs-eimage.c (tiff_instantiate):
* glyphs-gtk.c (gtk_print_image_instance):
* glyphs-msw.c (mswindows_print_image_instance):
* glyphs-x.c (x_print_image_instance):
* glyphs-x.c (update_widget_face):
* glyphs.c (make_string_from_file):
* glyphs.c (print_image_instance):
* glyphs.c (signal_image_error):
* glyphs.c (signal_image_error_2):
* glyphs.c (signal_double_image_error):
* glyphs.c (signal_double_image_error_2):
* glyphs.c (xbm_mask_file_munging):
* glyphs.c (pixmap_to_lisp_data):
* glyphs.h:
* gui.c (gui_item_display_flush_left):
* hpplay.c (player_error_internal):
* hpplay.c (myHandler):
* intl-win32.c:
* intl-win32.c (langcode_to_lang):
* intl-win32.c (sublangcode_to_lang):
* intl-win32.c (Fmswindows_get_locale_info):
* intl-win32.c (lcid_to_locale_mule_or_no):
* intl-win32.c (mswindows_multibyte_to_unicode_print):
* intl-win32.c (complex_vars_of_intl_win32):
* keymap.c:
* keymap.c (print_keymap):
* keymap.c (ensure_meta_prefix_char_keymapp):
* keymap.c (Fkey_description):
* keymap.c (Ftext_char_description):
* lisp.h:
* lisp.h (struct):
* lisp.h (DECLARE_INLINE_HEADER):
* lread.c (Fload_internal):
* lread.c (locate_file):
* lread.c (read_escape):
* lread.c (read_raw_string):
* lread.c (read1):
* lread.c (read_list):
* lread.c (read_compiled_function):
* lread.c (init_lread):
* lrecord.h:
* marker.c (print_marker):
* marker.c (marker_equal):
* menubar-msw.c (displayable_menu_item):
* menubar-x.c (command_builder_operate_menu_accelerator):
* menubar.c (vars_of_menubar):
* minibuf.c (reinit_complex_vars_of_minibuf):
* minibuf.c (complex_vars_of_minibuf):
* mule-charset.c (Fmake_charset):
* mule-charset.c (complex_vars_of_mule_charset):
* mule-coding.c (iso2022_print):
* mule-coding.c (fixed_width_query):
* number.c (bignum_print):
* number.c (ratio_print):
* number.c (bigfloat_print):
* number.c (bigfloat_finalize):
* objects-msw.c:
* objects-msw.c (mswindows_color_to_string):
* objects-msw.c (mswindows_color_list):
* objects-tty.c:
* objects-tty.c (tty_font_list):
* objects-tty.c (tty_find_charset_font):
* objects-xlike-inc.c (xft_find_charset_font):
* objects-xlike-inc.c (endif):
* print.c:
* print.c (write_istring):
* print.c (write_ascstring):
* print.c (Fterpri):
* print.c (Fprint):
* print.c (print_error_message):
* print.c (print_vector_internal):
* print.c (print_cons):
* print.c (print_string):
* print.c (printing_unreadable_object):
* print.c (print_internal):
* print.c (print_float):
* print.c (print_symbol):
* process-nt.c (mswindows_report_winsock_error):
* process-nt.c (nt_canonicalize_host_name):
* process-unix.c (unix_canonicalize_host_name):
* process.c (print_process):
* process.c (report_process_error):
* process.c (report_network_error):
* process.c (make_process_internal):
* process.c (Fstart_process_internal):
* process.c (status_message):
* process.c (putenv_internal):
* process.c (vars_of_process):
* process.h:
* profile.c (vars_of_profile):
* rangetab.c (print_range_table):
* realpath.c (vars_of_realpath):
* redisplay.c (vars_of_redisplay):
* search.c (wordify):
* search.c (Freplace_match):
* sheap.c (sheap_adjust_h):
* sound.c (report_sound_error):
* sound.c (Fplay_sound_file):
* specifier.c (print_specifier):
* symbols.c (Fsubr_name):
* symbols.c (do_symval_forwarding):
* symbols.c (set_default_buffer_slot_variable):
* symbols.c (set_default_console_slot_variable):
* symbols.c (store_symval_forwarding):
* symbols.c (default_value):
* symbols.c (defsymbol_massage_name_1):
* symbols.c (defsymbol_massage_name_nodump):
* symbols.c (defsymbol_massage_name):
* symbols.c (defsymbol_massage_multiword_predicate_nodump):
* symbols.c (defsymbol_massage_multiword_predicate):
* symbols.c (defsymbol_nodump):
* symbols.c (defsymbol):
* symbols.c (defkeyword):
* symbols.c (defkeyword_massage_name):
* symbols.c (check_module_subr):
* symbols.c (deferror_1):
* symbols.c (deferror):
* symbols.c (deferror_massage_name):
* symbols.c (deferror_massage_name_and_message):
* symbols.c (defvar_magic):
* symeval.h:
* symeval.h (DEFVAR_SYMVAL_FWD):
* sysdep.c:
* sysdep.c (init_system_name):
* sysdll.c:
* sysdll.c (MAYBE_PREPEND_UNDERSCORE):
* sysdll.c (dll_function):
* sysdll.c (dll_variable):
* sysdll.c (dll_error):
* sysdll.c (dll_open):
* sysdll.c (dll_close):
* sysdll.c (image_for_address):
* sysdll.c (my_find_image):
* sysdll.c (search_linked_libs):
* sysdll.h:
* sysfile.h:
* sysfile.h (DEFAULT_DIRECTORY_FALLBACK):
* syswindows.h:
* tests.c (DFC_CHECK_LENGTH):
* tests.c (DFC_CHECK_CONTENT):
* tests.c (Ftest_hash_tables):
* text.c (vars_of_text):
* text.h:
* tooltalk.c (tt_opnum_string):
* tooltalk.c (tt_message_arg_ival_string):
* tooltalk.c (Ftooltalk_default_procid):
* tooltalk.c (Ftooltalk_default_session):
* tooltalk.c (init_tooltalk):
* tooltalk.c (vars_of_tooltalk):
* ui-gtk.c (Fdll_load):
* ui-gtk.c (type_to_marshaller_type):
* ui-gtk.c (Fgtk_import_function_internal):
* ui-gtk.c (emacs_gtk_object_printer):
* ui-gtk.c (emacs_gtk_boxed_printer):
* unicode.c (unicode_to_ichar):
* unicode.c (unicode_print):
* unicode.c (unicode_query):
* unicode.c (vars_of_unicode):
* unicode.c (complex_vars_of_unicode):
* win32.c:
* win32.c (mswindows_report_process_error):
* window.c (print_window):
* xemacs.def.in.in:
BASIC IDEA: Further fixing up uses of char * and CIbyte *
to reflect their actual semantics; Mule-izing some code;
redoing of the not-yet-working code to handle message translation.
Clean up code to handle message-translation (not yet working).
Create separate versions of build_msg_string() for working with
Ibyte *, CIbyte *, and Ascbyte * arguments. Assert that Ascbyte *
arguments are pure-ASCII. Make build_msg_string() be the same
as build_msg_ascstring(). Create same three versions of GETTEXT()
and DEFER_GETTEXT(). Also create build_defer_string() and
variants for the equivalent of DEFER_GETTEXT() when building a
string. Remove old CGETTEXT(). Clean up code where GETTEXT(),
DEFER_GETTEXT(), build_msg_string(), etc. was being called and
introduce some new calls to build_msg_string(), etc. Remove
GETTEXT() from calls to weird_doc() -- we assume that the
message snarfer knows about weird_doc(). Remove uses of
DEFER_GETTEXT() from error messages in sysdep.c and instead use
special comments /* @@@begin-snarf@@@ */ and /* @@@end-snarf@@@ */
that the message snarfer presumably knows about.
Create build_ascstring() and use it in many instances in place
of build_string(). The purpose of having Ascbyte * variants is
to make the code more self-documenting in terms of what sort of
semantics is expected for char * strings. In fact in the process
of looking for uses of build_string(), much improperly Mule-ized
was discovered.
Mule-ize a lot of code as described in previous paragraph,
e.g. in sysdep.c.
Make the error functions take Ascbyte * strings and fix up a
couple of places where non-pure-ASCII strings were being passed in
(file-coding.c, mule-coding.c, unicode.c). (It's debatable whether
we really need to make the error functions work this way. It
helps catch places where code is written in a way that message
translation won't work, but we may well never implement message
translation.)
Make staticpro() and friends take Ascbyte * strings instead of
raw char * strings. Create a const_Ascbyte_ptr dynarr type
to describe what's held by staticpro_names[] and friends,
create pdump descriptions for const_Ascbyte_ptr dynarrs, and
use them in place of specially-crafted staticpro descriptions.
Mule-ize certain other functions (e.g. x_event_name) by correcting
raw use of char * to Ascbyte *, Rawbyte * or another such type,
and raw use of char[] buffers to another type (usually Ascbyte[]).
Change many uses of write_c_string() to write_msg_string(),
write_ascstring(), etc.
Mule-ize emodules.c, emodules.h, sysdll.h.
Fix some un-Mule-ized code in intl-win32.c.
A comment in event-Xt.c and the limitations of the message
snarfer (make-msgfile or whatever) is presumably incorrect --
it should be smart enough to handle function calls spread over
more than one line. Clean up code in event-Xt.c that was
written awkwardly for this reason.
In config.h.in, instead of NEED_ERROR_CHECK_TYPES_INLINES,
create a more general XEMACS_DEFS_NEEDS_INLINE_DECLS to
indicate when inlined functions need to be declared in
xemacs.defs.in.in, and make use of it in xemacs.defs.in.in.
We need to do this because postgresql.c now calls qxestrdup(),
which is an inline function.
Make nconc2() and other such functions MODULE_API and put
them in xemacs.defs.in.in since postgresql.c now uses them.
Clean up indentation in lread.c and a few other places.
In text.h, document ASSERT_ASCTEXT_ASCII() and
ASSERT_ASCTEXT_ASCII_LEN(), group together the stand-in
encodings and add some more for DLL symbols, function and
variable names, etc.
author | Ben Wing <ben@xemacs.org> |
---|---|
date | Tue, 26 Jan 2010 23:22:30 -0600 |
parents | 4ce4d519bdd8 |
children | e813cf16c015 |
rev | line source |
---|---|
428 | 1 ## Makefile for src subdirectory in XEmacs. |
2 ## Copyright (C) 1985, 1987, 1988, 1993, 1994 Free Software Foundation, Inc. | |
3 ## Copyright (C) 1994, 1995 Board of Trustees, University of Illinois | |
4 ## Copyright (C) 1996, 1997 Sun Microsystems, Inc. | |
5 ## Copyright (C) 1998, 1999 J. Kean Johnston. | |
4939
349f01075eb7
build fixes for gdbinit and config-dependent elc files
Ben Wing <ben@xemacs.org>
parents:
4872
diff
changeset
|
6 ## Copyright (C) 2001, 2002, 2003, 2005, 2010 Ben Wing. |
428 | 7 |
8 ## This file is part of XEmacs. | |
9 | |
10 ## XEmacs is free software; you can redistribute it and/or modify it | |
11 ## under the terms of the GNU General Public License as published by the | |
12 ## Free Software Foundation; either version 2, or (at your option) any | |
13 ## later version. | |
14 | |
15 ## XEmacs is distributed in the hope that it will be useful, but WITHOUT | |
16 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
17 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
18 ## for more details. | |
19 | |
20 ## You should have received a copy of the GNU General Public License | |
21 ## along with XEmacs; see the file COPYING. If not, write to | |
22 ## the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
23 ## Boston, MA 02111-1307, USA. | |
24 | |
25 ## Synched up with: Not synched with FSF. | |
26 | |
1315 | 27 .PHONY: all |
28 all: build-the-mofo | |
29 | |
442 | 30 #define NOT_C_CODE |
31 #include "config.h" | |
32 | |
1330 | 33 ## Here are the things that we expect ../configure to edit. |
428 | 34 |
35 #ifdef USE_GNU_MAKE | |
2427 | 36 RECURSIVE_MAKE_ARGS= |
428 | 37 #else |
38 @SET_MAKE@ | |
2427 | 39 RECURSIVE_MAKE_ARGS=@RECURSIVE_MAKE_ARGS@ |
428 | 40 #endif |
41 | |
1330 | 42 PROGNAME=@PROGNAME@ |
428 | 43 prefix=@prefix@ |
1330 | 44 SRC=@srcdir@ |
428 | 45 blddir=@blddir@ |
46 version=@version@ | |
47 CC=@XEMACS_CC@ | |
48 CPP=@CPP@ | |
1889 | 49 CFLAGS=@XE_CFLAGS@ |
428 | 50 CPPFLAGS=@CPPFLAGS@ |
51 LDFLAGS=@LDFLAGS@ | |
52 | |
53 c_switch_all=@c_switch_all@ | |
54 ld_switch_all=@ld_switch_all@ | |
55 ld_libs_all=@ld_libs_all@ | |
56 ld_dynamic_link_flags=@ld_dynamic_link_flags@ | |
57 | |
58 extra_objs=@extra_objs@ | |
59 LN_S=@LN_S@ | |
60 | |
61 ld_switch_shared=@ld_switch_shared@ | |
62 start_files=@start_files@ | |
63 start_flags=@start_flags@ | |
64 LD=@ld@ | |
65 lib_gcc=@lib_gcc@ | |
66 ##libmcheck=@libmcheck@ | |
67 | |
68 | |
69 ## With the traditional VPATH setting, it is not possible to | |
70 ## simultaneously compile in-place and in another directory. The | |
71 ## mistaken definition is that *all* dependencies are searched for in | |
72 ## the VPATH directory, rather than just the dependencies that are not | |
73 ## themselves targets. Thus, if there is an up-to-date .o file in the | |
74 ## in-place location, it will not get recompiled in the not-in-place | |
75 ## location. | |
76 | |
77 ## The GNU Make "vpath" directive continues this tradition, but at | |
78 ## least lets you restrict the classes of files that it applies to. | |
79 ## This allows us to kludge around the problem. | |
80 | |
81 #ifdef USE_GNU_MAKE | |
82 vpath %.c @srcdir@ | |
83 vpath %.h @srcdir@ | |
84 ## now list files that should NOT be searched in the srcdir. | |
85 ## This includes any .c or .h built from something else | |
86 ## (e.g. a .in file). | |
87 vpath config.h | |
88 vpath paths.h | |
89 vpath Emacs.ad.h | |
90 vpath sheap-adjust.h | |
442 | 91 vpath dump-id.c |
428 | 92 #else |
93 VPATH=@srcdir@ | |
94 #endif | |
95 | |
1330 | 96 SHELL=/bin/sh |
428 | 97 RM = rm -f |
98 | |
1330 | 99 LISP = $(SRC)/../lisp |
100 ETC = $(SRC)/../etc | |
101 SRCMODULES = $(SRC)/../modules | |
102 LIB_SRC = ../lib-src | |
103 BLDSRC = . | |
104 BLDMODULES = ../modules | |
105 LWLIB_SRCDIR = $(SRC)/../lwlib | |
428 | 106 |
771 | 107 ######################################################################### |
1330 | 108 ## Definitions of object files and other dependencies ## |
109 ######################################################################### | |
771 | 110 |
1315 | 111 ## NOTE: Some of the object files are specified in this file, and others in |
112 ## configure.in. The general rule is that they be specified here whenever | |
113 ## possible -- in practice, that means that they have clear dependencies on | |
114 ## configure defines. They should be in configure.in when there is no | |
115 ## configure define or when there is extremely hairy code to determine | |
116 ## which files are needed (e.g. native sound support) and it would be | |
117 ## pointless to duplicate that code. | |
771 | 118 |
793 | 119 gui_objs= gui.o |
771 | 120 #ifdef HAVE_MENUBARS |
121 gui_objs += menubar.o | |
122 #endif | |
123 #ifdef HAVE_SCROLLBARS | |
124 gui_objs += scrollbar.o | |
125 #endif | |
126 #ifdef HAVE_DIALOGS | |
127 gui_objs += dialog.o | |
128 #endif | |
129 #ifdef HAVE_TOOLBARS | |
130 gui_objs += toolbar.o | |
131 #endif | |
132 | |
133 #ifdef HAVE_X_WINDOWS | |
134 x_objs=console-x.o device-x.o event-Xt.o frame-x.o \ | |
135 glyphs-x.o objects-x.o redisplay-x.o select-x.o xgccache.o intl-x.o | |
3094 | 136 #ifdef USE_XFT |
3354 | 137 x_objs += font-mgr.o |
3094 | 138 #endif |
771 | 139 x_gui_objs=$(gui_objs:.o=-x.o) |
140 #ifdef HAVE_TOOLBARS | |
141 x_gui_objs += toolbar-common.o | |
142 #endif | |
143 #endif | |
144 | |
145 #ifdef HAVE_MS_WINDOWS | |
146 mswindows_objs=console-msw.o device-msw.o event-msw.o frame-msw.o \ | |
147 objects-msw.o select-msw.o redisplay-msw.o glyphs-msw.o | |
148 mswindows_gui_objs=$(gui_objs:.o=-msw.o) | |
149 #endif | |
150 | |
151 #ifdef HAVE_TTY | |
152 tty_objs=console-tty.o device-tty.o event-tty.o frame-tty.o objects-tty.o \ | |
153 redisplay-tty.o cm.o | |
154 #endif | |
155 | |
156 #ifdef HAVE_GTK | |
157 gtk_objs=console-gtk.o device-gtk.o event-gtk.o frame-gtk.o \ | |
158 objects-gtk.o redisplay-gtk.o glyphs-gtk.o select-gtk.o gccache-gtk.o \ | |
159 gtk-xemacs.o ui-gtk.o | |
160 gtk_gui_objs=$(gui_objs:.o=-gtk.o) | |
161 #ifdef HAVE_TOOLBARS | |
162 gtk_gui_objs += toolbar-common.o | |
163 #endif | |
164 #endif | |
165 | |
166 #ifdef HAVE_BALLOON_HELP | |
167 balloon_help_objs=balloon_help.o balloon-x.o | |
168 #endif | |
169 | |
170 #ifdef CLASH_DETECTION | |
171 clash_detection_objs=filelock.o | |
172 #endif | |
173 | |
174 #ifdef HAVE_DATABASE | |
175 database_objs=database.o | |
176 #endif | |
177 | |
178 #ifdef DEBUG_XEMACS | |
179 debug_objs=debug.o tests.o | |
180 #endif | |
181 | |
182 #ifdef HAVE_UNIXOID_EVENT_LOOP | |
183 event_unixoid_objs=event-unixoid.o | |
184 #endif | |
185 | |
186 #ifdef HAVE_GPM | |
187 gpm_objs=gpmevent.o | |
188 #endif | |
189 | |
996 | 190 #if defined(HAVE_LDAP) && !defined(HAVE_SHLIB) |
1330 | 191 ldap_objs=$(BLDMODULES)/ldap/eldap.o |
771 | 192 #endif |
193 | |
194 #ifdef MULE | |
195 mule_objs=mule-ccl.o mule-charset.o mule-coding.o | |
196 #endif | |
197 | |
2973 | 198 #if defined(HAVE_CANNA) && !defined(HAVE_SHLIB) |
3010 | 199 mule_canna_objs=$(BLDMODULES)/canna/canna_api.o |
771 | 200 #endif |
201 | |
202 #ifdef HAVE_WNN | |
203 mule_wnn_objs=mule-wnnfns.o | |
204 #endif | |
205 | |
1983 | 206 #ifdef WITH_GMP |
207 number_objs=number-gmp.o number.o | |
208 #endif | |
209 #ifdef WITH_MP | |
210 number_objs=number-mp.o number.o | |
211 #endif | |
212 | |
996 | 213 #if defined(HAVE_POSTGRESQL) && !defined(HAVE_SHLIB) |
1330 | 214 postgresql_objs=$(BLDMODULES)/postgresql/postgresql.o |
771 | 215 #endif |
216 | |
217 #ifdef HAVE_WIN32_PROCESSES | |
218 process_objs=process-nt.o | |
219 #elif defined (HAVE_UNIX_PROCESSES) | |
220 process_objs=process-unix.o | |
221 #endif | |
222 | |
223 #ifdef HAVE_SETITIMER | |
224 profile_objs=profile.o | |
225 #endif | |
226 | |
442 | 227 #if defined (HEAP_IN_DATA) && !defined (PDUMP) |
228 sheap_objs=sheap.o | |
229 #endif | |
230 | |
771 | 231 #ifdef HAVE_SHLIB |
1750 | 232 shlib_objs=sysdll.o |
4872
9873ea104ef6
Fix Cygwin module builds when --with-msw=no
Ben Wing <ben@xemacs.org>
parents:
4848
diff
changeset
|
233 # ifdef WIN32_ANY |
1632 | 234 export_lib=xemacs-export.o |
235 xemacs-export.o: xemacs.def | |
236 dlltool -D xemacs-${version}.exe -d $< -l xemacs-import.a -e $@ | |
237 # endif | |
771 | 238 #endif |
239 | |
240 #ifdef SUNPRO | |
241 sunpro_objs=sunpro.o | |
428 | 242 #endif |
243 | |
771 | 244 #ifdef TOOLTALK |
245 tooltalk_objs=tooltalk.o | |
246 #endif | |
247 | |
4872
9873ea104ef6
Fix Cygwin module builds when --with-msw=no
Ben Wing <ben@xemacs.org>
parents:
4848
diff
changeset
|
248 #ifdef WIN32_ANY |
771 | 249 win32_objs=win32.o intl-win32.o intl-auto-encap-win32.o intl-encap-win32.o \ |
250 xemacs_res.o | |
611 | 251 #endif |
252 | |
3092 | 253 #ifdef NEW_GC |
3263 | 254 new_gc_objs=mc-alloc.o vdb.o |
3092 | 255 # if defined (WIN32_ANY) || defined (VDB_WIN32) |
256 vdb_objs=vdb-win32.o | |
257 # elif defined (VDB_MACH) | |
258 vdb_objs=vdb-mach.o | |
259 # elif defined (VDB_POSIX) | |
260 vdb_objs=vdb-posix.o | |
261 # else /* VDB_FAKE */ | |
262 vdb_objs=vdb-fake.o | |
263 # endif | |
264 #endif /* NEW_GC */ | |
265 | |
428 | 266 ## lastfile must follow all files whose initialized data areas should |
267 ## be dumped as pure by dump-emacs. | |
268 | |
269 ## NOTE: The last line cannot be all macros, because make will barf | |
270 ## if they all come out null. | |
271 | |
272 objs=\ | |
851 | 273 abbrev.o alloc.o alloca.o \ |
274 $(balloon_help_objs) blocktype.o buffer.o bytecode.o \ | |
853 | 275 callint.o casefiddle.o casetab.o chartab.o \ |
851 | 276 $(clash_detection_objs) cmdloop.o cmds.o $(coding_system_objs) console.o \ |
277 console-stream.o\ | |
771 | 278 data.o $(database_objs) $(debug_objs) device.o dired.o doc.o doprnt.o\ |
851 | 279 dynarr.o \ |
1750 | 280 editfns.o elhash.o emacs.o emodules.o eval.o events.o\ |
771 | 281 event-stream.o $(event_unixoid_objs) $(extra_objs) extents.o\ |
282 faces.o file-coding.o fileio.o $(LOCK_OBJ) filemode.o floatfns.o fns.o \ | |
283 font-lock.o frame.o\ | |
4708
1cecc3e9f0a0
Use giflib or libungif to provide GIF support, instead of using internal
Jerry James <james@xemacs.org>
parents:
3986
diff
changeset
|
284 gc.o general.o glyphs.o glyphs-eimage.o glyphs-shared.o\ |
793 | 285 glyphs-widget.o $(gpm_objs) $(gtk_objs) $(gtk_gui_objs) $(gui_objs) \ |
286 gutter.o\ | |
771 | 287 hash.o imgproc.o indent.o insdel.o intl.o\ |
288 keymap.o $(RTC_patch_objs) line-number.o $(ldap_objs) lread.o lstream.o\ | |
3263 | 289 $(new_gc_objs) $(vdb_objs) \ |
771 | 290 macros.o marker.o md5.o minibuf.o $(mswindows_objs) $(mswindows_gui_objs)\ |
1983 | 291 $(mule_objs) $(mule_canna_objs) $(mule_wnn_objs) $(number_objs) objects.o\ |
292 opaque.o $(postgresql_objs) print.o process.o $(process_objs) $(profile_objs)\ | |
771 | 293 rangetab.o realpath.o redisplay.o redisplay-output.o regex.o\ |
294 search.o select.o $(sheap_objs) $(shlib_objs) signal.o sound.o\ | |
295 specifier.o strftime.o $(sunpro_objs) symbols.o syntax.o sysdep.o\ | |
296 text.o $(tooltalk_objs) $(tty_objs) undo.o unicode.o $(x_objs) $(x_gui_objs)\ | |
297 widget.o window.o $(win32_objs) | |
428 | 298 |
299 obj_rtl = $(objs:.o=.c.rtl) | |
300 | |
301 #ifdef REL_ALLOC | |
302 rallocdocsrc = ralloc.c | |
303 rallocobjs = ralloc.o | |
304 #endif | |
305 | |
306 malloclib = $(libmcheck) | |
307 #ifndef SYSTEM_MALLOC | |
4735
80d74fed5399
Remove "old" GNU malloc in src/malloc.c, and all references to it. Drop the
Jerry James <james@xemacs.org>
parents:
4708
diff
changeset
|
308 # ifdef ERROR_CHECK_MALLOC |
80d74fed5399
Remove "old" GNU malloc in src/malloc.c, and all references to it. Drop the
Jerry James <james@xemacs.org>
parents:
4708
diff
changeset
|
309 # ifdef DOUG_LEA_MALLOC |
428 | 310 mallocobjs = free-hook.o vm-limit.o |
4735
80d74fed5399
Remove "old" GNU malloc in src/malloc.c, and all references to it. Drop the
Jerry James <james@xemacs.org>
parents:
4708
diff
changeset
|
311 # else |
428 | 312 mallocobjs = gmalloc.o free-hook.o vm-limit.o |
4735
80d74fed5399
Remove "old" GNU malloc in src/malloc.c, and all references to it. Drop the
Jerry James <james@xemacs.org>
parents:
4708
diff
changeset
|
313 # endif |
428 | 314 mallocdocsrc = free-hook.c |
4735
80d74fed5399
Remove "old" GNU malloc in src/malloc.c, and all references to it. Drop the
Jerry James <james@xemacs.org>
parents:
4708
diff
changeset
|
315 # else /* GNU malloc, sans error checking */ |
80d74fed5399
Remove "old" GNU malloc in src/malloc.c, and all references to it. Drop the
Jerry James <james@xemacs.org>
parents:
4708
diff
changeset
|
316 # ifdef DOUG_LEA_MALLOC |
428 | 317 mallocobjs = vm-limit.o |
4735
80d74fed5399
Remove "old" GNU malloc in src/malloc.c, and all references to it. Drop the
Jerry James <james@xemacs.org>
parents:
4708
diff
changeset
|
318 # else |
428 | 319 mallocobjs = gmalloc.o vm-limit.o |
4735
80d74fed5399
Remove "old" GNU malloc in src/malloc.c, and all references to it. Drop the
Jerry James <james@xemacs.org>
parents:
4708
diff
changeset
|
320 # endif |
428 | 321 mallocdocsrc = |
4735
80d74fed5399
Remove "old" GNU malloc in src/malloc.c, and all references to it. Drop the
Jerry James <james@xemacs.org>
parents:
4708
diff
changeset
|
322 # endif /* ERROR_CHECK_MALLOC */ |
428 | 323 #else /* SYSTEM_MALLOC */ |
324 mallocobjs = | |
325 mallocdocsrc = | |
4735
80d74fed5399
Remove "old" GNU malloc in src/malloc.c, and all references to it. Drop the
Jerry James <james@xemacs.org>
parents:
4708
diff
changeset
|
326 # ifdef USE_DEBUG_MALLOC |
428 | 327 malloclib = -ldmalloc |
4735
80d74fed5399
Remove "old" GNU malloc in src/malloc.c, and all references to it. Drop the
Jerry James <james@xemacs.org>
parents:
4708
diff
changeset
|
328 # endif /* USE_DEBUG_MALLOC */ |
428 | 329 #endif /* SYSTEM_MALLOC */ |
330 | |
331 #ifdef HAVE_X_WINDOWS | |
332 | |
1330 | 333 lwlib_lib = ../lwlib/liblw.a |
334 | |
428 | 335 # ifdef EXTERNAL_WIDGET |
336 external_widget_objs = ExternalShell.o extw-Xt-nonshared.o extw-Xlib-nonshared.o | |
337 | |
338 # ifdef LWLIB_USES_MOTIF | |
339 # ifdef EXTW_LINK | |
340 motif_other_files = libextcli_Xm.a libextcli_Xm.so.1 | |
341 # else | |
342 motif_other_files = libextcli_Xm.a | |
343 # endif | |
344 #endif /* LWLIB_USES_MOTIF */ | |
345 | |
346 # ifdef EXTW_LINK | |
347 shared_other_files = libextcli_Xt.so.1 libextcli_Xlib.so.1 | |
348 # endif | |
349 other_files=\ | |
1330 | 350 $(motif_other_files)\ |
428 | 351 libextcli_Xt.a libextcli_Xlib.a\ |
1330 | 352 $(shared_other_files) |
428 | 353 |
354 # endif /* EXTERNAL_WIDGET */ | |
355 | |
4790
bc4f2511bbea
Remove support for the OffiX drag-and-drop protocol. See xemacs-patches
Jerry James <james@xemacs.org>
parents:
4759
diff
changeset
|
356 # if defined (HAVE_CDE) |
428 | 357 dnd_objs = @dnd_objs@ |
4790
bc4f2511bbea
Remove support for the OffiX drag-and-drop protocol. See xemacs-patches
Jerry James <james@xemacs.org>
parents:
4759
diff
changeset
|
358 # endif /* HAVE_CDE */ |
428 | 359 |
360 X11_objs = EmacsFrame.o EmacsShell.o TopLevelEmacsShell.o TransientEmacsShell.o EmacsManager.o $(external_widget_objs) $(dnd_objs) | |
361 #endif /* HAVE_X_WINDOWS */ | |
362 | |
363 ## define otherobjs as list of object files that make-docfile | |
364 ## should not be told about. | |
1632 | 365 otherobjs = lastfile.o $(mallocobjs) $(rallocobjs) $(X11_objs) $(export_lib) |
428 | 366 otherrtls = $(otherobjs:.o=.c.rtl) |
367 othersrcs = $(otherobjs:.o=.c) | |
368 | |
1330 | 369 LIBES = $(lwlib_lib) $(malloclib) $(ld_libs_all) $(lib_gcc) |
428 | 370 |
371 #ifdef I18N3 | |
1330 | 372 mo_file = $(LIB_SRC)/emacs.mo |
428 | 373 #endif |
374 | |
1315 | 375 ######################################################################### |
1330 | 376 ## Implicit rules ## |
377 ######################################################################### | |
1315 | 378 |
1330 | 379 ## For performance and consistency, no built-in rules. |
380 .SUFFIXES: | |
381 .SUFFIXES: .c .h .o .i .s .dep | |
382 | |
383 ## -Demacs is needed to make some files produce the correct version | |
384 ## for use in Emacs. | |
385 | |
2958 | 386 cppflags = $(CPPFLAGS) -Demacs -I. -I$(SRC) $(c_switch_all) |
1330 | 387 cflags = $(CFLAGS) $(cppflags) |
2502 | 388 #if defined (WIN32_NATIVE) |
1330 | 389 ldflags = $(LDFLAGS) -mwindows -e _mainCRTStartup $(ld_switch_all) $(ld_dynamic_link_flags) |
390 #else | |
391 ldflags = $(LDFLAGS) $(ld_switch_all) $(ld_dynamic_link_flags) | |
392 #endif | |
393 | |
394 #ifdef SOLARIS2 | |
395 %.o : %.c | |
396 #else | |
397 .c.o: | |
398 #endif | |
399 $(CC) -c $(cflags) $< | |
1315 | 400 |
1330 | 401 ## Create preprocessor output (debugging purposes only) |
402 .c.i: | |
403 #ifdef __GNUC__ | |
404 $(CC) -E $(cppflags) -o $@ $< | |
405 #else /* works on Solaris; what about other systems? */ | |
406 $(CC) -P $(cppflags) $< | |
407 #endif /* compiler */ | |
408 | |
409 ## Create assembler output (debugging purposes only) | |
410 .c.s: | |
411 $(CC) -S -c $(cflags) $< | |
412 | |
413 ## Create RTL files | |
414 %.c.rtl : %.c | |
415 $(CC) -dr -c $(cflags) $< | |
416 | |
417 ######################################################################### | |
418 ## Primary rebuilding process ## | |
419 ######################################################################### | |
420 | |
421 #ifdef PDUMP | |
422 DUMP_TARGET = $(PROGNAME).dmp | |
423 RAW_EXE = $(PROGNAME) | |
424 DUMP_ID = dump-id.o | |
2720 | 425 #if !defined(WIN32_NATIVE) && defined(DUMP_IN_EXEC) |
2015 | 426 DUMP_TARGET = $(PROGNAME) |
2388 | 427 #ifndef CYGWIN |
2015 | 428 RAW_EXE = temacs |
2388 | 429 #else |
430 RAW_EXE = temacs.exe | |
431 #endif | |
2015 | 432 #endif |
1330 | 433 #else |
434 DUMP_TARGET = $(PROGNAME) | |
435 RAW_EXE = temacs | |
436 #endif | |
437 | |
438 DO_TEMACS = $(DUMPENV) ./$(RAW_EXE) | |
439 DO_XEMACS = ./$(PROGNAME) | |
1315 | 440 |
441 BATCH = -no-packages -batch | |
442 BATCH_PACKAGES = -vanilla -batch | |
443 TEMACS_BATCH = $(DO_TEMACS) -nd $(BATCH) | |
444 XEMACS_BATCH = $(DO_XEMACS) $(BATCH) | |
445 XEMACS_BATCH_PACKAGES = $(DO_XEMACS) $(BATCH_PACKAGES) | |
446 temacs_loadup_args = -l $(LISP)/loadup.el | |
447 dump_temacs_args = $(temacs_loadup_args) dump | |
448 run_temacs_args = $(temacs_loadup_args) run-temacs | |
449 dump_temacs = $(TEMACS_BATCH) $(dump_temacs_args) | |
450 | |
451 ## Compile, dump, and make sure all .elc files are up-to-date. | |
452 | |
1330 | 453 ## NOTE NOTE NOTE: There appears to be a fundamental but non-obvious |
454 ## difference between the way that standard `make', GNU Make, and `nmake' | |
455 ## handle dependencies, and this means we have to write the dependencies in | |
456 ## Makefile.in.in and xemacs.mak differently. To illustrate this, consider | |
457 ## the following first: | |
458 | |
459 ##.PHONY: all (`make' only) | |
460 ## all: test.exe | |
461 ## | |
462 ##.PHONY: FRC.test.c (`make' only) | |
463 ##FRC.test.c: | |
464 ## | |
465 ##test.c: FRC.test.c | |
466 ## if test ! -f foo ; then touch test.c; fi (`make' only) | |
467 ## if not exist foo touch test.c (`nmake' only) | |
468 ## | |
469 ##test.obj: test.c | |
470 ## touch test.obj | |
471 ## | |
472 ##test.exe: test.obj | |
473 ## touch test.exe | |
474 | |
475 ## (GNU Make doesn't need the .PHONY declarations, but evidently some versions | |
476 ## of `make' do. nmake doesn't need them and doesn't allow them, either.) | |
477 | |
478 ## Running `make' rebuilds test.exe only if `foo' doesn't exist. | |
479 ## Running `nmake -f Makefile' rebuilds it regardless. | |
480 | |
481 ## Both conclude that test.c needs to be rebuilt since its dependent is | |
482 ## non-existent. But `make' recalculates its dependencies after running | |
483 ## the commands for test.c, and notices that test.c hasn't changed, and | |
484 ## thus test.obj and test.exe are up-to-date. `nmake' doesn't. | |
485 | |
486 ## On the other hand, consider the following: | |
428 | 487 |
1330 | 488 ##.PHONY: all (`make' only) |
489 ##all: check-foo test.exe | |
490 ## | |
491 ##.PHONY: check-foo (`make' only) | |
492 ##check-foo: | |
493 ## if test ! -f foo; then touch test.c; fi (`make' only) | |
494 ## if not exist foo touch test.c (`nmake' only) | |
495 ## | |
496 ##test.c: | |
497 ## touch test.c | |
498 ## | |
499 ##test.obj: test.c | |
500 ## touch test.obj | |
501 ## | |
502 ##test.exe: test.c test.obj | |
503 ## touch test.exe | |
504 ## | |
1315 | 505 |
1330 | 506 ## Running `nmake -f Makefile' (and `GNU make') rebuilds test.exe only if |
507 ## `foo' doesn't exist. | |
508 ## Running some versions of non-GNU `make' does nothing at all once test.c, | |
509 ## test.obj and test.exe all exist. | |
510 | |
511 ## It appears that `nmake' doesn't check dependencies for test.exe until it | |
512 ## actually needs to be rebuilt, so this "sideways" dependency script | |
513 ## works. GNU make evidently recalculates *all* dependencies after each | |
514 ## command so has no problem, either. But some makes apparently calculate | |
515 ## all dependencies at startup and then, after executing a command to build | |
516 ## a dependency, only recheck relationships involving that particular | |
517 ## dependency. | |
518 | |
519 ## In XEmacs-land, the above situation exists wrt the `NEEDTODUMP' | |
520 ## dependency, recalculated by `update-elc.el'. Thus, Makefile.in.in must | |
521 ## use the method #1 above, and nmake must use method #2. | |
522 | |
523 ## -ben | |
524 | |
525 .PHONY: build-the-mofo | |
1346 | 526 build-the-mofo: update-elc-2 $(mo_file) $(other_files) $(LISP)/finder-inf.el load-shadows |
1315 | 527 |
1346 | 528 ## (1) Compile all dependencies of the XEmacs executable |
428 | 529 |
1330 | 530 #ifdef HAVE_X_WINDOWS |
531 lwlib_deps = $(lwlib_lib) | |
532 $(lwlib_lib): | |
2427 | 533 cd ../lwlib && $(MAKE) $(RECURSIVE_MAKE_ARGS) |
1330 | 534 #endif /* HAVE_X_WINDOWS */ |
535 | |
4759
aa5ed11f473b
Remove support for obsolete systems. See xemacs-patches message with ID
Jerry James <james@xemacs.org>
parents:
4754
diff
changeset
|
536 link_deps = $(start_files) $(objs) $(otherobjs) $(lwlib_deps) |
1315 | 537 |
1346 | 538 $(LIB_SRC)/make-dump-id: |
2427 | 539 cd $(LIB_SRC) && $(MAKE) $(RECURSIVE_MAKE_ARGS) make-dump-id |
1346 | 540 |
541 dump-id.c: $(LIB_SRC)/make-dump-id $(link_deps) | |
542 $(LIB_SRC)/make-dump-id | |
543 | |
544 ## (2) Link the XEmacs executable | |
545 | |
2720 | 546 #if !defined(PDUMP) || !defined(DUMP_IN_EXEC) || defined(WIN32_NATIVE) |
2015 | 547 $(RAW_EXE): $(link_deps) $(DUMP_ID) |
548 $(LD) $(start_flags) $(ldflags) -o $@ $(start_files) $(objs) $(otherobjs) $(DUMP_ID) $(LIBES) | |
549 #else | |
550 $(RAW_EXE): $(link_deps) $(DUMP_ID) | |
551 if test -f dump-size ; then \ | |
552 $(CC) -c $(cflags) -DMAX_SIZE=`cat dump-size` $(SRC)/dump-data.c ;\ | |
553 else \ | |
554 $(CC) -c $(cflags) -DMAX_SIZE=0 $(SRC)/dump-data.c ;\ | |
555 fi | |
556 $(LD) $(start_flags) $(ldflags) -o $@ $(start_files) $(objs) $(otherobjs) $(DUMP_ID) dump-data.o $(LIBES) | |
557 #endif | |
1315 | 558 |
1346 | 559 ## (3) Update the .elc's needed for dumping |
560 | |
561 .PHONY: FRC.needtodump | |
562 FRC.needtodump: | |
563 | |
564 ## This file is touched by update-elc.el when redumping is necessary. | |
565 ## We use $(BLDSRC) == `.' here to help keep sync with nt/xemacs.mak, | |
566 ## where $(BLDSRC) is not `.'. | |
1406 | 567 $(BLDSRC)/NEEDTODUMP: $(RAW_EXE) FRC.needtodump |
1346 | 568 $(TEMACS_BATCH) -l $(LISP)/update-elc.el |
569 | |
570 ## (4) Build the DOC file | |
1315 | 571 |
572 obj_src = $(objs:.o=.c) | |
573 | |
1346 | 574 $(LIB_SRC)/make-docfile: |
2427 | 575 cd $(LIB_SRC) && $(MAKE) $(RECURSIVE_MAKE_ARGS) make-docfile |
1346 | 576 |
1330 | 577 $(LIB_SRC)/DOC: $(LIB_SRC)/make-docfile $(BLDSRC)/NEEDTODUMP $(temacs_deps) |
1303 | 578 #ifdef QUICK_BUILD |
579 if test ! -f $@ ; then \ | |
580 #else | |
581 if true ; then \ | |
582 #endif | |
1315 | 583 $(TEMACS_BATCH) -l $(LISP)/make-docfile.el -- \ |
1330 | 584 -o $(LIB_SRC)/DOC -d $(SRC) -i $(LIB_SRC)/../site-packages \ |
585 $(obj_src) $(mallocdocsrc) $(rallocdocsrc) \ | |
586 $(extra_doc_files) ; fi | |
428 | 587 |
1346 | 588 ## (5) Dump |
589 | |
590 $(DUMP_TARGET): $(RAW_EXE) $(BLDSRC)/NEEDTODUMP $(LIB_SRC)/DOC | |
591 #ifdef HEAP_IN_DATA | |
592 @$(RM) $@ && touch SATISFIED | |
593 $(dump_temacs) | |
594 @if test -f SATISFIED; then $(RM) SATISFIED; else $(RM) $@; \ | |
2427 | 595 $(MAKE) $(RECURSIVE_MAKE_ARGS) $@; fi |
1346 | 596 #else |
597 @$(RM) $@ | |
598 $(dump_temacs) | |
599 #endif | |
2720 | 600 #if defined(PDUMP) && defined(DUMP_IN_EXEC) && !defined(WIN32_NATIVE) |
2015 | 601 if test -f dump-size; then \ |
602 $(LIB_SRC)/insert-data-in-exec $(RAW_EXE) $(DUMP_TARGET).dmp $(DUMP_TARGET) `$(DO_TEMACS) -si`; \ | |
603 ret=$$? ; \ | |
604 if test $${ret} -eq 2; then \ | |
605 $(RM) dump-size ; \ | |
606 else \ | |
607 if test $${ret} -eq 1; then \ | |
608 exit 1; \ | |
609 else \ | |
610 chmod +x $(DUMP_TARGET) ; \ | |
611 fi ; \ | |
612 fi ; \ | |
613 fi | |
2644 | 614 if test ! -f dump-size; then \ |
2015 | 615 $(LIB_SRC)/insert-data-in-exec -s $(DUMP_TARGET).dmp > dump-size ; \ |
616 $(RM) dump-data.o $(DUMP_TARGET) $(DUMP_TARGET).dmp $(RAW_EXE);\ | |
2427 | 617 $(MAKE) $(RECURSIVE_MAKE_ARGS) $@; \ |
2015 | 618 fi |
619 #endif | |
1346 | 620 |
621 ## (6) Update the remaining .elc's, post-dumping | |
622 | |
623 .PHONY: update-elc-2 | |
624 update-elc-2: $(DUMP_TARGET) | |
625 $(XEMACS_BATCH) -no-autoloads -l update-elc-2.el -f batch-update-elc-2 $(LISP) | |
626 | |
627 ## (7) Other random stuff | |
1315 | 628 |
1346 | 629 $(LISP)/finder-inf.el: update-elc-2 |
630 @echo "Building finder database ..." | |
2027 | 631 $(RM) $(LISP)/finder-inf.el |
1346 | 632 $(XEMACS_BATCH) -eval "(setq finder-compile-keywords-quiet t)" \ |
3986 | 633 -eval "(setq lisp-directory \"$(LISP)\")" \ |
1346 | 634 -l finder -f finder-compile-keywords |
635 @echo "Building finder database ...(done)" | |
636 | |
637 .PHONY: load-shadows | |
638 load-shadows: update-elc-2 | |
639 #ifndef QUICK_BUILD | |
640 @echo "Testing for Lisp shadows ..." | |
641 @$(XEMACS_BATCH) -f list-load-path-shadows | |
642 #endif | |
643 | |
644 ###################### Misc targets | |
645 | |
646 release: all | |
647 -if [ -w $(LISP) ]; then \ | |
648 w=`pwd`; cd $(SRC) && $$w/$(RAW_EXE) -nd $(BATCH) -l $(LISP)/inc-vers; \ | |
649 else true; fi | |
650 -$(dump_temacs) | |
651 touch release | |
428 | 652 |
1315 | 653 .PHONY: fastdump |
1330 | 654 fastdump: $(RAW_EXE) |
655 @$(RM) $(DUMP_TARGET) && touch SATISFIED | |
656 -$(dump_temacs) | |
1315 | 657 @$(XEMACS_BATCH) -f list-load-path-shadows |
428 | 658 |
1315 | 659 .PHONY: all-elc |
660 all-elc: | |
2427 | 661 cd .. && $(MAKE) $(RECURSIVE_MAKE_ARGS) |
1315 | 662 |
663 ######################################################################### | |
1330 | 664 ## Subsidiary dependency rules ## |
665 ######################################################################### | |
428 | 666 |
667 #ifdef I18N3 | |
668 | |
669 # if defined(SPARC) && !defined(USG) | |
670 xgettext= /usr/openwin/bin/xgettext | |
671 xgettext_args= -o emacs -m_X messages | |
672 msgfmt= /usr/openwin/bin/msgfmt | |
673 # else | |
674 xgettext= xgettext | |
675 xgettext_args= -s -d emacs -M_X messages | |
676 msgfmt= msgfmt | |
677 #endif | |
678 | |
1330 | 679 $(LIB_SRC)/emacs.po: $(LIB_SRC)/make-msgfile $(LIB_SRC)/make-po $(objs) |
680 $(LIB_SRC)/make-msgfile -o $(LIB_SRC)/messages $(objs) | |
681 cd $(LIB_SRC) && $(xgettext) $(xgettext_args) | |
682 $(RM) $(LIB_SRC)/emacs.po | |
683 cd $(LIB_SRC) && $(LIB_SRC)/make-po -a $(LIB_SRC)/emacs.po DOC | |
428 | 684 |
1330 | 685 $(LIB_SRC)/emacs.mo: $(LIB_SRC)/emacs.po |
686 cd $(LIB_SRC)/ && $(msgfmt) -o emacs.mo emacs.po | |
428 | 687 |
1330 | 688 $(LIB_SRC)/make-msgfile: |
2427 | 689 cd $(LIB_SRC) && $(MAKE) $(RECURSIVE_MAKE_ARGS) make-msgfile |
428 | 690 |
1330 | 691 $(LIB_SRC)/make-po: |
2427 | 692 cd $(LIB_SRC) && $(MAKE) $(RECURSIVE_MAKE_ARGS) make-po |
428 | 693 |
694 #endif /* I18N3 */ | |
695 | |
1330 | 696 TopLevelEmacsShell.o : $(SRC)/EmacsShell-sub.c config.h xintrinsicp.h EmacsShellP.h |
697 $(CC) -c $(cflags) -DDEFINE_TOP_LEVEL_EMACS_SHELL $(SRC)/EmacsShell-sub.c | |
428 | 698 mv EmacsShell-sub.o TopLevelEmacsShell.o |
699 | |
1330 | 700 TopLevelEmacsShell.c.rtl : $(SRC)/EmacsShell-sub.c config.h xintrinsicp.h EmacsShellP.h |
701 $(CC) -dr -c $(cflags) -DDEFINE_TOP_LEVEL_EMACS_SHELL $(SRC)/EmacsShell-sub.c | |
428 | 702 mv EmacsShell-sub.c.rtl TopLevelEmacsShell.c.rtl |
703 | |
1330 | 704 TransientEmacsShell.o : $(SRC)/EmacsShell-sub.c TopLevelEmacsShell.o config.h xintrinsicp.h EmacsShellP.h |
705 $(CC) -c $(cflags) -DDEFINE_TRANSIENT_EMACS_SHELL $(SRC)/EmacsShell-sub.c | |
428 | 706 mv EmacsShell-sub.o TransientEmacsShell.o |
707 | |
1330 | 708 TransientEmacsShell.c.rtl : $(SRC)/EmacsShell-sub.c TopLevelEmacsShell.o config.h xintrinsicp.h EmacsShellP.h |
709 $(CC) -dr -c $(cflags) -DDEFINE_TRANSIENT_EMACS_SHELL $(SRC)/EmacsShell-sub.c | |
428 | 710 mv EmacsShell-sub.c.rtl TransientEmacsShell.c.rtl |
711 | |
442 | 712 ## The above rules are subject to a race condition if using a parallel make. |
713 TransientEmacsShell.o : TopLevelEmacsShell.o | |
714 TransientEmacsShell.c.rtl : TopLevelEmacsShell.c.rtl | |
715 | |
428 | 716 ## Position-independent code for shared library creation |
717 #if USE_GCC | |
718 pic_arg = -fpic | |
719 #elif defined (IRIX) | |
720 pic_arg = -KPIC | |
721 # else | |
722 pic_arg = -K pic | |
723 #endif | |
724 | |
725 #ifdef EXTERNAL_WIDGET | |
726 | |
727 external_client_motif_objs_shared = ExternalClient-Xm-shared.o extw-Xt-shared.o extw-Xlib-shared.o | |
728 external_client_xt_objs_shared = ExternalClient-Xt-shared.o extw-Xt-shared.o extw-Xlib-shared.o | |
729 external_client_xlib_objs_shared = ExternalClient-Xlib-shared.o extw-Xlib-shared.o | |
730 external_client_motif_objs_nonshared = ExternalClient-Xm-nonshared.o extw-Xt-nonshared.o extw-Xlib-nonshared.o | |
731 external_client_xt_objs_nonshared = ExternalClient-Xt-nonshared.o extw-Xt-nonshared.o extw-Xlib-nonshared.o | |
732 external_client_xlib_objs_nonshared = ExternalClient-Xlib-nonshared.o extw-Xlib-nonshared.o | |
733 | |
734 ## Add dependencies so things work right with a parallel make | |
1330 | 735 ExternalClient-Xm-shared.o: $(SRC)/ExternalClient.c ExternalClient-Xt-shared.o ExternalClient-Xm-nonshared.o |
736 $(CC) -c $(pic_arg) $(cflags) -DEXTW_USES_MOTIF $(SRC)/ExternalClient.c | |
428 | 737 mv ExternalClient.o ExternalClient-Xm-shared.o |
738 | |
1330 | 739 ExternalClient-Xt-shared.o: $(SRC)/ExternalClient.c ExternalClient-Xt-nonshared.o |
740 $(CC) -c $(pic_arg) $(cflags) $(SRC)/ExternalClient.c | |
428 | 741 mv ExternalClient.o ExternalClient-Xt-shared.o |
742 | |
1330 | 743 ExternalClient-Xlib-shared.o: $(SRC)/ExternalClient-Xlib.c ExternalClient-Xlib-nonshared.o |
744 $(CC) -c $(pic_arg) $(cflags) $(SRC)/ExternalClient-Xlib.c | |
428 | 745 mv ExternalClient-Xlib.o ExternalClient-Xlib-shared.o |
746 | |
1330 | 747 ExternalClient-Xm-nonshared.o: $(SRC)/ExternalClient.c ExternalClient-Xt-nonshared.o |
748 $(CC) -c $(cflags) -DEXTW_USES_MOTIF $(SRC)/ExternalClient.c | |
428 | 749 mv ExternalClient.o ExternalClient-Xm-nonshared.o |
750 | |
1330 | 751 ExternalClient-Xt-nonshared.o: $(SRC)/ExternalClient.c |
752 $(CC) -c $(cflags) $(SRC)/ExternalClient.c | |
428 | 753 mv ExternalClient.o ExternalClient-Xt-nonshared.o |
754 | |
1330 | 755 ExternalClient-Xlib-nonshared.o: $(SRC)/ExternalClient-Xlib.c |
756 $(CC) -c $(cflags) $(SRC)/ExternalClient-Xlib.c | |
428 | 757 mv ExternalClient-Xlib.o ExternalClient-Xlib-nonshared.o |
758 | |
759 ## We compile the common files twice (once with PIC and once without) | |
760 ## because on some systems, compiling with PIC but not linking into | |
761 ## a shared library messes things up. | |
762 | |
1330 | 763 extw-Xt-shared.o: $(SRC)/extw-Xt.c extw-Xt-nonshared.o |
764 $(CC) -c $(pic_arg) $(cflags) $(SRC)/extw-Xt.c | |
428 | 765 mv extw-Xt.o extw-Xt-shared.o |
766 | |
1330 | 767 extw-Xlib-shared.o: $(SRC)/extw-Xlib.c extw-Xlib-nonshared.o |
768 $(CC) -c $(pic_arg) $(cflags) $(SRC)/extw-Xlib.c | |
428 | 769 mv extw-Xlib.o extw-Xlib-shared.o |
770 | |
1330 | 771 extw-Xt-nonshared.o: $(SRC)/extw-Xt.c |
772 $(CC) -c $(cflags) $(SRC)/extw-Xt.c | |
428 | 773 mv extw-Xt.o extw-Xt-nonshared.o |
774 | |
1330 | 775 extw-Xlib-nonshared.o: $(SRC)/extw-Xlib.c |
776 $(CC) -c $(cflags) $(SRC)/extw-Xlib.c | |
428 | 777 mv extw-Xlib.o extw-Xlib-nonshared.o |
778 | |
1330 | 779 libextcli_Xm.a: $(external_client_motif_objs_nonshared) |
780 ar r libextcli_Xm.a $(external_client_motif_objs_nonshared) | |
428 | 781 |
1330 | 782 libextcli_Xt.a: $(external_client_xt_objs_nonshared) |
783 ar r libextcli_Xt.a $(external_client_xt_objs_nonshared) | |
428 | 784 |
1330 | 785 libextcli_Xlib.a: $(external_client_xlib_objs_nonshared) |
786 ar r libextcli_Xlib.a $(external_client_xlib_objs_nonshared) | |
428 | 787 |
1315 | 788 ## Now we try to figure out how to link a shared library. |
789 ## If we cannot figure it out, leave EXTW_LINK undefined and a shared | |
790 ## library will not be created. | |
791 | |
792 # ifdef USE_GCC | |
793 # ifdef USG5 | |
794 # define EXTW_LINK(objs, output) $(CC) -shared objs -Xlinker -z -Xlinker text -o output | |
795 extw_link_beg = $(CC) -shared | |
796 extw_link_mid = -Xlinker -z -Xlinker text -o | |
797 extw_link_end = | |
798 ## I cannot figure out how to do shared a.out libraries, so just punt. | |
799 # elif !defined (LINUX) || defined (__ELF__) | |
800 # define EXTW_LINK(objs, output) $(CC) -shared objs -o output | |
801 extw_link_beg = $(CC) -shared | |
802 extw_link_mid = -o | |
803 extw_link_end = | |
804 # endif | |
805 # elif defined (USG5) | |
806 # if defined (IRIX) | |
1330 | 807 # define EXTW_LINK(objs, output) $(LD) -shared -g -check_registry $(TOOLROOT)/usr/lib/so_locations objs -o output |
808 extw_link_beg = $(LD) -shared -g -check_registry $(TOOLROOT)/usr/lib/so_locations | |
1315 | 809 extw_link_mid = -o |
810 extw_link_end = | |
811 # else /* not IRIX */ | |
812 # define EXTW_LINK(objs, output) $(CC) -G objs -z text -o output | |
813 extw_link_beg = $(CC) -G | |
814 extw_link_mid = -z text -o | |
815 extw_link_end = | |
816 # endif /* not IRIX */ | |
817 # else /* not USG5 */ | |
4759
aa5ed11f473b
Remove support for obsolete systems. See xemacs-patches message with ID
Jerry James <james@xemacs.org>
parents:
4754
diff
changeset
|
818 # define EXTW_LINK(objs, output) $(LD) -dc objs -assert pure-text -o output |
1315 | 819 extw_link_beg = $(LD) -dc |
820 extw_link_mid = -assert pure-text -o | |
821 extw_link_end = | |
822 # endif /* not USG5 */ | |
823 | |
428 | 824 #ifdef EXTW_LINK |
825 | |
1330 | 826 libextcli_Xm.so.1: $(external_client_motif_objs_shared) |
827 $(extw_link_beg) $(external_client_motif_objs_shared) $(extw_link_mid) libextcli_Xm.so.1 $(extw_link_end) | |
428 | 828 |
1330 | 829 libextcli_Xt.so.1: $(external_client_xt_objs_shared) |
830 $(extw_link_beg) $(external_client_xt_objs_shared) $(extw_link_mid) libextcli_Xt.so.1 $(extw_link_end) | |
428 | 831 |
1330 | 832 libextcli_Xlib.so.1: $(external_client_xlib_objs_shared) |
833 $(extw_link_beg) $(external_client_xlib_objs_shared) $(extw_link_mid) libextcli_Xlib.so.1 $(extw_link_end) | |
428 | 834 |
835 #endif /* EXTW_LINK */ | |
836 | |
837 #endif /* EXTERNAL_WIDGET */ | |
838 | |
1330 | 839 config.h: $(SRC)/config.h.in |
840 Emacs.ad.h: $(ETC)/Emacs.ad | |
428 | 841 |
842 config.h sheap-adjust.h paths.h Emacs.ad.h : | |
843 @echo "The file $@ needs to be re-generated." | |
844 @echo "Please run a make in the top level directory." | |
845 @echo "Consult the file \`INSTALL' for instructions for building XEmacs." | |
846 @exit 1 | |
847 | |
848 ## Some machines have alloca built-in. | |
849 ## They should define HAVE_ALLOCA, or may just let alloca.s | |
850 ## be used but generate no code. | |
851 ## Some have it written in assembler in alloca.s. | |
852 ## Some use the C version in alloca.c (these define C_ALLOCA in config.h). | |
851 | 853 ## Nowadays we always compile in the C version and use it to avoid stack |
854 ## overflow. | |
428 | 855 |
856 #ifdef C_ALLOCA | |
857 #else | |
858 #ifndef HAVE_ALLOCA | |
1330 | 859 allocax.o : $(SRC)/alloca.s config.h |
428 | 860 ## $(CPP) is cc -E, which may get confused by filenames |
861 ## that do not end in .c. So copy file to a safe name. */ | |
1330 | 862 ## cp $(SRC)/alloca.s allocatem.c |
428 | 863 ## Remove any ^L, blank lines, and preprocessor comments, |
864 ## since some assemblers barf on them. Use a different basename for the | |
865 ## output file, since some stupid compilers (Green Hill) use that | |
866 ## name for the intermediate assembler file. | |
867 $(CPP) $(cppflags) allocatem.c | \ | |
868 sed -e 's///' -e 's/^#.*//' | \ | |
869 sed -n -e '/^..*$$/p' > allocax.s | |
870 @$(RM) alloca.o | |
871 $(CC) -c allocax.s | |
872 $(RM) allocax.s allocatem.c | |
873 #endif /* HAVE_ALLOCA */ | |
874 #endif /* ! defined (C_ALLOCA) */ | |
875 | |
876 #ifdef HAVE_NATIVE_SOUND | |
442 | 877 sound_cflags=@sound_cflags@ |
1330 | 878 sunplay.o: $(SRC)/sunplay.c |
879 $(CC) -c $(sound_cflags) $(cflags) $(SRC)/sunplay.c | |
880 hpplay.o: $(SRC)/hpplay.c | |
881 $(CC) -c -Demacs $(sound_cflags) $(cflags) $(SRC)/hpplay.c | |
428 | 882 #endif /* HAVE_NATIVE_SOUND */ |
883 | |
462 | 884 #if defined(HAVE_GLADE_GLADE_H) || defined(HAVE_GLADE_H) |
885 glade_files=glade.c | |
886 #endif | |
887 | |
888 #ifdef HAVE_GTK | |
889 extra_doc_files=emacs-widget-accessors.c ui-byhand.c $(glade_files) | |
890 #endif | |
891 | |
1330 | 892 xemacs_res.o: $(SRC)/../nt/xemacs.rc |
893 windres --include-dir $(SRC)/../nt -i $(SRC)/../nt/xemacs.rc -o $@ | |
442 | 894 |
1315 | 895 ######################################################################### |
1330 | 896 ## Other random crap ## |
897 ######################################################################### | |
1315 | 898 |
899 dortl : $(obj_rtl) $(otherrtls) | |
900 echo "(defvar source-files '(" > $(LISP)/source-files.el | |
901 (for a in $(obj_src) $(othersrcs);do \ | |
902 echo -n "\""$$a"\"" >> $(LISP)/source-files.el ;\ | |
903 done) | |
904 echo "))" >> $(LISP)/source-files.el | |
905 | |
1330 | 906 ###################### Lint |
1315 | 907 LINT.c=$(LINT) $(LINTFLAGS) $(LINTINCLUDES) |
908 LINTFILES= $(objs:.o=.ln) | |
909 LINTINCLUDES = $(cppflags) | |
910 ## LINTFLAGS= -fd -m -p -s -u -v -x | |
911 LINTFLAGS= -fd -m -s -u -v -x | |
912 .PHONY: lint | |
913 lint: $(LINTFILES) | |
914 $(LINT.c) $(LINTFILES) | |
915 | |
1330 | 916 ###################### Automated tests |
917 testdir = $(SRC)/../tests/automated | |
918 batch_test_emacs = $(BATCH_PACKAGES) -l $(testdir)/test-harness.el -f batch-test-emacs $(testdir) | |
1315 | 919 |
4941
4ce4d519bdd8
use two hashes for comments in Makefile.in.in
Ben Wing <ben@xemacs.org>
parents:
4939
diff
changeset
|
920 ## `config-changed' is useful if you are building both Unicode-internal |
4ce4d519bdd8
use two hashes for comments in Makefile.in.in
Ben Wing <ben@xemacs.org>
parents:
4939
diff
changeset
|
921 ## and old-Mule workspaces using --srcdir and don't run configure before |
4ce4d519bdd8
use two hashes for comments in Makefile.in.in
Ben Wing <ben@xemacs.org>
parents:
4939
diff
changeset
|
922 ## switching from one to the other. If you rerun configure, update-elc.el |
4ce4d519bdd8
use two hashes for comments in Makefile.in.in
Ben Wing <ben@xemacs.org>
parents:
4939
diff
changeset
|
923 ## notices this and automatically removes the two files below, but not |
4ce4d519bdd8
use two hashes for comments in Makefile.in.in
Ben Wing <ben@xemacs.org>
parents:
4939
diff
changeset
|
924 ## if you just switch directories and `make'. In that case, do |
4ce4d519bdd8
use two hashes for comments in Makefile.in.in
Ben Wing <ben@xemacs.org>
parents:
4939
diff
changeset
|
925 ## `make config-changed' to avoid an error. |
4939
349f01075eb7
build fixes for gdbinit and config-dependent elc files
Ben Wing <ben@xemacs.org>
parents:
4872
diff
changeset
|
926 |
349f01075eb7
build fixes for gdbinit and config-dependent elc files
Ben Wing <ben@xemacs.org>
parents:
4872
diff
changeset
|
927 .PHONY: remove-config-dependent-elcs config-changed |
349f01075eb7
build fixes for gdbinit and config-dependent elc files
Ben Wing <ben@xemacs.org>
parents:
4872
diff
changeset
|
928 remove-config-dependent-elcs: |
349f01075eb7
build fixes for gdbinit and config-dependent elc files
Ben Wing <ben@xemacs.org>
parents:
4872
diff
changeset
|
929 rm $(LISP)/mule/chinese.elc $(LISP)/mule/general-late.elc |
349f01075eb7
build fixes for gdbinit and config-dependent elc files
Ben Wing <ben@xemacs.org>
parents:
4872
diff
changeset
|
930 config-changed: remove-config-dependent-elcs all |
349f01075eb7
build fixes for gdbinit and config-dependent elc files
Ben Wing <ben@xemacs.org>
parents:
4872
diff
changeset
|
931 |
349f01075eb7
build fixes for gdbinit and config-dependent elc files
Ben Wing <ben@xemacs.org>
parents:
4872
diff
changeset
|
932 |
1315 | 933 .PHONY: check check-temacs check-features |
934 check: | |
935 $(DO_XEMACS) $(batch_test_emacs) | |
936 check-temacs: | |
937 $(TEMACS_BATCH) $(run_temacs_args) $(batch_test_emacs) | |
938 check-features: all | |
939 $(XEMACS_BATCH) -l check-features.el | |
940 | |
1330 | 941 ###################### Debugging targets |
942 | |
1315 | 943 ## None of the debugging products work with a dumped xemacs binary, |
944 ## because it does unexpected things like free memory that has been | |
945 ## malloc'ed in a *different* process!! So we need to run these on | |
946 ## temacs. | |
947 | |
948 ## RTC is Sun WorkShop's Run Time Checking, integrated with dbx | |
949 rtc_patch.o: | |
950 rtc_patch_area -o $@ | |
951 | |
952 rtcmacs: $(temacs_deps) rtc_patch.o | |
2427 | 953 $(RM) $(RAW_EXE); $(MAKE) $(RECURSIVE_MAKE_ARGS) $(RAW_EXE) RTC_patch_objs=rtc_patch.o |
1330 | 954 mv $(RAW_EXE) rtcmacs |
1315 | 955 |
956 .PHONY: run-rtcmacs | |
957 run-rtcmacs: rtcmacs | |
958 dbx -q -C -c \ | |
959 'dbxenv rtc_error_log_file_name /dev/fd/1; \ | |
960 dbxenv suppress_startup_message 5.0; \ | |
961 ignore POLL; \ | |
962 check -access; \ | |
963 suppress rui; \ | |
1330 | 964 runargs -nd $(BATCH) $(run_temacs_args) -vanilla; \ |
1315 | 965 run' rtcmacs |
966 | |
1330 | 967 debug-temacs: $(RAW_EXE) |
968 -gdb $(RAW_EXE) | |
1315 | 969 |
970 ## Purify, Quantify, PureCoverage are software quality products from | |
971 ## Rational, formerly Pure Atria, formerly Pure Software. | |
972 ## | |
973 ## Purify | |
974 PURIFY_PROG = purify | |
975 PURIFY_LIBS = | |
976 PURIFY_FLAGS =\ | |
977 #ifdef PDUMP | |
978 -search-mmaps=yes\ | |
979 #endif | |
980 -chain-length=32 -ignore-signals=SIGPOLL\ | |
1330 | 981 -cache-dir=$(blddir)/purecache -always-use-cache-dir=yes |
1315 | 982 |
983 puremacs: $(temacs_deps) | |
984 $(PURIFY_PROG) $(PURIFY_FLAGS) $(LD) $(temacs_link_args) $(PURIFY_LIBS) | |
1330 | 985 cp $@ $(RAW_EXE) |
1315 | 986 |
987 ## Quantify | |
988 #ifdef QUANTIFY | |
989 QUANTIFY_PROG = quantify | |
990 QUANTIFY_HOME = `$(QUANTIFY_PROG) -print-home-dir` | |
991 QUANTIFY_FLAGS = -cache-dir=./purecache -always-use-cache-dir=yes | |
992 cppflags += -I$(QUANTIFY_HOME) | |
993 temacs_link_args += $(QUANTIFY_HOME)/quantify_stubs.a | |
994 | |
995 quantmacs: $(temacs_deps) | |
996 $(QUANTIFY_PROG) $(QUANTIFY_FLAGS) $(LD) $(temacs_link_args) | |
1330 | 997 cp $@ $(RAW_EXE) |
1315 | 998 #endif /* QUANTIFY */ |
999 | |
1000 PURECOV_PROG=purecov | |
1001 covmacs: $(temacs_deps) | |
1002 $(PURECOV_PROG) $(LD) $(temacs_link_args) | |
428 | 1003 |
1330 | 1004 ###################### Clean |
1005 | |
428 | 1006 .PHONY: mostlyclean clean distclean realclean versionclean extraclean |
3062 | 1007 .PHONY: distclean-noconfig realclean-noconfig extraclean-noconfig |
428 | 1008 mostlyclean: |
3083 | 1009 -$(RM) *.o *.i *.rtl *.ln core \ |
1330 | 1010 temacs puremacs quantmacs covmacs rtcmacs temacs.exe \ |
4754
5dc1b4681e33
Sun Oct 18 00:27:27 2009 +0900
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4735
diff
changeset
|
1011 sheap-adjust.h dump-id.c dump-size $(BLDSRC)/NEEDTODUMP SATISFIED \ |
1330 | 1012 $(LIB_SRC)/*.po $(LIB_SRC)/*.mo |
1013 versionclean: | |
4754
5dc1b4681e33
Sun Oct 18 00:27:27 2009 +0900
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4735
diff
changeset
|
1014 -$(RM) $(RAW_EXE) $(DUMP_TARGET) $(DUMP_TARGET).dmp $(LIB_SRC)/DOC |
1330 | 1015 ## Remove the generated load files here; they cause lots of problems |
1016 ## when they don't work right. | |
428 | 1017 clean: mostlyclean versionclean |
3083 | 1018 -$(RM) libextcli* $(LISP)/auto-autoloads.el* $(LISP)/custom-load.el* \ |
1330 | 1019 $(LISP)/mule/auto-autoloads.el* $(LISP)/mule/custom-load.el* \ |
1020 $(SRCMODULES)/auto-autoloads.el* $(SRCMODULES)/custom-load.el* | |
428 | 1021 ## This is used in making a distribution. |
1022 ## Do not use it on development directories! | |
3062 | 1023 distclean-noconfig: clean |
3083 | 1024 -$(RM) config.h paths.h Emacs.ad.h $(LISP)/finder-inf.el* \ |
3062 | 1025 TAGS xemacs.def xemacs.def.in |
1026 ## This is used in making a distribution. | |
1027 ## Do not use it on development directories! | |
1028 distclean: distclean-noconfig | |
3083 | 1029 -$(RM) GNUmakefile Makefile Makefile.in |
3062 | 1030 realclean-noconfig: distclean-noconfig |
428 | 1031 realclean: distclean |
3062 | 1032 extraclean-noconfig: realclean-noconfig |
4754
5dc1b4681e33
Sun Oct 18 00:27:27 2009 +0900
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4735
diff
changeset
|
1033 -$(RM) *~ \#* m/*~ m/\#* s/*~ s/\#* *.s gdb.txt |
428 | 1034 extraclean: realclean |
4754
5dc1b4681e33
Sun Oct 18 00:27:27 2009 +0900
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4735
diff
changeset
|
1035 -$(RM) *~ \#* m/*~ m/\#* s/*~ s/\#* *.s gdb.txt |
428 | 1036 |
1330 | 1037 ###################### Lock, unlock |
1038 | |
428 | 1039 .PHONY : lock unlock |
1040 SOURCES = *.[chm] *.pswm [sm]/* COPYING paths.h.in Makefile.in.in \ | |
1041 config.h.in README COPYING ChangeLog | |
1042 unlock: | |
1043 chmod u+w $(SOURCES) | |
1044 | |
1045 relock: | |
1046 chmod -w $(SOURCES) | |
1047 | |
1330 | 1048 ###################### Installation |
1049 | |
428 | 1050 ## Header files for ellcc |
1051 #ifdef HAVE_SHLIB | |
1052 MAKEPATH=../lib-src/make-path | |
1330 | 1053 install: $(PROGNAME) |
1054 $(MAKEPATH) $(archlibdir)/include $(archlibdir)/include/m $(archlibdir)/include/s | |
428 | 1055 -@echo "Copying include files for ellcc..." |
1056 -@hdir=`pwd`; \ | |
1330 | 1057 cd $(SRC); hdrdir2=`pwd`; cd $$hdir; \ |
428 | 1058 test "$$hdrdir2" != "$$hdir" && hdir="$$hdir $$hdrdir2"; \ |
1059 (for thisdir in $$hdir; do \ | |
448 | 1060 cd $$thisdir && \ |
428 | 1061 (hdrtars=; \ |
1062 for hdrfile in *.h; do \ | |
1063 hdrtars="$$hdrtars $$hdrfile"; \ | |
1064 done; \ | |
1065 test -d s && hdrtars="$$hdrtars s/*"; \ | |
1066 test -d m && hdrtars="$$hdrtars m/*"; \ | |
1067 test -n "$$hdrtars" && (tar cf - $$hdrtars) | \ | |
1330 | 1068 (cd $(archlibdir)/include && umask 022 && tar xf -); \ |
1069 chmod 755 $(archlibdir)/include; \ | |
1070 test -d $(archlibdir)/include/s && \ | |
1071 chmod 755 $(archlibdir)/include/s; \ | |
1072 test -d $(archlibdir)/include/m && \ | |
1073 chmod 755 $(archlibdir)/include/s;) \ | |
428 | 1074 done) |
1075 #endif | |
1076 | |
1330 | 1077 ###################### Dependencies |
1078 | |
428 | 1079 ## Dependency processing using home-grown script, not makedepend |
1080 .PHONY: depend | |
1081 FRC.depend: | |
1082 depend: FRC.depend | |
1330 | 1083 cd $(SRC) && $(RM) depend.tmp && \ |
428 | 1084 perl ./make-src-depend > depend.tmp && \ |
1085 if cmp -s depend depend.tmp; \ | |
1086 then $(RM) depend.tmp; \ | |
1087 else $(RM) depend && mv depend.tmp depend; \ | |
1088 fi | |
1330 | 1089 |
1090 ###################### Unicode encapsulation | |
1091 | |
1092 .PHONY: unicode-encapsulate | |
1093 FRC.unicode-encapsulate: | |
1094 unicode-encapsulate: FRC.unicode-encapsulate | |
1095 cd $(SRC) && \ | |
1096 perl ../lib-src/make-mswin-unicode.pl --c-output intl-auto-encap-win32.c --h-output intl-auto-encap-win32.h intl-encap-win32.c |