Mercurial > hg > xemacs-beta
annotate lib-src/Makefile.in.in @ 5127:a9c41067dd88 ben-lisp-object
more cleanups, terminology clarification, lots of doc work
-------------------- ChangeLog entries follow: --------------------
man/ChangeLog addition:
2010-03-05 Ben Wing <ben@xemacs.org>
* internals/internals.texi (Introduction to Allocation):
* internals/internals.texi (Integers and Characters):
* internals/internals.texi (Allocation from Frob Blocks):
* internals/internals.texi (lrecords):
* internals/internals.texi (Low-level allocation):
Rewrite section on allocation of Lisp objects to reflect the new
reality. Remove references to nonexistent XSETINT and XSETCHAR.
modules/ChangeLog addition:
2010-03-05 Ben Wing <ben@xemacs.org>
* postgresql/postgresql.c (allocate_pgconn):
* postgresql/postgresql.c (allocate_pgresult):
* postgresql/postgresql.h (struct Lisp_PGconn):
* postgresql/postgresql.h (struct Lisp_PGresult):
* ldap/eldap.c (allocate_ldap):
* ldap/eldap.h (struct Lisp_LDAP):
Same changes as in src/ dir. See large log there in ChangeLog,
but basically:
ALLOC_LISP_OBJECT -> ALLOC_NORMAL_LISP_OBJECT
LISP_OBJECT_HEADER -> NORMAL_LISP_OBJECT_HEADER
../hlo/src/ChangeLog addition:
2010-03-05 Ben Wing <ben@xemacs.org>
* alloc.c:
* alloc.c (old_alloc_sized_lcrecord):
* alloc.c (very_old_free_lcrecord):
* alloc.c (copy_lisp_object):
* alloc.c (zero_sized_lisp_object):
* alloc.c (zero_nonsized_lisp_object):
* alloc.c (lisp_object_storage_size):
* alloc.c (free_normal_lisp_object):
* alloc.c (FREE_FIXED_TYPE_WHEN_NOT_IN_GC):
* alloc.c (ALLOC_FROB_BLOCK_LISP_OBJECT):
* alloc.c (Fcons):
* alloc.c (noseeum_cons):
* alloc.c (make_float):
* alloc.c (make_bignum):
* alloc.c (make_bignum_bg):
* alloc.c (make_ratio):
* alloc.c (make_ratio_bg):
* alloc.c (make_ratio_rt):
* alloc.c (make_bigfloat):
* alloc.c (make_bigfloat_bf):
* alloc.c (size_vector):
* alloc.c (make_compiled_function):
* alloc.c (Fmake_symbol):
* alloc.c (allocate_extent):
* alloc.c (allocate_event):
* alloc.c (make_key_data):
* alloc.c (make_button_data):
* alloc.c (make_motion_data):
* alloc.c (make_process_data):
* alloc.c (make_timeout_data):
* alloc.c (make_magic_data):
* alloc.c (make_magic_eval_data):
* alloc.c (make_eval_data):
* alloc.c (make_misc_user_data):
* alloc.c (Fmake_marker):
* alloc.c (noseeum_make_marker):
* alloc.c (size_string_direct_data):
* alloc.c (make_uninit_string):
* alloc.c (make_string_nocopy):
* alloc.c (mark_lcrecord_list):
* alloc.c (alloc_managed_lcrecord):
* alloc.c (free_managed_lcrecord):
* alloc.c (sweep_lcrecords_1):
* alloc.c (malloced_storage_size):
* buffer.c (allocate_buffer):
* buffer.c (compute_buffer_usage):
* buffer.c (DEFVAR_BUFFER_LOCAL_1):
* buffer.c (nuke_all_buffer_slots):
* buffer.c (common_init_complex_vars_of_buffer):
* buffer.h (struct buffer_text):
* buffer.h (struct buffer):
* bytecode.c:
* bytecode.c (make_compiled_function_args):
* bytecode.c (size_compiled_function_args):
* bytecode.h (struct compiled_function_args):
* casetab.c (allocate_case_table):
* casetab.h (struct Lisp_Case_Table):
* charset.h (struct Lisp_Charset):
* chartab.c (fill_char_table):
* chartab.c (Fmake_char_table):
* chartab.c (make_char_table_entry):
* chartab.c (copy_char_table_entry):
* chartab.c (Fcopy_char_table):
* chartab.c (put_char_table):
* chartab.h (struct Lisp_Char_Table_Entry):
* chartab.h (struct Lisp_Char_Table):
* console-gtk-impl.h (struct gtk_device):
* console-gtk-impl.h (struct gtk_frame):
* console-impl.h (struct console):
* console-msw-impl.h (struct Lisp_Devmode):
* console-msw-impl.h (struct mswindows_device):
* console-msw-impl.h (struct msprinter_device):
* console-msw-impl.h (struct mswindows_frame):
* console-msw-impl.h (struct mswindows_dialog_id):
* console-stream-impl.h (struct stream_console):
* console-stream.c (stream_init_console):
* console-tty-impl.h (struct tty_console):
* console-tty-impl.h (struct tty_device):
* console-tty.c (allocate_tty_console_struct):
* console-x-impl.h (struct x_device):
* console-x-impl.h (struct x_frame):
* console.c (allocate_console):
* console.c (nuke_all_console_slots):
* console.c (DEFVAR_CONSOLE_LOCAL_1):
* console.c (common_init_complex_vars_of_console):
* data.c (make_weak_list):
* data.c (make_weak_box):
* data.c (make_ephemeron):
* database.c:
* database.c (struct Lisp_Database):
* database.c (allocate_database):
* database.c (finalize_database):
* device-gtk.c (allocate_gtk_device_struct):
* device-impl.h (struct device):
* device-msw.c:
* device-msw.c (mswindows_init_device):
* device-msw.c (msprinter_init_device):
* device-msw.c (finalize_devmode):
* device-msw.c (allocate_devmode):
* device-tty.c (allocate_tty_device_struct):
* device-x.c (allocate_x_device_struct):
* device.c:
* device.c (nuke_all_device_slots):
* device.c (allocate_device):
* dialog-msw.c (handle_question_dialog_box):
* elhash.c:
* elhash.c (struct Lisp_Hash_Table):
* elhash.c (finalize_hash_table):
* elhash.c (make_general_lisp_hash_table):
* elhash.c (Fcopy_hash_table):
* elhash.h (htentry):
* emacs.c (main_1):
* eval.c:
* eval.c (size_multiple_value):
* event-stream.c (finalize_command_builder):
* event-stream.c (allocate_command_builder):
* event-stream.c (free_command_builder):
* event-stream.c (event_stream_generate_wakeup):
* event-stream.c (event_stream_resignal_wakeup):
* event-stream.c (event_stream_disable_wakeup):
* event-stream.c (event_stream_wakeup_pending_p):
* events.h (struct Lisp_Timeout):
* events.h (struct command_builder):
* extents-impl.h:
* extents-impl.h (struct extent_auxiliary):
* extents-impl.h (struct extent_info):
* extents-impl.h (set_extent_no_chase_aux_field):
* extents-impl.h (set_extent_no_chase_normal_field):
* extents.c:
* extents.c (gap_array_marker):
* extents.c (gap_array):
* extents.c (extent_list_marker):
* extents.c (extent_list):
* extents.c (stack_of_extents):
* extents.c (gap_array_make_marker):
* extents.c (extent_list_make_marker):
* extents.c (allocate_extent_list):
* extents.c (SLOT):
* extents.c (mark_extent_auxiliary):
* extents.c (allocate_extent_auxiliary):
* extents.c (attach_extent_auxiliary):
* extents.c (size_gap_array):
* extents.c (finalize_extent_info):
* extents.c (allocate_extent_info):
* extents.c (uninit_buffer_extents):
* extents.c (allocate_soe):
* extents.c (copy_extent):
* extents.c (vars_of_extents):
* extents.h:
* faces.c (allocate_face):
* faces.h (struct Lisp_Face):
* faces.h (struct face_cachel):
* file-coding.c:
* file-coding.c (finalize_coding_system):
* file-coding.c (sizeof_coding_system):
* file-coding.c (Fcopy_coding_system):
* file-coding.h (struct Lisp_Coding_System):
* file-coding.h (MARKED_SLOT):
* fns.c (size_bit_vector):
* font-mgr.c:
* font-mgr.c (finalize_fc_pattern):
* font-mgr.c (print_fc_pattern):
* font-mgr.c (Ffc_pattern_p):
* font-mgr.c (Ffc_pattern_create):
* font-mgr.c (Ffc_name_parse):
* font-mgr.c (Ffc_name_unparse):
* font-mgr.c (Ffc_pattern_duplicate):
* font-mgr.c (Ffc_pattern_add):
* font-mgr.c (Ffc_pattern_del):
* font-mgr.c (Ffc_pattern_get):
* font-mgr.c (fc_config_create_using):
* font-mgr.c (fc_strlist_to_lisp_using):
* font-mgr.c (fontset_to_list):
* font-mgr.c (Ffc_config_p):
* font-mgr.c (Ffc_config_up_to_date):
* font-mgr.c (Ffc_config_build_fonts):
* font-mgr.c (Ffc_config_get_cache):
* font-mgr.c (Ffc_config_get_fonts):
* font-mgr.c (Ffc_config_set_current):
* font-mgr.c (Ffc_config_get_blanks):
* font-mgr.c (Ffc_config_get_rescan_interval):
* font-mgr.c (Ffc_config_set_rescan_interval):
* font-mgr.c (Ffc_config_app_font_add_file):
* font-mgr.c (Ffc_config_app_font_add_dir):
* font-mgr.c (Ffc_config_app_font_clear):
* font-mgr.c (size):
* font-mgr.c (Ffc_config_substitute):
* font-mgr.c (Ffc_font_render_prepare):
* font-mgr.c (Ffc_font_match):
* font-mgr.c (Ffc_font_sort):
* font-mgr.c (finalize_fc_config):
* font-mgr.c (print_fc_config):
* font-mgr.h:
* font-mgr.h (struct fc_pattern):
* font-mgr.h (XFC_PATTERN):
* font-mgr.h (struct fc_config):
* font-mgr.h (XFC_CONFIG):
* frame-gtk.c (allocate_gtk_frame_struct):
* frame-impl.h (struct frame):
* frame-msw.c (mswindows_init_frame_1):
* frame-x.c (allocate_x_frame_struct):
* frame.c (nuke_all_frame_slots):
* frame.c (allocate_frame_core):
* gc.c:
* gc.c (GC_CHECK_NOT_FREE):
* glyphs.c (finalize_image_instance):
* glyphs.c (allocate_image_instance):
* glyphs.c (Fcolorize_image_instance):
* glyphs.c (allocate_glyph):
* glyphs.c (unmap_subwindow_instance_cache_mapper):
* glyphs.c (register_ignored_expose):
* glyphs.h (struct Lisp_Image_Instance):
* glyphs.h (struct Lisp_Glyph):
* glyphs.h (struct glyph_cachel):
* glyphs.h (struct expose_ignore):
* gui.c (allocate_gui_item):
* gui.h (struct Lisp_Gui_Item):
* keymap.c (struct Lisp_Keymap):
* keymap.c (make_keymap):
* lisp.h:
* lisp.h (struct Lisp_String_Direct_Data):
* lisp.h (struct Lisp_String_Indirect_Data):
* lisp.h (struct Lisp_Vector):
* lisp.h (struct Lisp_Bit_Vector):
* lisp.h (DECLARE_INLINE_LISP_BIT_VECTOR):
* lisp.h (struct weak_box):
* lisp.h (struct ephemeron):
* lisp.h (struct weak_list):
* lrecord.h:
* lrecord.h (struct lrecord_implementation):
* lrecord.h (MC_ALLOC_CALL_FINALIZER):
* lrecord.h (struct lcrecord_list):
* lstream.c (finalize_lstream):
* lstream.c (sizeof_lstream):
* lstream.c (Lstream_new):
* lstream.c (Lstream_delete):
* lstream.h (struct lstream):
* marker.c:
* marker.c (finalize_marker):
* marker.c (compute_buffer_marker_usage):
* mule-charset.c:
* mule-charset.c (make_charset):
* mule-charset.c (compute_charset_usage):
* objects-impl.h (struct Lisp_Color_Instance):
* objects-impl.h (struct Lisp_Font_Instance):
* objects-tty-impl.h (struct tty_color_instance_data):
* objects-tty-impl.h (struct tty_font_instance_data):
* objects-tty.c (tty_initialize_color_instance):
* objects-tty.c (tty_initialize_font_instance):
* objects.c (finalize_color_instance):
* objects.c (Fmake_color_instance):
* objects.c (finalize_font_instance):
* objects.c (Fmake_font_instance):
* objects.c (reinit_vars_of_objects):
* opaque.c:
* opaque.c (sizeof_opaque):
* opaque.c (make_opaque_ptr):
* opaque.c (free_opaque_ptr):
* opaque.h:
* opaque.h (Lisp_Opaque):
* opaque.h (Lisp_Opaque_Ptr):
* print.c (printing_unreadable_lcrecord):
* print.c (external_object_printer):
* print.c (debug_p4):
* process.c (finalize_process):
* process.c (make_process_internal):
* procimpl.h (struct Lisp_Process):
* rangetab.c (Fmake_range_table):
* rangetab.c (Fcopy_range_table):
* rangetab.h (struct Lisp_Range_Table):
* scrollbar.c:
* scrollbar.c (create_scrollbar_instance):
* scrollbar.c (compute_scrollbar_instance_usage):
* scrollbar.h (struct scrollbar_instance):
* specifier.c (finalize_specifier):
* specifier.c (sizeof_specifier):
* specifier.c (set_specifier_caching):
* specifier.h (struct Lisp_Specifier):
* specifier.h (struct specifier_caching):
* symeval.h:
* symeval.h (SYMBOL_VALUE_MAGIC_P):
* symeval.h (DEFVAR_SYMVAL_FWD):
* symsinit.h:
* syntax.c (init_buffer_syntax_cache):
* syntax.h (struct syntax_cache):
* toolbar.c:
* toolbar.c (allocate_toolbar_button):
* toolbar.c (update_toolbar_button):
* toolbar.h (struct toolbar_button):
* tooltalk.c (struct Lisp_Tooltalk_Message):
* tooltalk.c (make_tooltalk_message):
* tooltalk.c (struct Lisp_Tooltalk_Pattern):
* tooltalk.c (make_tooltalk_pattern):
* ui-gtk.c:
* ui-gtk.c (allocate_ffi_data):
* ui-gtk.c (emacs_gtk_object_finalizer):
* ui-gtk.c (allocate_emacs_gtk_object_data):
* ui-gtk.c (allocate_emacs_gtk_boxed_data):
* ui-gtk.h:
* window-impl.h (struct window):
* window-impl.h (struct window_mirror):
* window.c (finalize_window):
* window.c (allocate_window):
* window.c (new_window_mirror):
* window.c (mark_window_as_deleted):
* window.c (make_dummy_parent):
* window.c (compute_window_mirror_usage):
* window.c (compute_window_usage):
Overall point of this change and previous ones in this repository:
(1) Introduce new, clearer terminology: everything other than int
or char is a "record" object, which comes in two types: "normal
objects" and "frob-block objects". Fix up all places that
referred to frob-block objects as "simple", "basic", etc.
(2) Provide an advertised interface for doing operations on Lisp
objects, including creating new types, that is clean and
consistent in its naming, uses the above-referenced terms and
avoids referencing "lrecords", "old lcrecords", etc., which should
hide under the surface.
(3) Make the size_in_bytes and finalizer methods take a
Lisp_Object rather than a void * for consistency with other methods.
(4) Separate finalizer method into finalizer and disksaver, so
that normal finalize methods don't have to worry about disksaving.
Other specifics:
(1) Renaming:
LISP_OBJECT_HEADER -> NORMAL_LISP_OBJECT_HEADER
ALLOC_LISP_OBJECT -> ALLOC_NORMAL_LISP_OBJECT
implementation->basic_p -> implementation->frob_block_p
ALLOCATE_FIXED_TYPE_AND_SET_IMPL -> ALLOC_FROB_BLOCK_LISP_OBJECT
*FCCONFIG*, wrap_fcconfig -> *FC_CONFIG*, wrap_fc_config
*FCPATTERN*, wrap_fcpattern -> *FC_PATTERN*, wrap_fc_pattern
(the last two changes make the naming of these macros consistent
with the naming of all other macros, since the objects are named
fc-config and fc-pattern with a hyphen)
(2) Lots of documentation fixes in lrecord.h.
(3) Eliminate macros for copying, freeing, zeroing objects, getting
their storage size. Instead, new functions:
zero_sized_lisp_object()
zero_nonsized_lisp_object()
lisp_object_storage_size()
free_normal_lisp_object()
(copy_lisp_object() already exists)
LISP_OBJECT_FROB_BLOCK_P() (actually a macro)
Eliminated:
free_lrecord()
zero_lrecord()
copy_lrecord()
copy_sized_lrecord()
old_copy_lcrecord()
old_copy_sized_lcrecord()
old_zero_lcrecord()
old_zero_sized_lcrecord()
LISP_OBJECT_STORAGE_SIZE()
COPY_SIZED_LISP_OBJECT()
COPY_SIZED_LCRECORD()
COPY_LISP_OBJECT()
ZERO_LISP_OBJECT()
FREE_LISP_OBJECT()
(4) Catch the remaining places where lrecord stuff was used directly
and use the advertised interface, e.g. alloc_sized_lrecord() ->
ALLOC_SIZED_LISP_OBJECT().
(5) Make certain statically-declared pseudo-objects
(buffer_local_flags, console_local_flags) have their lheader
initialized correctly, so things like copy_lisp_object() can work
on them. Make extent_auxiliary_defaults a proper heap object
Vextent_auxiliary_defaults, and make extent auxiliaries dumpable
so that this object can be dumped. allocate_extent_auxiliary()
now just creates the object, and attach_extent_auxiliary()
creates an extent auxiliary and attaches to an extent, like the
old allocate_extent_auxiliary().
(6) Create EXTENT_AUXILIARY_SLOTS macro, similar to the foo-slots.h
files but in a macro instead of a file. The purpose is to avoid
duplication when iterating over all the slots in an extent auxiliary.
Use it.
(7) In lstream.c, don't zero out object after allocation because
allocation routines take care of this.
(8) In marker.c, fix a mistake in computing marker overhead.
(9) In print.c, clean up printing_unreadable_lcrecord(),
external_object_printer() to avoid lots of ifdef NEW_GC's.
(10) Separate toolbar-button allocation into a separate
allocate_toolbar_button() function for use in the example code
in lrecord.h.
author | Ben Wing <ben@xemacs.org> |
---|---|
date | Fri, 05 Mar 2010 04:08:17 -0600 |
parents | 03ab78e48ef6 |
children | 308d34e9f07d |
rev | line source |
---|---|
428 | 1 ## Makefile for lib-src subdirectory in XEmacs. |
2 ## Copyright (C) 1985, 1987, 1988, 1993, 1994 Free Software Foundation, Inc. | |
3 ## Copyright (C) 1996, 1997 Sun Microsystems, Inc. | |
3062 | 4 ## Copyright (C) 2005 Ben Wing. |
428 | 5 |
6 ## This file is part of XEmacs. | |
7 | |
8 ## XEmacs is free software; you can redistribute it and/or modify it | |
9 ## under the terms of the GNU General Public License as published by the | |
10 ## Free Software Foundation; either version 2, or (at your option) any | |
11 ## later version. | |
12 | |
13 ## XEmacs is distributed in the hope that it will be useful, but WITHOUT | |
14 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
15 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
16 ## for more details. | |
17 | |
18 ## You should have received a copy of the GNU General Public License | |
19 ## along with XEmacs; see the file COPYING. If not, write to | |
20 ## the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
21 ## Boston, MA 02111-1307, USA. | |
22 | |
23 ## Note: FSF Makefile.in.in does something weird so that the comments | |
24 ## above a certain point in this file are in shell format instead of | |
25 ## in C format. How the hell is this supposed to work? */ | |
26 | |
27 ## For performance and consistency, no built-in rules | |
28 .SUFFIXES: | |
29 .SUFFIXES: .c .h .o | |
30 ## ==================== Things "configure" will edit ==================== | |
31 | |
32 @SET_MAKE@ | |
33 SHELL = /bin/sh | |
34 RM = rm -f | |
35 pwd = /bin/pwd | |
36 | |
37 CC=@CC@ | |
38 CPP=@CPP@ | |
39 CFLAGS=@CFLAGS@ | |
40 CPPFLAGS=@CPPFLAGS@ | |
41 LDFLAGS=@LDFLAGS@ | |
42 ALLOCA=@ALLOCA@ | |
43 LN_S=@LN_S@ | |
44 version=@version@ | |
3972 | 45 etags_xemacs_version=@verbose_version@ |
428 | 46 |
47 ## This will be the name of the generated binary and is set automatically | |
48 ## by configure. | |
49 PROGNAME=@PROGNAME@ | |
50 | |
51 ## ==================== Where To Install Things ==================== | |
52 | |
53 prefix=@prefix@ | |
54 exec_prefix=@exec_prefix@ | |
55 bindir=@bindir@ | |
56 libdir=@libdir@ | |
57 srcdir=@srcdir@ | |
58 datadir=@datadir@ | |
4118 | 59 datarootdir=@datarootdir@ |
428 | 60 instvardir=@instvardir@ |
61 top_srcdir=@top_srcdir@ | |
62 archlibdir=@archlibdir@ | |
63 configuration=@configuration@ | |
64 moduledir=@moduledir@ | |
65 sitemoduledir=@sitemoduledir@ | |
66 | |
67 ## ==================== Utility Programs for the Build ================= | |
68 | |
69 INSTALL = @install_pp@ @INSTALL@ | |
70 INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
71 INSTALL_DATA = @INSTALL_DATA@ | |
72 | |
73 ## ========================== Lists of Files =========================== | |
74 | |
75 #define NO_SHORTNAMES | |
76 #define NOT_C_CODE | |
77 #include "../src/config.h" | |
78 | |
460 | 79 #ifndef WIN32_NATIVE |
80 #define INSTALL_GNUSERV | |
428 | 81 #endif |
82 | |
460 | 83 ## ---------------------------------------------------------------- |
84 ## Things that a user might actually run directly, | |
85 ## which should be installed in ${bindir}. | |
428 | 86 |
460 | 87 PUBLIC_INSTALLABLE_EXES=\ |
88 #ifdef INSTALL_GNUSERV | |
89 gnuclient\ | |
90 #endif | |
91 #ifdef HAVE_SHLIB | |
92 ellcc\ | |
93 #endif | |
819 | 94 #ifdef HAVE_MS_WINDOWS |
95 winclient\ | |
96 #endif | |
460 | 97 etags ctags b2m ootags |
98 | |
99 #ifdef INSTALL_GNUSERV | |
4782
1523f1d28be1
Remove more obsolete files. See xemacs-patches message with ID
Jerry James <james@xemacs.org>
parents:
4773
diff
changeset
|
100 PUBLIC_INSTALLABLE_SCRIPTS=gnudoit gnuattach |
1523f1d28be1
Remove more obsolete files. See xemacs-patches message with ID
Jerry James <james@xemacs.org>
parents:
4773
diff
changeset
|
101 #else |
1523f1d28be1
Remove more obsolete files. See xemacs-patches message with ID
Jerry James <james@xemacs.org>
parents:
4773
diff
changeset
|
102 PUBLIC_INSTALLABLE_SCRIPTS= |
460 | 103 #endif |
104 | |
105 PUBLIC_INSTALLABLES = ${PUBLIC_INSTALLABLE_EXES} ${PUBLIC_INSTALLABLE_SCRIPTS} | |
106 | |
107 ## ---------------------------------------------------------------- | |
108 ## Things that XEmacs runs internally on the user's behalf, | |
109 ## which should be installed in ${archlibdir}. | |
110 | |
111 PRIVATE_INSTALLABLE_EXES=\ | |
112 #ifdef INSTALL_GNUSERV | |
113 gnuserv\ | |
114 #endif | |
442 | 115 #ifdef WIN32_NATIVE |
460 | 116 i minitar\ |
428 | 117 #else |
460 | 118 fakemail\ |
428 | 119 #endif |
4773
c858892e4f2b
Remove build rules that try to make wakeup out of the now nonexistent wakeup.c.
Jerry James <james@xemacs.org>
parents:
4118
diff
changeset
|
120 profile make-docfile digest-doc\ |
4785
d6cfba1cc388
Remove the lib-src/yow binary, which is currently unused anyway. See message
Jerry James <james@xemacs.org>
parents:
4782
diff
changeset
|
121 sorted-doc movemail cvtmail hexl mmencode |
428 | 122 |
123 GEN_SCRIPTS = rcs2log vcdiff gzip-el.sh | |
124 PKG_SCRIPTS = add-big-package.sh | |
460 | 125 PRIVATE_INSTALLABLE_SCRIPTS = $(GEN_SCRIPTS) $(PKG_SCRIPTS) |
126 | |
127 PRIVATE_INSTALLABLES = ${PRIVATE_INSTALLABLE_EXES} ${PRIVATE_INSTALLABLE_SCRIPTS} | |
128 | |
129 ## ---------------------------------------------------------------- | |
130 ## Things that XEmacs uses during the build process itself. | |
131 ## Not installed. | |
428 | 132 |
2720 | 133 #ifdef DUMP_IN_EXEC |
2015 | 134 BUILD_UTILITIES = make-path make-dump-id insert-data-in-exec |
2720 | 135 #else |
136 BUILD_UTILITIES = make-path make-dump-id | |
137 #endif | |
460 | 138 |
139 EXES = ${PUBLIC_INSTALLABLE_EXES} ${PRIVATE_INSTALLABLE_EXES} ${BUILD_UTILITIES} | |
140 SCRIPTS = ${PUBLIC_INSTALLABLE_SCRIPTS} ${PRIVATE_INSTALLABLE_SCRIPTS} | |
141 PROGS = ${EXES} ${SCRIPTS} | |
142 | |
428 | 143 ## Additional -D flags for movemail (add to MOVE_FLAGS if desired): |
144 ## MAIL_USE_POP Support mail retrieval from a POP mailbox. | |
145 ## MAIL_USE_MMDF Support MMDF mailboxes. | |
146 ## MAIL_USE_FLOCK Use flock for file locking (see the comments | |
147 ## about locking in movemail.c) | |
148 ## MAIL_UNLINK_SPOOL Unlink the user spool mailbox after reading | |
149 ## it (instead of just emptying it). | |
150 ## KERBEROS Support Kerberized POP. | |
151 ## KRB5 Support Kerberos Version 5 pop instead of | |
152 ## Version 4 (define this in addition to | |
153 ## KERBEROS). | |
154 ## HESIOD Support Hesiod lookups of user mailboxes. | |
155 ## MAILHOST A string, the host name of the default POP | |
156 ## mail host for the site. | |
157 | |
158 MOVE_FLAGS= | |
159 ## | |
160 ## Additional libraries for movemail: | |
161 ## For KERBEROS | |
162 ## MOVE_LIBS= -lkrb -ldes -lcom_err | |
163 ## For KERBEROS + KRB5 | |
164 ## MOVE_LIBS= -lkrb5 -lcrypto -lisode -lcom_err | |
165 ## Add "-lhesiod" if HESIOD is defined. | |
166 | |
167 MOVE_LIBS= | |
168 | |
169 ## ========================== start of cpp stuff ======================= | |
170 | |
171 #ifdef USE_GNU_MAKE | |
172 vpath %.c @srcdir@ | |
173 vpath %.h @srcdir@ | |
174 #else | |
175 VPATH=@srcdir@ | |
176 #endif | |
177 | |
178 c_switch_general=@c_switch_general@ | |
179 c_switch_all=@c_switch_all@ | |
180 ld_switch_general=@ld_switch_general@ | |
181 ld_switch_all=@ld_switch_all@ | |
182 ld_libs_general=@ld_libs_general@ | |
183 | |
184 ## We need to #define emacs to get the right versions of some files. | |
185 | |
438 | 186 ## To understand the order of -I flags, consider what happens if you run |
187 ## ./configure in the source tree, and then run | |
188 ## $(srcdir).2.26/configure in some other build tree. | |
189 ## Where will the generated files like config.h be included from? | |
190 ## This is also why you _must_ use <...> instead of "..." | |
191 ## when #include'ing generated files. | |
446 | 192 cppflags = -I. -I../src -I$(srcdir) -I$(top_srcdir)/src $(CPPFLAGS) |
428 | 193 cflags = $(CFLAGS) $(cppflags) $(c_switch_general) |
194 ldflags = $(LDFLAGS) $(ld_switch_general) $(ld_libs_general) | |
195 | |
196 ## This is the default compilation command. | |
197 ## But we should never rely on it, because some make version | |
198 ## failed to find it for getopt.o. | |
199 ## Using an explicit command made it work. | |
200 .c.o: | |
201 ${CC} -c $(cflags) $< | |
202 | |
460 | 203 .PHONY : all maybe-blessmail install uninstall check |
428 | 204 |
460 | 205 all: ${PROGS} |
428 | 206 |
207 ## Make symlinks for shell scripts if using --srcdir | |
460 | 208 ${SCRIPTS}: |
428 | 209 for f in ${SCRIPTS}; do \ |
210 if test ! -r $$f; then ${LN_S} ${srcdir}/$$f $$f; fi; \ | |
460 | 211 done |
428 | 212 |
213 #undef MOVEMAIL_NEEDS_BLESSING | |
214 #if !defined (MAIL_USE_FLOCK) && ! defined (MAIL_USE_LOCKF) | |
215 #define MOVEMAIL_NEEDS_BLESSING | |
216 blessmail = blessmail | |
217 blessmail: | |
776 | 218 ../src/xemacs -batch -no-packages -l ../lisp/blessmail.el |
428 | 219 chmod +x $@ |
220 #endif /* movemail needs blessing */ | |
221 | |
222 maybe-blessmail: $(blessmail) | |
223 #ifdef MOVEMAIL_NEEDS_BLESSING | |
224 ## Do not charge ahead and do it! Let the installer decide. | |
225 ## ./blessmail ${archlibdir}/movemail | |
226 @if test `wc -l <blessmail` != 2; then \ | |
227 dir=`sed -n -e 's/echo mail directory = \(.*\)/\1/p' blessmail`; \ | |
228 echo "*************************************************************";\ | |
229 echo "Assuming $$dir is really the mail spool directory, you should";\ | |
230 echo "run lib-src/blessmail ${archlibdir}/movemail"; \ | |
231 echo "as root, to give movemail appropriate permissions."; \ | |
232 echo "Do that after running make install."; \ | |
233 echo "You can also do make blessmail. "; \ | |
234 echo "*************************************************************";\ | |
235 fi | |
236 #endif | |
237 | |
238 do-blessmail: $(blessmail) | |
239 #ifdef MOVEMAIL_NEEDS_BLESSING | |
240 ./blessmail ${archlibdir}/movemail | |
241 #endif | |
242 | |
243 ## Install the internal utilities. Until they are installed, we can | |
244 ## just run them directly from lib-src. | |
245 ${archlibdir}: all | |
246 @echo; echo "Installing utilities run internally by XEmacs." | |
247 ./make-path ${archlibdir} | |
248 if test "`(cd ${archlibdir} && $(pwd))`" != "`$(pwd)`"; then \ | |
460 | 249 for f in ${PRIVATE_INSTALLABLE_EXES}; do \ |
428 | 250 (cd .. && $(INSTALL_PROGRAM) lib-src/$$f ${archlibdir}/$$f) ; \ |
251 done ; \ | |
252 fi | |
253 if test "`(cd ${archlibdir} && $(pwd))`" \ | |
254 != "`(cd ${srcdir} && $(pwd))`"; then \ | |
460 | 255 for f in ${PRIVATE_INSTALLABLE_SCRIPTS}; do \ |
428 | 256 (cd .. && $(INSTALL_PROGRAM) ${srcdir}/$$f ${archlibdir}/$$f); \ |
257 done ; \ | |
258 fi | |
259 | |
260 install: ${archlibdir} | |
261 @echo; echo "Installing utilities for users to run." | |
460 | 262 for file in ${PUBLIC_INSTALLABLE_EXES} ; do \ |
428 | 263 (cd .. && $(INSTALL_PROGRAM) lib-src/$${file} ${bindir}/$${file}) ; \ |
264 done | |
460 | 265 for file in ${PUBLIC_INSTALLABLE_SCRIPTS} ; do \ |
428 | 266 (cd .. && $(INSTALL_PROGRAM) ${srcdir}/$${file} ${bindir}/$${file}) ; \ |
267 done | |
268 | |
269 uninstall: | |
460 | 270 cd ${bindir} && $(RM) ${PUBLIC_INSTALLABLES} |
271 cd ${archlibdir} && $(RM) ${PRIVATE_INSTALLABLES} | |
428 | 272 |
273 .PHONY: mostlyclean clean distclean realclean extraclean | |
3062 | 274 .PHONY: distclean-noconfig realclean-noconfig extraclean-noconfig |
428 | 275 mostlyclean: |
3083 | 276 -$(RM) *.o *.i core |
428 | 277 clean: mostlyclean |
3083 | 278 -$(RM) ${EXES} *.exe |
3062 | 279 distclean-noconfig: clean |
3083 | 280 -$(RM) DOC *.tab.c *.tab.h TAGS ellcc.h blessmail config.values |
3062 | 281 ## This is used in making a distribution. |
282 ## Do not use it on development directories! | |
283 distclean: distclean-noconfig | |
3083 | 284 -$(RM) GNUmakefile Makefile Makefile.in |
3062 | 285 realclean-noconfig: distclean-noconfig |
428 | 286 realclean: distclean |
3062 | 287 extraclean-noconfig: realclean-noconfig |
3083 | 288 -$(RM) *~ \#* |
3062 | 289 extraclean: realclean |
3083 | 290 -$(RM) *~ \#* |
428 | 291 |
292 ## Test the contents of the directory. | |
293 check: | |
460 | 294 @echo "We don't have any tests for lib-src yet." |
428 | 295 |
296 TAGS: etags | |
297 etags *.[ch] | |
298 | |
299 GETOPTOBJS = getopt.o getopt1.o $(ALLOCA) | |
300 GETOPTDEPS = $(GETOPTOBJS) ${srcdir}/getopt.h | |
301 getopt.o: ${srcdir}/getopt.c ${srcdir}/getopt.h | |
302 ${CC} -c $(cflags) ${srcdir}/getopt.c | |
303 getopt1.o: ${srcdir}/getopt1.c ${srcdir}/getopt.h | |
304 ${CC} -c $(cflags) ${srcdir}/getopt1.c | |
438 | 305 alloca.o: ${top_srcdir}/src/alloca.c |
428 | 306 ${CC} -c $(cflags) ${srcdir}/../src/alloca.c |
307 | |
438 | 308 regex.o: ${srcdir}/../src/regex.c ${top_srcdir}/src/regex.h |
446 | 309 $(CC) -c $(cflags) \ |
442 | 310 -DINHIBIT_STRING_HEADER ${top_srcdir}/src/regex.c |
428 | 311 |
3972 | 312 etags_args = $(cflags) -DEMACS_NAME='"XEmacs"' -DVERSION='"${etags_xemacs_version}"' \ |
709 | 313 ${srcdir}/etags.c $(GETOPTOBJS) regex.o $(ldflags) |
438 | 314 etags_deps = ${srcdir}/etags.c $(GETOPTDEPS) regex.o ../src/config.h |
428 | 315 |
316 etags: ${etags_deps} | |
317 $(CC) ${etags_args} -o $@ | |
318 | |
438 | 319 ellcc_args = $(cflags) ${srcdir}/ellcc.c $(ldflags) |
428 | 320 ellcc_deps = ${srcdir}/ellcc.c ellcc.h ../src/config.h |
321 | |
322 ellcc: ${ellcc_deps} | |
323 $(CC) ${ellcc_args} -o $@ | |
324 | |
3972 | 325 ## #### we should probably do the same as for pot's etags |
438 | 326 ootags_args = $(cflags) -DVERSION='"${version}"' ${srcdir}/ootags.c \ |
428 | 327 $(GETOPTOBJS) regex.o $(ldflags) |
438 | 328 ootags_deps = ${srcdir}/ootags.c $(GETOPTDEPS) regex.o ../src/config.h |
428 | 329 |
330 ootags: ${ootags_deps} | |
331 $(CC) ${ootags_args} -o $@ | |
332 | |
333 ## ctags depends on etags to assure that parallel makes do not write | |
334 ## two etags.o files on top of each other. | |
335 ctags: ${etags_deps} etags | |
336 $(CC) -DCTAGS ${etags_args} -o $@ | |
337 | |
338 profile: ${srcdir}/profile.c | |
339 $(CC) $(cflags) ${srcdir}/profile.c $(ldflags) -o $@ | |
340 | |
341 make-docfile: ${srcdir}/make-docfile.c | |
342 $(CC) $(cflags) ${srcdir}/make-docfile.c $(ldflags) -o $@ | |
343 | |
344 digest-doc: ${srcdir}/digest-doc.c | |
446 | 345 $(CC) -Demacs $(cflags) ${srcdir}/digest-doc.c $(ldflags) -o $@ |
428 | 346 |
347 sorted-doc: ${srcdir}/sorted-doc.c | |
348 $(CC) $(cflags) ${srcdir}/sorted-doc.c $(ldflags) -o $@ | |
349 | |
350 b2m: ${srcdir}/b2m.c ../src/config.h | |
351 $(CC) $(cflags) ${srcdir}/b2m.c $(ldflags) -o $@ | |
352 | |
353 movemail: ${srcdir}/movemail.c ${srcdir}/pop.c ${srcdir}/pop.h $(GETOPTDEPS) regex.o \ | |
354 ../src/config.h | |
355 $(CC) $(cflags) ${MOVE_FLAGS} ${srcdir}/movemail.c ${srcdir}/pop.c \ | |
356 $(GETOPTOBJS) regex.o $(ldflags) ${MOVE_LIBS} -o $@ | |
357 | |
358 cvtmail: ${srcdir}/cvtmail.c | |
359 $(CC) $(cflags) ${srcdir}/cvtmail.c $(ldflags) -o $@ | |
360 | |
361 fakemail: ${srcdir}/fakemail.c ../src/config.h | |
362 $(CC) $(cflags) ${srcdir}/fakemail.c $(ldflags) -o $@ | |
363 | |
442 | 364 i: ${srcdir}/i.c |
365 $(CC) $(cflags) ${srcdir}/i.c $(ldflags) -o $@ | |
366 | |
367 minitar: ${srcdir}/../nt/minitar.c | |
368 $(CC) $(cflags) ${srcdir}/../nt/minitar.c $(ldflags) -lz -o $@ | |
369 | |
819 | 370 winclient: ${srcdir}/winclient.c |
371 $(CC) $(cflags) ${srcdir}/winclient.c $(ldflags) -o $@ | |
372 | |
428 | 373 hexl: ${srcdir}/hexl.c |
374 $(CC) $(cflags) ${srcdir}/hexl.c $(ldflags) -o $@ | |
375 | |
442 | 376 make-dump-id: ${srcdir}/make-dump-id.c |
377 $(CC) $(cflags) ${srcdir}/make-dump-id.c $(ldflags) -o $@ | |
378 | |
2720 | 379 #ifndef DUMP_IN_EXEC |
2015 | 380 insert-data-in-exec: ${srcdir}/insert-data-in-exec.c |
381 $(CC) $(cflags) ${srcdir}/insert-data-in-exec.c $(ldflags) -o $@ | |
2720 | 382 #endif /* not DUMP_IN_EXEC */ |
2015 | 383 |
428 | 384 cflags_gnuserv = $(CFLAGS) $(cppflags) $(c_switch_all) |
385 ldflags_gnuserv = $(LDFLAGS) $(ld_switch_all) @libs_xauth@ $(ld_libs_general) | |
386 gnuslib.o: ${srcdir}/gnuslib.c ${srcdir}/gnuserv.h ../src/config.h | |
387 $(CC) -c $(cflags_gnuserv) ${srcdir}/gnuslib.c | |
388 gnuclient: ${srcdir}/gnuclient.c gnuslib.o ${srcdir}/gnuserv.h | |
389 $(CC) $(cflags_gnuserv) ${srcdir}/$@.c gnuslib.o ${ldflags_gnuserv} -o $@ | |
390 gnuserv: ${srcdir}/gnuserv.c gnuslib.o ${srcdir}/gnuserv.h | |
391 $(CC) $(cflags_gnuserv) ${srcdir}/$@.c gnuslib.o ${ldflags_gnuserv} -o $@ | |
392 | |
393 ## mmencode binary is used by tm - but is really part of the metamail package | |
394 ## mmencode.c was merged copy of mmencode.c and codes.c of metamail | |
395 mmencode : ${srcdir}/mmencode.c | |
1886 | 396 $(CC) $(cflags) ${srcdir}/mmencode.c $(ldflags) -o $@ |
428 | 397 |
398 | |
399 ## The timer utility (timer.c, getdate.y) is not used in XEmacs | |
400 ## because XEmacs provides built-in timer facilities. | |
401 | |
402 make-path: ${srcdir}/make-path.c ../src/config.h | |
1886 | 403 $(CC) -Demacs $(cflags) ${srcdir}/make-path.c $(ldflags) -o $@ |