Mercurial > hg > xemacs-beta
annotate nt/xemacs.mak @ 4981:4aebb0131297
Cleanups/renaming of EXTERNAL_TO_C_STRING and friends
-------------------- ChangeLog entries follow: --------------------
modules/ChangeLog addition:
2010-02-05 Ben Wing <ben@xemacs.org>
* postgresql/postgresql.c:
* postgresql/postgresql.c (CHECK_LIVE_CONNECTION):
* postgresql/postgresql.c (Fpq_connectdb):
* postgresql/postgresql.c (Fpq_connect_start):
* postgresql/postgresql.c (Fpq_lo_import):
* postgresql/postgresql.c (Fpq_lo_export):
* ldap/eldap.c (Fldap_open):
* ldap/eldap.c (Fldap_search_basic):
* ldap/eldap.c (Fldap_add):
* ldap/eldap.c (Fldap_modify):
* ldap/eldap.c (Fldap_delete):
* canna/canna_api.c (Fcanna_initialize):
* canna/canna_api.c (Fcanna_store_yomi):
* canna/canna_api.c (Fcanna_parse):
* canna/canna_api.c (Fcanna_henkan_begin):
EXTERNAL_TO_C_STRING returns its argument instead of storing it
in a parameter, and is renamed to EXTERNAL_TO_ITEXT. Similar
things happen to related macros. See entry in src/ChangeLog.
More Mule-izing of postgresql.c. Extract out common code
between `pq-connectdb' and `pq-connect-start'. Fix places
that signal an error string using a formatted string to instead
follow the standard and have a fixed reason followed by the
particular error message stored as one of the frobs.
src/ChangeLog addition:
2010-02-05 Ben Wing <ben@xemacs.org>
* console-msw.c (write_string_to_mswindows_debugging_output):
* console-msw.c (Fmswindows_message_box):
* console-x.c (x_perhaps_init_unseen_key_defaults):
* console.c:
* database.c (dbm_get):
* database.c (dbm_put):
* database.c (dbm_remove):
* database.c (berkdb_get):
* database.c (berkdb_put):
* database.c (berkdb_remove):
* database.c (Fopen_database):
* device-gtk.c (gtk_init_device):
* device-msw.c (msprinter_init_device_internal):
* device-msw.c (msprinter_default_printer):
* device-msw.c (msprinter_init_device):
* device-msw.c (sync_printer_with_devmode):
* device-msw.c (Fmsprinter_select_settings):
* device-x.c (sanity_check_geometry_resource):
* device-x.c (Dynarr_add_validified_lisp_string):
* device-x.c (x_init_device):
* device-x.c (Fx_put_resource):
* device-x.c (Fx_valid_keysym_name_p):
* device-x.c (Fx_set_font_path):
* dialog-msw.c (push_lisp_string_as_unicode):
* dialog-msw.c (handle_directory_dialog_box):
* dialog-msw.c (handle_file_dialog_box):
* dialog-x.c (dbox_descriptor_to_widget_value):
* editfns.c (Fformat_time_string):
* editfns.c (Fencode_time):
* editfns.c (Fset_time_zone_rule):
* emacs.c (make_argc_argv):
* emacs.c (Fdump_emacs):
* emodules.c (emodules_load):
* eval.c:
* eval.c (maybe_signal_error_1):
* event-msw.c (Fdde_alloc_advise_item):
* event-msw.c (mswindows_dde_callback):
* event-msw.c (mswindows_wnd_proc):
* fileio.c (report_error_with_errno):
* fileio.c (Fsysnetunam):
* fileio.c (Fdo_auto_save):
* font-mgr.c (extract_fcapi_string):
* font-mgr.c (Ffc_config_app_font_add_file):
* font-mgr.c (Ffc_config_app_font_add_dir):
* font-mgr.c (Ffc_config_filename):
* frame-gtk.c (gtk_set_frame_text_value):
* frame-gtk.c (gtk_create_widgets):
* frame-msw.c (mswindows_init_frame_1):
* frame-msw.c (mswindows_set_title_from_ibyte):
* frame-msw.c (msprinter_init_frame_3):
* frame-x.c (x_set_frame_text_value):
* frame-x.c (x_set_frame_properties):
* frame-x.c (start_drag_internal_1):
* frame-x.c (x_cde_transfer_callback):
* frame-x.c (x_create_widgets):
* glyphs-eimage.c (my_jpeg_output_message):
* glyphs-eimage.c (jpeg_instantiate):
* glyphs-eimage.c (gif_instantiate):
* glyphs-eimage.c (png_instantiate):
* glyphs-eimage.c (tiff_instantiate):
* glyphs-gtk.c (xbm_instantiate_1):
* glyphs-gtk.c (gtk_xbm_instantiate):
* glyphs-gtk.c (gtk_xpm_instantiate):
* glyphs-gtk.c (gtk_xface_instantiate):
* glyphs-gtk.c (cursor_font_instantiate):
* glyphs-gtk.c (gtk_redisplay_widget):
* glyphs-gtk.c (gtk_widget_instantiate_1):
* glyphs-gtk.c (gtk_add_tab_item):
* glyphs-msw.c (mswindows_xpm_instantiate):
* glyphs-msw.c (bmp_instantiate):
* glyphs-msw.c (mswindows_resource_instantiate):
* glyphs-msw.c (xbm_instantiate_1):
* glyphs-msw.c (mswindows_xbm_instantiate):
* glyphs-msw.c (mswindows_xface_instantiate):
* glyphs-msw.c (mswindows_redisplay_widget):
* glyphs-msw.c (mswindows_widget_instantiate):
* glyphs-msw.c (add_tree_item):
* glyphs-msw.c (add_tab_item):
* glyphs-msw.c (mswindows_combo_box_instantiate):
* glyphs-msw.c (mswindows_widget_query_string_geometry):
* glyphs-x.c (x_locate_pixmap_file):
* glyphs-x.c (xbm_instantiate_1):
* glyphs-x.c (x_xbm_instantiate):
* glyphs-x.c (extract_xpm_color_names):
* glyphs-x.c (x_xpm_instantiate):
* glyphs-x.c (x_xface_instantiate):
* glyphs-x.c (autodetect_instantiate):
* glyphs-x.c (safe_XLoadFont):
* glyphs-x.c (cursor_font_instantiate):
* glyphs-x.c (x_redisplay_widget):
* glyphs-x.c (Fchange_subwindow_property):
* glyphs-x.c (x_widget_instantiate):
* glyphs-x.c (x_tab_control_redisplay):
* glyphs.c (pixmap_to_lisp_data):
* gui-x.c (menu_separator_style_and_to_external):
* gui-x.c (add_accel_and_to_external):
* gui-x.c (button_item_to_widget_value):
* hpplay.c (player_error_internal):
* hpplay.c (play_sound_file):
* hpplay.c (play_sound_data):
* intl.c (Fset_current_locale):
* lisp.h:
* menubar-gtk.c (gtk_xemacs_set_accel_keys):
* menubar-msw.c (populate_menu_add_item):
* menubar-msw.c (populate_or_checksum_helper):
* menubar-x.c (menu_item_descriptor_to_widget_value_1):
* nt.c (init_user_info):
* nt.c (get_long_basename):
* nt.c (nt_get_resource):
* nt.c (init_mswindows_environment):
* nt.c (get_cached_volume_information):
* nt.c (mswindows_readdir):
* nt.c (read_unc_volume):
* nt.c (mswindows_stat):
* nt.c (mswindows_getdcwd):
* nt.c (mswindows_executable_type):
* nt.c (Fmswindows_short_file_name):
* ntplay.c (nt_play_sound_file):
* objects-gtk.c:
* objects-gtk.c (gtk_valid_color_name_p):
* objects-gtk.c (gtk_initialize_font_instance):
* objects-gtk.c (gtk_font_list):
* objects-msw.c (font_enum_callback_2):
* objects-msw.c (parse_font_spec):
* objects-x.c (x_parse_nearest_color):
* objects-x.c (x_valid_color_name_p):
* objects-x.c (x_initialize_font_instance):
* objects-x.c (x_font_instance_truename):
* objects-x.c (x_font_list):
* objects-xlike-inc.c (XFUN):
* objects-xlike-inc.c (xft_find_charset_font):
* process-nt.c (mswindows_report_winsock_error):
* process-nt.c (nt_create_process):
* process-nt.c (get_internet_address):
* process-nt.c (nt_open_network_stream):
* process-unix.c:
* process-unix.c (allocate_pty):
* process-unix.c (get_internet_address):
* process-unix.c (unix_canonicalize_host_name):
* process-unix.c (unix_open_network_stream):
* realpath.c:
* select-common.h (lisp_data_to_selection_data):
* select-gtk.c (symbol_to_gtk_atom):
* select-gtk.c (atom_to_symbol):
* select-msw.c (symbol_to_ms_cf):
* select-msw.c (mswindows_register_selection_data_type):
* select-x.c (symbol_to_x_atom):
* select-x.c (x_atom_to_symbol):
* select-x.c (hack_motif_clipboard_selection):
* select-x.c (Fx_store_cutbuffer_internal):
* sound.c (Fplay_sound_file):
* sound.c (Fplay_sound):
* sound.h (sound_perror):
* sysdep.c:
* sysdep.c (qxe_allocating_getcwd):
* sysdep.c (qxe_execve):
* sysdep.c (copy_in_passwd):
* sysdep.c (qxe_getpwnam):
* sysdep.c (qxe_ctime):
* sysdll.c (dll_open):
* sysdll.c (dll_function):
* sysdll.c (dll_variable):
* sysdll.c (search_linked_libs):
* sysdll.c (dll_error):
* sysfile.h:
* sysfile.h (PATHNAME_CONVERT_OUT_TSTR):
* sysfile.h (PATHNAME_CONVERT_OUT_UTF_8):
* sysfile.h (PATHNAME_CONVERT_OUT):
* sysfile.h (LISP_PATHNAME_CONVERT_OUT):
* syswindows.h (ITEXT_TO_TSTR):
* syswindows.h (LOCAL_FILE_FORMAT_TO_TSTR):
* syswindows.h (TSTR_TO_LOCAL_FILE_FORMAT):
* syswindows.h (LOCAL_FILE_FORMAT_TO_INTERNAL_MSWIN):
* syswindows.h (LISP_LOCAL_FILE_FORMAT_MAYBE_URL_TO_TSTR):
* text.h:
* text.h (eicpy_ext_len):
* text.h (enum new_dfc_src_type):
* text.h (EXTERNAL_TO_ITEXT):
* text.h (GET_STRERROR):
* tooltalk.c (check_status):
* tooltalk.c (Fadd_tooltalk_message_arg):
* tooltalk.c (Fadd_tooltalk_pattern_attribute):
* tooltalk.c (Fadd_tooltalk_pattern_arg):
* win32.c (tstr_to_local_file_format):
* win32.c (mswindows_lisp_error_1):
* win32.c (mswindows_report_process_error):
* win32.c (Fmswindows_shell_execute):
* win32.c (mswindows_read_link_1):
Changes involving external/internal format conversion,
mostly code cleanup and renaming.
1. Eliminate the previous macros like LISP_STRING_TO_EXTERNAL
that stored its result in a parameter. The new version of
LISP_STRING_TO_EXTERNAL returns its result through the
return value, same as the previous NEW_LISP_STRING_TO_EXTERNAL.
Use the new-style macros throughout the code.
2. Rename C_STRING_TO_EXTERNAL and friends to ITEXT_TO_EXTERNAL,
in keeping with overall naming rationalization involving
Itext and related types.
Macros involved in previous two:
EXTERNAL_TO_C_STRING -> EXTERNAL_TO_ITEXT
EXTERNAL_TO_C_STRING_MALLOC -> EXTERNAL_TO_ITEXT_MALLOC
SIZED_EXTERNAL_TO_C_STRING -> SIZED_EXTERNAL_TO_ITEXT
SIZED_EXTERNAL_TO_C_STRING_MALLOC -> SIZED_EXTERNAL_TO_ITEXT_MALLOC
C_STRING_TO_EXTERNAL -> ITEXT_TO_EXTERNAL
C_STRING_TO_EXTERNAL_MALLOC -> ITEXT_TO_EXTERNAL_MALLOC
LISP_STRING_TO_EXTERNAL
LISP_STRING_TO_EXTERNAL_MALLOC
LISP_STRING_TO_TSTR
C_STRING_TO_TSTR -> ITEXT_TO_TSTR
TSTR_TO_C_STRING -> TSTR_TO_ITEXT
The following four still return their values through parameters,
since they have more than one value to return:
C_STRING_TO_SIZED_EXTERNAL -> ITEXT_TO_SIZED_EXTERNAL
LISP_STRING_TO_SIZED_EXTERNAL
C_STRING_TO_SIZED_EXTERNAL_MALLOC -> ITEXT_TO_SIZED_EXTERNAL_MALLOC
LISP_STRING_TO_SIZED_EXTERNAL_MALLOC
Sometimes additional casts had to be inserted, since the old
macros played strange games and completely defeated the type system
of the store params.
3. Rewrite many places where direct calls to TO_EXTERNAL_FORMAT
occurred with calls to one of the convenience macros listed above,
or to make_extstring().
4. Eliminate SIZED_C_STRING macros (they were hardly used, anyway)
and use a direct call to TO_EXTERNAL_FORMAT or TO_INTERNAL_FORMAT.
4. Use LISP_PATHNAME_CONVERT_OUT in many places instead of something
like LISP_STRING_TO_EXTERNAL(..., Qfile_name).
5. Eliminate some temporary variables that are no longer necessary
now that we return a value rather than storing it into a variable.
6. Some Mule-izing in database.c.
7. Error functions:
-- A bit of code cleanup in maybe_signal_error_1.
-- Eliminate report_file_type_error; it's just an alias for
signal_error_2 with params in a different order.
-- Fix some places in the hostname-handling code that directly
inserted externally-retrieved error strings into the
supposed ASCII "reason" param instead of doing the right thing
and sticking text descriptive of what was going on in "reason"
and putting the external message in a frob.
8. Use Ascbyte instead of CIbyte in process-unix.c and maybe one
or two other places.
9. Some code cleanup in copy_in_passwd() in sysdep.c.
10. Fix a real bug due to accidental variable shadowing in
tstr_to_local_file_format() in win32.c.
author | Ben Wing <ben@xemacs.org> |
---|---|
date | Fri, 05 Feb 2010 11:02:24 -0600 |
parents | 5274591ce707 |
children | 422b4b4fb2a6 |
rev | line source |
---|---|
795 | 1 # Makefile for Microsoft NMAKE -*- Makefile -*- |
2 # | |
428 | 3 # Copyright (C) 1995 Board of Trustees, University of Illinois. |
2951 | 4 # Copyright (C) 1995, 1996, 2000, 2001, 2002, 2003, 2004, 2005 Ben Wing. |
795 | 5 # Copyright (C) 1997, 1998, 2000 Jonathan Harris. |
428 | 6 # Copyright (C) 1995 Sun Microsystems, Inc. |
7 # Copyright (C) 1998 Free Software Foundation, Inc. | |
8 # | |
9 # This file is part of XEmacs. | |
10 # | |
11 # XEmacs is free software; you can redistribute it and/or modify it | |
12 # under the terms of the GNU General Public License as published by the | |
13 # Free Software Foundation; either version 2, or (at your option) any | |
14 # later version. | |
15 # | |
16 # XEmacs is distributed in the hope that it will be useful, but WITHOUT | |
17 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
18 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
19 # for more details. | |
20 # | |
21 # You should have received a copy of the GNU General Public License | |
22 # along with XEmacs; see the file COPYING. If not, write to | |
23 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
24 # Boston, MA 02111-1307, USA. | |
25 # | |
26 # Synched up with: Not in FSF. | |
27 # | |
28 | |
442 | 29 default: all |
30 | |
444 | 31 # APA: Since there seems to be no way to determine the directory where |
32 # xemacs.mak is located (from within nmake) we just insist on the user | |
33 # to invoke nmake in the directory where xemacs.mak is. | |
34 !if !exist("$(MAKEDIR)\xemacs.mak") | |
35 !error Please run nmake from the directory of this makefile (xemacs\nt). | |
36 !endif | |
37 | |
1330 | 38 MAKEROOT=$(MAKEDIR:\nt=) |
442 | 39 |
1330 | 40 ########################### Common commands. |
428 | 41 |
1330 | 42 # Put these before including config.inc so they can be overridden there. |
637 | 43 # Note that some versions of some commands are deficient. |
428 | 44 |
2106 | 45 # Define a variable for the 'del' command to use. |
637 | 46 # WinME's DEL command can only handle one argument and only has the /P flag. |
47 # So only delete one glob at a time. Override flags in config.inc. | |
2106 | 48 DEL=-del |
637 | 49 |
1001 | 50 # Tell COPY, MOVE, and XCOPY to suppress confirmation for overwriting |
51 # files. | |
2106 | 52 COPYCMD=/y |
1001 | 53 # Define the 'copy' command to use. |
2106 | 54 COPY=xcopy /q |
55 COPYDIR=xcopy /q /e | |
583 | 56 |
1330 | 57 ########################### Includes, and source and build tree determination. |
442 | 58 |
59 !include "config.inc" | |
428 | 60 |
1330 | 61 !if defined(BUILD_DIR) |
62 SEPARATE_BUILD=1 | |
63 SRCROOT=$(MAKEROOT) | |
64 BLDROOT=$(BUILD_DIR) | |
65 !else | |
66 !if defined(SOURCE_DIR) | |
67 SEPARATE_BUILD=1 | |
68 SRCROOT=$(SOURCE_DIR) | |
69 BLDROOT=$(MAKEROOT) | |
70 !else | |
71 SEPARATE_BUILD=0 | |
72 SRCROOT=$(MAKEROOT) | |
73 BLDROOT=$(MAKEROOT) | |
74 !endif | |
75 !endif | |
76 | |
4419
eb82fbb675ea
Use Mercurial changeset hash to identify build version.
Mike Sperber <sperber@deinprogramm.de>
parents:
4413
diff
changeset
|
77 !if [copy $(SRCROOT)\version.sh.in $(SRCROOT)\version.sh] |
eb82fbb675ea
Use Mercurial changeset hash to identify build version.
Mike Sperber <sperber@deinprogramm.de>
parents:
4413
diff
changeset
|
78 !endif |
eb82fbb675ea
Use Mercurial changeset hash to identify build version.
Mike Sperber <sperber@deinprogramm.de>
parents:
4413
diff
changeset
|
79 !if exist($(SRCROOT)\.hg) |
eb82fbb675ea
Use Mercurial changeset hash to identify build version.
Mike Sperber <sperber@deinprogramm.de>
parents:
4413
diff
changeset
|
80 !if [hg identify >> $(SRCROOT)\version.sh] |
eb82fbb675ea
Use Mercurial changeset hash to identify build version.
Mike Sperber <sperber@deinprogramm.de>
parents:
4413
diff
changeset
|
81 !endif |
eb82fbb675ea
Use Mercurial changeset hash to identify build version.
Mike Sperber <sperber@deinprogramm.de>
parents:
4413
diff
changeset
|
82 !endif |
eb82fbb675ea
Use Mercurial changeset hash to identify build version.
Mike Sperber <sperber@deinprogramm.de>
parents:
4413
diff
changeset
|
83 |
1330 | 84 # Program name and version |
85 !include "$(SRCROOT)\version.sh" | |
86 | |
87 ########################### Basic vars referring to directories, both in | |
88 ########################### the source and build trees. | |
89 | |
90 LISP=$(SRCROOT)\lisp | |
91 LIB_SRC=$(SRCROOT)\lib-src | |
92 NT=$(SRCROOT)\nt | |
93 SRC=$(SRCROOT)\src | |
94 ETC=$(SRCROOT)\etc | |
1346 | 95 INFO=$(SRCROOT)\info |
1330 | 96 |
97 BLDLIB_SRC=$(BLDROOT)\lib-src | |
98 BLDNT=$(BLDROOT)\nt | |
99 OUTDIR=$(BLDNT)\obj | |
100 BLDSRC=$(BLDROOT)\src | |
101 | |
102 # This appears in the dependency file | |
103 LWLIB_SRCDIR=$(SRCROOT)\lwlib | |
104 | |
2951 | 105 ########################### Figure out current version of VC++. |
106 | |
3054 | 107 !if [if not exist $(OUTDIR) mkdir "$(OUTDIR)"] |
108 !endif | |
2951 | 109 !if [echo MSC_VER=_MSC_VER > $(OUTDIR)\vcversion.c] |
110 !endif | |
111 !if [cl /nologo /EP $(OUTDIR)\vcversion.c > $(OUTDIR)\vcversion.tmp] | |
112 !endif | |
113 !include "$(OUTDIR)\vcversion.tmp" | |
114 | |
1330 | 115 ########################### Process the config.inc options. |
116 | |
428 | 117 !if !defined(INFODOCK) |
118 INFODOCK=0 | |
119 !endif | |
771 | 120 !if !defined(MULE) |
121 MULE=0 | |
428 | 122 !endif |
442 | 123 !if !defined(HAVE_MS_WINDOWS) |
124 HAVE_MS_WINDOWS=1 | |
428 | 125 !endif |
126 !if !defined(HAVE_XPM) | |
127 HAVE_XPM=0 | |
128 !endif | |
129 !if !defined(HAVE_PNG) | |
130 HAVE_PNG=0 | |
131 !endif | |
632 | 132 !if !defined(HAVE_ZLIB) |
133 HAVE_ZLIB=$(HAVE_PNG) | |
134 !endif | |
428 | 135 !if !defined(HAVE_TIFF) |
136 HAVE_TIFF=0 | |
137 !endif | |
138 !if !defined(HAVE_JPEG) | |
139 HAVE_JPEG=0 | |
140 !endif | |
141 !if !defined(HAVE_XFACE) | |
142 HAVE_XFACE=0 | |
143 !endif | |
144 !if !defined(HAVE_GIF) | |
4708
1cecc3e9f0a0
Use giflib or libungif to provide GIF support, instead of using internal
Jerry James <james@xemacs.org>
parents:
4603
diff
changeset
|
145 HAVE_GIF=0 |
428 | 146 !endif |
488 | 147 !if !defined(HAVE_GTK) |
148 HAVE_GTK=0 | |
149 !endif | |
827 | 150 !if !defined(HAVE_MENUBARS) |
151 HAVE_MENUBARS=1 | |
152 !endif | |
153 !if !defined(HAVE_SCROLLBARS) | |
154 HAVE_SCROLLBARS=1 | |
155 !endif | |
428 | 156 !if !defined(HAVE_TOOLBARS) |
157 HAVE_TOOLBARS=$(HAVE_XPM) | |
158 !endif | |
159 !if !defined(HAVE_DIALOGS) | |
160 HAVE_DIALOGS=1 | |
161 !endif | |
162 !if !defined(HAVE_NATIVE_SOUND) | |
163 HAVE_NATIVE_SOUND=1 | |
164 !endif | |
165 !if !defined(HAVE_WIDGETS) | |
166 HAVE_WIDGETS=1 | |
167 !endif | |
2951 | 168 !if !defined(HAVE_DATABASE) |
169 HAVE_DATABASE=0 | |
170 !endif | |
171 !if !defined(BUILD_DATABASE_SHARED) | |
172 BUILD_DATABASE_SHARED=0 | |
173 !endif | |
174 !if !defined(HAVE_POSTGRESQL) | |
175 HAVE_POSTGRESQL=0 | |
176 !endif | |
177 !if !defined(HAVE_LDAP) | |
178 HAVE_LDAP=0 | |
179 !endif | |
180 !if !defined(HAVE_BIGNUM) | |
181 HAVE_BIGNUM=0 | |
182 !endif | |
3034 | 183 !if !defined(BUILD_BIGNUM_MINGW_SHARED) |
184 BUILD_BIGNUM_MINGW_SHARED=0 | |
185 !endif | |
186 !if !defined(BUILD_BIGNUM_NATIVE_SHARED) | |
187 BUILD_BIGNUM_NATIVE_SHARED=0 | |
188 !endif | |
872 | 189 !if !defined(OPTIMIZED_BUILD) |
190 OPTIMIZED_BUILD=1 | |
191 !endif | |
192 !if !defined(USE_FASTCALL) | |
193 # #### Change to 1 when I check in the ws with support for fastcall | |
194 USE_FASTCALL=0 | |
195 !endif | |
196 !if !defined(PROFILE_SUPPORT) | |
197 PROFILE_SUPPORT=0 | |
198 !endif | |
428 | 199 !if !defined(DEBUG_XEMACS) |
200 DEBUG_XEMACS=0 | |
201 !endif | |
1333 | 202 !if !defined(SUPPORT_EDIT_AND_CONTINUE) |
203 SUPPORT_EDIT_AND_CONTINUE=0 | |
834 | 204 !endif |
4405
4b62544f5139
Use debug version of Intel's math library when debugging.
Vin Shelton <acs@xemacs.org>
parents:
4403
diff
changeset
|
205 !if !defined(BUILD_FOR_SETUP_KIT) |
4b62544f5139
Use debug version of Intel's math library when debugging.
Vin Shelton <acs@xemacs.org>
parents:
4403
diff
changeset
|
206 BUILD_FOR_SETUP_KIT=0 |
4b62544f5139
Use debug version of Intel's math library when debugging.
Vin Shelton <acs@xemacs.org>
parents:
4403
diff
changeset
|
207 !endif |
1203 | 208 |
4405
4b62544f5139
Use debug version of Intel's math library when debugging.
Vin Shelton <acs@xemacs.org>
parents:
4403
diff
changeset
|
209 !if !$(BUILD_FOR_SETUP_KIT) |
3741 | 210 OK_TO_USE_MSVCRTD=1 |
211 !else | |
212 OK_TO_USE_MSVCRTD=0 | |
213 !endif | |
214 | |
800 | 215 !if !defined(ERROR_CHECK_ALL) |
1203 | 216 !if "$(emacs_is_beta)" != "" |
800 | 217 ERROR_CHECK_ALL=1 |
1203 | 218 !else |
219 ERROR_CHECK_ALL=0 | |
220 !endif | |
221 !endif | |
222 | |
223 !if !defined(CPLUSPLUS_COMPILE) | |
224 !if $(ERROR_CHECK_ALL) | |
225 CPLUSPLUS_COMPILE=1 | |
226 !else | |
227 CPLUSPLUS_COMPILE=0 | |
228 !endif | |
229 !endif | |
230 | |
231 !if !defined(USE_KKCC) | |
232 USE_KKCC=0 | |
233 !endif | |
3092 | 234 !if !defined(NEW_GC) |
235 NEW_GC=0 | |
236 !endif | |
1203 | 237 !if !defined(USE_UNION_TYPE) |
238 USE_UNION_TYPE=0 | |
800 | 239 !endif |
442 | 240 !if !defined(QUICK_BUILD) |
241 QUICK_BUILD=0 | |
242 !endif | |
872 | 243 !if !defined(VERBOSECC) |
244 VERBOSECC=0 | |
245 !endif | |
246 !if !defined(DEPEND) | |
247 DEPEND=0 | |
248 !endif | |
249 !if !defined(USE_PORTABLE_DUMPER) | |
250 USE_PORTABLE_DUMPER=1 | |
251 !endif | |
438 | 252 !if !defined(USE_MINITAR) |
632 | 253 USE_MINITAR=$(HAVE_ZLIB) |
438 | 254 !endif |
428 | 255 |
440 | 256 # A little bit of adhockery. Default to use system malloc and |
257 # DLL version of the C runtime library when using portable | |
258 # dumping. These are the optimal settings. | |
2500 | 259 # |
260 # NOTE: The various graphics libraries are generally compiled to use | |
261 # MSVCRT.DLL (the same that we use in USE_CRTDLL, more or less), so using | |
262 # this is a good thing. | |
263 | |
440 | 264 !if !defined(USE_SYSTEM_MALLOC) |
265 USE_SYSTEM_MALLOC=$(USE_PORTABLE_DUMPER) | |
266 !endif | |
267 !if !defined(USE_CRTDLL) | |
268 USE_CRTDLL=$(USE_PORTABLE_DUMPER) | |
269 !endif | |
270 | |
1330 | 271 ########################### Check for incompatible options. |
428 | 272 |
273 CONFIG_ERROR=0 | |
274 !if $(INFODOCK) && !exist("..\..\Infodock.rules") | |
275 !message Cannot build InfoDock without InfoDock sources | |
276 CONFIG_ERROR=1 | |
277 !endif | |
440 | 278 !if !$(USE_PORTABLE_DUMPER) && $(USE_SYSTEM_MALLOC) |
279 !message Cannot use system allocator when dumping old way, use portable dumper. | |
280 CONFIG_ERROR=1 | |
281 !endif | |
282 !if !$(USE_PORTABLE_DUMPER) && $(USE_CRTDLL) | |
283 !message Cannot use C runtime DLL when dumping old way, use portable dumper. | |
284 CONFIG_ERROR=1 | |
285 !endif | |
286 !if !$(USE_SYSTEM_MALLOC) && $(USE_CRTDLL) | |
287 !message GNU malloc currently cannot be used with CRT DLL. | |
288 !message [[[Developer note: If you want to fix it, read Q112297 first]]] #### | |
289 CONFIG_ERROR=1 | |
290 !endif | |
1330 | 291 !if !$(HAVE_MS_WINDOWS) && !$(HAVE_GTK) |
292 !message Please specify at least one HAVE_MS_WINDOWS=1 and/or HAVE_GTK=1 | |
428 | 293 CONFIG_ERROR=1 |
294 !endif | |
488 | 295 !if $(HAVE_MS_WINDOWS) && $(HAVE_GTK) && !defined(GTK_DIR) |
296 !message Please specify root directory for your GTK installation: GTK_DIR=path | |
297 CONFIG_ERROR=1 | |
298 !endif | |
2951 | 299 |
442 | 300 !if $(HAVE_MS_WINDOWS) && $(HAVE_XPM) && !defined(XPM_DIR) |
428 | 301 !message Please specify root directory for your XPM installation: XPM_DIR=path |
302 CONFIG_ERROR=1 | |
303 !endif | |
442 | 304 !if $(HAVE_MS_WINDOWS) && $(HAVE_XPM) && defined(XPM_DIR) && !exist("$(XPM_DIR)\lib\Xpm.lib") |
428 | 305 !message Specified XPM directory does not contain "$(XPM_DIR)\lib\Xpm.lib" |
306 CONFIG_ERROR=1 | |
307 !endif | |
2951 | 308 |
442 | 309 !if $(HAVE_MS_WINDOWS) && $(HAVE_PNG) && !defined(PNG_DIR) |
428 | 310 !message Please specify root directory for your PNG installation: PNG_DIR=path |
311 CONFIG_ERROR=1 | |
312 !endif | |
442 | 313 !if $(HAVE_MS_WINDOWS) && $(HAVE_PNG) && defined(PNG_DIR) && !exist("$(PNG_DIR)\libpng.lib") |
428 | 314 !message Specified PNG directory does not contain "$(PNG_DIR)\libpng.lib" |
315 CONFIG_ERROR=1 | |
316 !endif | |
2951 | 317 |
442 | 318 !if $(HAVE_MS_WINDOWS) && $(HAVE_PNG) && !defined(ZLIB_DIR) |
428 | 319 !message Please specify root directory for your ZLIB installation: ZLIB_DIR=path |
320 CONFIG_ERROR=1 | |
321 !endif | |
442 | 322 !if $(HAVE_MS_WINDOWS) && $(HAVE_PNG) && defined(ZLIB_DIR) && !exist("$(ZLIB_DIR)\zlib.lib") |
428 | 323 !message Specified ZLIB directory does not contain "$(ZLIB_DIR)\zlib.lib" |
324 CONFIG_ERROR=1 | |
325 !endif | |
2951 | 326 |
442 | 327 !if $(HAVE_MS_WINDOWS) && $(HAVE_TIFF) && !defined(TIFF_DIR) |
428 | 328 !message Please specify root directory for your TIFF installation: TIFF_DIR=path |
329 CONFIG_ERROR=1 | |
330 !endif | |
442 | 331 !if $(HAVE_MS_WINDOWS) && $(HAVE_TIFF) && !exist("$(TIFF_DIR)\libtiff\libtiff.lib") |
428 | 332 !message Specified TIFF directory does not contain "$(TIFF_DIR)\libtiff\libtiff.lib" |
333 CONFIG_ERROR=1 | |
334 !endif | |
2951 | 335 |
442 | 336 !if $(HAVE_MS_WINDOWS) && $(HAVE_JPEG) && !defined(JPEG_DIR) |
428 | 337 !message Please specify root directory for your JPEG installation: JPEG_DIR=path |
338 CONFIG_ERROR=1 | |
339 !endif | |
442 | 340 !if $(HAVE_MS_WINDOWS) && $(HAVE_JPEG) && !exist("$(JPEG_DIR)\libjpeg.lib") |
428 | 341 !message Specified JPEG directory does not contain "$(JPEG_DIR)\libjpeg.lib" |
342 CONFIG_ERROR=1 | |
343 !endif | |
2951 | 344 |
442 | 345 !if $(HAVE_MS_WINDOWS) && $(HAVE_XFACE) && !defined(COMPFACE_DIR) |
428 | 346 !message Please specify root directory for your COMPFACE installation: COMPFACE_DIR=path |
347 CONFIG_ERROR=1 | |
348 !endif | |
442 | 349 !if $(HAVE_MS_WINDOWS) && $(HAVE_XFACE) && !exist("$(COMPFACE_DIR)\libcompface.lib") |
428 | 350 !message Specified COMPFACE directory does not contain "$(COMPFACE_DIR)\libcompface.lib" |
351 CONFIG_ERROR=1 | |
352 !endif | |
2951 | 353 |
442 | 354 !if $(HAVE_MS_WINDOWS) && $(HAVE_TOOLBARS) && !$(HAVE_XPM) |
428 | 355 !message Toolbars require XPM support |
356 CONFIG_ERROR=1 | |
357 !endif | |
2951 | 358 |
359 !if $(HAVE_MS_WINDOWS) && $(HAVE_BIGNUM) && !defined(BIGNUM_DIR) | |
360 !message Please specify root directory for your BIGNUM installation: BIGNUM_DIR=path | |
361 CONFIG_ERROR=1 | |
362 !endif | |
363 !if $(HAVE_MS_WINDOWS) && $(HAVE_BIGNUM) && defined(BIGNUM_DIR) | |
364 !if $(BUILD_BIGNUM_MINGW_SHARED) | |
365 !if !exist("$(BIGNUM_DIR)\libgmp-3.lib") | |
366 !message Specified BIGNUM directory does not contain "$(BIGNUM_DIR)\libgmp-3.lib" | |
367 CONFIG_ERROR=1 | |
368 !endif | |
369 !else | |
370 !if $(BUILD_BIGNUM_NATIVE_SHARED) | |
371 !if !exist("$(BIGNUM_DIR)\gmp-dynamic\gmp.lib") | |
372 !message Specified BIGNUM directory does not contain "$(BIGNUM_DIR)\gmp-dynamic\gmp.lib" | |
373 CONFIG_ERROR=1 | |
374 !endif | |
375 !else | |
376 !if !exist("$(BIGNUM_DIR)\gmp-static\gmp.lib") | |
377 !message Specified BIGNUM directory does not contain "$(BIGNUM_DIR)\gmp-static\gmp.lib" | |
378 CONFIG_ERROR=1 | |
379 !endif | |
380 !endif | |
381 !endif | |
382 !endif | |
383 | |
384 !if $(HAVE_MS_WINDOWS) && $(HAVE_DATABASE) && !defined(DATABASE_DIR) | |
385 !message Please specify root directory for your DATABASE installation: DATABASE_DIR=path | |
386 CONFIG_ERROR=1 | |
387 !endif | |
388 !if $(HAVE_MS_WINDOWS) && $(HAVE_DATABASE) && defined(DATABASE_DIR) | |
389 !if $(BUILD_DATABASE_SHARED) | |
390 !if !exist("$(DATABASE_DIR)\build_win32\Release\libdb43.lib") | |
391 !message Specified DATABASE directory does not contain "$(DATABASE_DIR)\build_win32\Release\libdb43.lib" | |
392 CONFIG_ERROR=1 | |
393 !endif | |
394 !else | |
395 !if !exist("$(DATABASE_DIR)\build_win32\Release_static\libdb43s.lib") | |
396 !message Specified DATABASE directory does not contain "$(DATABASE_DIR)\build_win32\Release_static\libdb43s.lib" | |
397 CONFIG_ERROR=1 | |
398 !endif | |
399 !endif | |
400 !endif | |
401 | |
402 !if $(HAVE_MS_WINDOWS) && $(HAVE_POSTGRESQL) && !defined(POSTGRESQL_DIR) | |
403 !message Please specify root directory for your POSTGRESQL installation: POSTGRESQL_DIR=path | |
404 CONFIG_ERROR=1 | |
405 !endif | |
406 !if $(HAVE_MS_WINDOWS) && $(HAVE_POSTGRESQL) && defined(POSTGRESQL_DIR) && !exist("$(POSTGRESQL_DIR)\src\interfaces\libpq\Release\libpq.lib") | |
407 !message Specified POSTGRESQL directory does not contain "$(POSTGRESQL_DIR)\src\interfaces\libpq\Release\libpq.lib" | |
408 CONFIG_ERROR=1 | |
409 !endif | |
410 !if $(HAVE_MS_WINDOWS) && $(HAVE_LDAP) && !defined(LDAP_DIR) | |
411 !message Please specify root directory for your LDAP installation: LDAP_DIR=path | |
412 CONFIG_ERROR=1 | |
413 !endif | |
414 !if $(HAVE_MS_WINDOWS) && $(HAVE_LDAP) && defined(LDAP_DIR) && !exist("$(LDAP_DIR)\openldap.lib") | |
415 !message Specified LDAP directory does not contain "$(LDAP_DIR)\openldap.lib" | |
416 CONFIG_ERROR=1 | |
417 !endif | |
428 | 418 !if $(CONFIG_ERROR) |
419 !error Configuration error(s) found | |
420 !endif | |
421 | |
1330 | 422 ########################### Set version strings. |
423 | |
424 !if $(INFODOCK) | |
425 INFODOCK_VERSION_STRING=$(infodock_major_version).$(infodock_minor_version).$(infodock_build_version) | |
426 PROGRAM_DEFINES=-DINFODOCK \ | |
427 -DPATH_VERSION=\"$(INFODOCK_VERSION_STRING)\" \ | |
428 -DPATH_PROGNAME=\"infodock\" \ | |
429 -DEMACS_PROGNAME=\"infodock\" \ | |
4458
d9b9b5f90386
Provide SHEBANG_PROGNAME on Win32; correct a bug with it and string concat'ing
Aidan Kehoe <kehoea@parhasard.net>
parents:
4419
diff
changeset
|
430 -DSHEBANG_PROGNAME=\"infodock-script\" \ |
1330 | 431 -DEMACS_VERSION=\"$(INFODOCK_VERSION_STRING)\" \ |
432 -DINFODOCK_MAJOR_VERSION=$(infodock_major_version) \ | |
433 -DINFODOCK_MINOR_VERSION=$(infodock_minor_version) \ | |
434 -DINFODOCK_BUILD_VERSION=$(infodock_build_version) | |
435 !else | |
436 XEMACS_VERSION_STRING=$(emacs_major_version).$(emacs_minor_version) | |
437 !if "$(emacs_beta_version)" != "" | |
438 !if "$(emacs_is_beta)" != "" | |
439 XEMACS_VERSION_STRING=$(XEMACS_VERSION_STRING)-b$(emacs_beta_version) | |
440 !else | |
441 XEMACS_VERSION_STRING=$(XEMACS_VERSION_STRING).$(emacs_beta_version) | |
442 !endif | |
443 !endif | |
444 PROGRAM_DEFINES= \ | |
445 -DPATH_VERSION=\"$(XEMACS_VERSION_STRING)\" \ | |
446 -DPATH_PROGNAME=\"xemacs\" \ | |
447 -DEMACS_VERSION=\"$(XEMACS_VERSION_STRING)\" \ | |
4458
d9b9b5f90386
Provide SHEBANG_PROGNAME on Win32; correct a bug with it and string concat'ing
Aidan Kehoe <kehoea@parhasard.net>
parents:
4419
diff
changeset
|
448 -DEMACS_PROGNAME=\"xemacs\" -DSHEBANG_PROGNAME=\"xemacs-script\" |
1330 | 449 !endif |
450 | |
451 ########################### Set up installation and package directories. | |
452 | |
453 !if !defined(INSTALL_DIR) | |
454 ! if $(INFODOCK) | |
455 INSTALL_DIR=c:\Program Files\Infodock\Infodock-$(INFODOCK_VERSION_STRING) | |
456 ! else | |
457 INSTALL_DIR=c:\Program Files\XEmacs\XEmacs-$(XEMACS_VERSION_STRING) | |
442 | 458 ! endif |
1330 | 459 !endif |
3281 | 460 |
461 # If PACKAGE_PREFIX was defined, use it to generate a package path. | |
462 !if defined(PACKAGE_PREFIX) | |
463 PATH_LATE_PACKAGE_DIRECTORIES="$(PACKAGE_PREFIX:\=\\)" | |
442 | 464 !endif |
1330 | 465 |
466 !if $(INFODOCK) | |
467 PATH_PREFIX=../.. | |
468 !else | |
4413
dc84ec90b463
Fix build problems on Windows.
Mike Sperber <sperber@deinprogramm.de>
parents:
4405
diff
changeset
|
469 PATH_PREFIX="$(INSTALL_DIR)" |
1330 | 470 !endif |
471 | |
4413
dc84ec90b463
Fix build problems on Windows.
Mike Sperber <sperber@deinprogramm.de>
parents:
4405
diff
changeset
|
472 PATH_DEFINES=-DPATH_PREFIX=\"$(PATH_PREFIX:\=\\)\" |
1330 | 473 |
474 !if $(SEPARATE_BUILD) | |
1346 | 475 PATH_DEFINES=$(PATH_DEFINES) -DPATH_LOADSEARCH=\"$(LISP:\=\\)\" -DPATH_DATA=\"$(ETC:\=\\)\" -DPATH_INFO=\"$(INFO:\=\\)\" |
1330 | 476 !endif |
477 | |
478 ########################### Determine system configuration. | |
479 | |
480 !if !defined(OS) | |
481 OS=Windows_95/98 | |
482 EMACS_CONFIGURATION=i586-pc-win32 | |
483 !else if "$(PROCESSOR_ARCHITECTURE)" == "x86" | |
484 EMACS_CONFIGURATION=i586-pc-win32 | |
485 !else if "$(PROCESSOR_ARCHITECTURE)" == "MIPS" | |
486 EMACS_CONFIGURATION=mips-pc-win32 | |
487 !else if "$(PROCESSOR_ARCHITECTURE)" == "ALPHA" | |
488 EMACS_CONFIGURATION=alpha-pc-win32 | |
489 !else if "$(PROCESSOR_ARCHITECTURE)" == "PPC" | |
490 EMACS_CONFIGURATION=ppc-pc-win32 | |
491 !else | |
492 ! error Unknown processor architecture type $(PROCESSOR_ARCHITECTURE) | |
493 !endif | |
494 STACK_TRACE_EYE_CATCHER=$(XEMACS_VERSION_STRING:.=_) | |
495 STACK_TRACE_EYE_CATCHER=xemacs_$(STACK_TRACE_EYE_CATCHER:-=_)_$(EMACS_CONFIGURATION:-=_) | |
496 PROGRAM_DEFINES=$(PROGRAM_DEFINES) -DSTACK_TRACE_EYE_CATCHER=$(STACK_TRACE_EYE_CATCHER) | |
497 | |
2951 | 498 ########################### Determine includes/defines/object files/libraries |
499 ########################### for all configuration options given. | |
500 | |
501 OPT_DEFINES= | |
502 OPT_INCLUDES= | |
503 OPT_LIBS= | |
504 OPT_OBJS= | |
505 TEMACS_MODULE_OBJS= | |
506 TEMACS_MODULE_SRCS= | |
1330 | 507 |
508 !if $(HAVE_MS_WINDOWS) | |
2951 | 509 OPT_DEFINES=$(OPT_DEFINES) -DHAVE_MS_WINDOWS |
510 OPT_LIBS=$(OPT_LIBS) comctl32.lib | |
511 OPT_OBJS=$(OPT_OBJS) \ | |
1330 | 512 $(OUTDIR)\console-msw.obj \ |
513 $(OUTDIR)\device-msw.obj \ | |
514 $(OUTDIR)\event-msw.obj \ | |
515 $(OUTDIR)\frame-msw.obj \ | |
516 $(OUTDIR)\glyphs-msw.obj \ | |
517 $(OUTDIR)\gui-msw.obj \ | |
518 $(OUTDIR)\objects-msw.obj \ | |
519 $(OUTDIR)\redisplay-msw.obj \ | |
520 $(OUTDIR)\select-msw.obj \ | |
2951 | 521 $(OUTDIR)\dired-msw.obj |
522 !if $(HAVE_MENUBARS) | |
523 OPT_DEFINES=$(OPT_DEFINES) -DHAVE_MENUBARS | |
524 OPT_OBJS=$(OPT_OBJS) $(OUTDIR)\menubar.obj $(OUTDIR)\menubar-msw.obj | |
525 !endif | |
526 !if $(HAVE_SCROLLBARS) | |
527 OPT_DEFINES=$(OPT_DEFINES) -DHAVE_SCROLLBARS | |
528 OPT_OBJS=$(OPT_OBJS) $(OUTDIR)\scrollbar.obj $(OUTDIR)\scrollbar-msw.obj | |
529 !endif | |
530 !if $(HAVE_TOOLBARS) | |
531 OPT_DEFINES=$(OPT_DEFINES) -DHAVE_TOOLBARS | |
532 OPT_OBJS=$(OPT_OBJS) $(OUTDIR)\toolbar.obj $(OUTDIR)\toolbar-msw.obj | |
533 !endif | |
534 !if $(HAVE_WIDGETS) | |
535 OPT_DEFINES=$(OPT_DEFINES) -DHAVE_WIDGETS | |
536 !endif | |
537 !if $(HAVE_DIALOGS) | |
538 OPT_DEFINES=$(OPT_DEFINES) -DHAVE_DIALOGS | |
539 OPT_OBJS=$(OPT_OBJS) $(OUTDIR)\dialog.obj $(OUTDIR)\dialog-msw.obj | |
540 !endif | |
1330 | 541 # end !if $(HAVE_MS_WINDOWS) |
542 !endif | |
543 | |
2951 | 544 !if $(HAVE_XPM) |
545 OPT_DEFINES=$(OPT_DEFINES) -DHAVE_XPM -DFOR_MSW | |
546 OPT_INCLUDES=$(OPT_INCLUDES) -I"$(XPM_DIR)" -I"$(XPM_DIR)\lib" | |
547 OPT_LIBS=$(OPT_LIBS) "$(XPM_DIR)\lib\Xpm.lib" | |
548 !endif | |
549 !if $(HAVE_GIF) | |
550 OPT_DEFINES=$(OPT_DEFINES) -DHAVE_GIF | |
4711
985886265686
Updates for external GIF support on Windows
Vin Shelton <acs@xemacs.org>
parents:
4708
diff
changeset
|
551 OPT_INCLUDES=$(OPT_INCLUDES) -I"$(GIF_DIR)\include" |
985886265686
Updates for external GIF support on Windows
Vin Shelton <acs@xemacs.org>
parents:
4708
diff
changeset
|
552 OPT_LIBS=$(OPT_LIBS) "$(GIF_DIR)\lib\giflib.lib" |
2951 | 553 !endif |
554 !if $(HAVE_PNG) | |
555 OPT_DEFINES=$(OPT_DEFINES) -DHAVE_PNG | |
556 OPT_INCLUDES=$(OPT_INCLUDES) -I"$(PNG_DIR)" -I"$(ZLIB_DIR)" | |
557 OPT_LIBS=$(OPT_LIBS) "$(PNG_DIR)\libpng.lib" "$(ZLIB_DIR)\zlib.lib" | |
558 !endif | |
559 !if $(HAVE_TIFF) | |
560 OPT_DEFINES=$(OPT_DEFINES) -DHAVE_TIFF | |
561 OPT_INCLUDES=$(OPT_INCLUDES) -I"$(TIFF_DIR)\libtiff" | |
562 OPT_LIBS=$(OPT_LIBS) "$(TIFF_DIR)\libtiff\libtiff.lib" | |
563 !endif | |
564 !if $(HAVE_JPEG) | |
565 OPT_DEFINES=$(OPT_DEFINES) -DHAVE_JPEG | |
566 OPT_INCLUDES=$(OPT_INCLUDES) -I"$(JPEG_DIR)" | |
567 OPT_LIBS=$(OPT_LIBS) "$(JPEG_DIR)\libjpeg.lib" | |
568 !endif | |
569 !if $(HAVE_XFACE) | |
570 OPT_DEFINES=$(OPT_DEFINES) -DHAVE_XFACE | |
571 OPT_INCLUDES=$(OPT_INCLUDES) -I"$(COMPFACE_DIR)" | |
572 OPT_LIBS=$(OPT_LIBS) "$(COMPFACE_DIR)\libcompface.lib" | |
573 !endif | |
574 !if $(HAVE_ZLIB) | |
575 OPT_DEFINES=$(OPT_DEFINES) -DHAVE_ZLIB | |
576 OPT_INCLUDES=$(OPT_INCLUDES) -I"$(ZLIB_DIR)" | |
577 OPT_LIBS=$(OPT_LIBS) "$(ZLIB_DIR)\zlib.lib" | |
578 !endif | |
579 !if $(HAVE_BIGNUM) | |
580 OPT_DEFINES=$(OPT_DEFINES) -DWITH_NUMBER_TYPES -DWITH_GMP | |
581 !if $(BUILD_BIGNUM_MINGW_SHARED) | |
582 OPT_LIBS=$(OPT_LIBS) "$(BIGNUM_DIR)\libgmp-3.lib" | |
583 OPT_INCLUDES=$(OPT_INCLUDES) -I"$(BIGNUM_DIR)" | |
584 !else | |
585 !if $(BUILD_BIGNUM_NATIVE_SHARED) | |
586 OPT_LIBS=$(OPT_LIBS) "$(BIGNUM_DIR)\gmp-dynamic\gmp.lib" | |
3034 | 587 OPT_INCLUDES=$(OPT_INCLUDES) -I"$(BIGNUM_DIR)" |
2951 | 588 !else |
589 OPT_LIBS=$(OPT_LIBS) "$(BIGNUM_DIR)\gmp-static\gmp.lib" | |
3034 | 590 OPT_INCLUDES=$(OPT_INCLUDES) -I"$(BIGNUM_DIR)" |
2951 | 591 !endif |
592 !endif | |
593 OPT_OBJS=$(OPT_OBJS) $(OUTDIR)\number-gmp.obj $(OUTDIR)\number.obj | |
594 !endif | |
595 !if $(HAVE_DATABASE) | |
596 OPT_DEFINES=$(OPT_DEFINES) -DHAVE_DATABASE -DHAVE_BERKELEY_DB -DDB_H_FILE=\"db.h\" | |
597 OPT_INCLUDES=$(OPT_INCLUDES) -I"$(DATABASE_DIR)\build_win32" | |
598 !if $(BUILD_DATABASE_SHARED) | |
599 OPT_LIBS=$(OPT_LIBS) "$(DATABASE_DIR)\build_win32\Release\libdb43.lib" | |
600 !else | |
601 OPT_LIBS=$(OPT_LIBS) "$(DATABASE_DIR)\build_win32\Release_static\libdb43s.lib" | |
602 !endif | |
603 OPT_OBJS=$(OPT_OBJS) $(OUTDIR)\database.obj | |
604 !endif | |
605 !if $(HAVE_POSTGRESQL) | |
606 OPT_DEFINES=$(OPT_DEFINES) -DHAVE_POSTGRESQL -DHAVE_POSTGRESQLV7 -DLIBPQ_FE_H_FILE=\"libpq-fe.h\" | |
607 OPT_INCLUDES=$(OPT_INCLUDES) -I"$(POSTGRESQL_DIR)\src\include" -I"$(POSTGRESQL_DIR)\src\interfaces\libpq" | |
608 OPT_LIBS=$(OPT_LIBS) "$(POSTGRESQL_DIR)\src\interfaces\libpq\Release\libpq.lib" | |
609 TEMACS_MODULE_OBJS=$(TEMACS_MODULE_OBJS) $(OUTDIR)\postgresql.obj | |
610 TEMACS_MODULE_SRCS=$(TEMACS_MODULE_SRCS) $(SRCROOT)\modules\postgresql\postgresql.c | |
611 !endif | |
612 !if $(HAVE_LDAP) | |
613 OPT_DEFINES=$(OPT_DEFINES) -DHAVE_LDAP -DHAVE_LDAP_SET_OPTION -DHAVE_LDAP_RESULT2ERROR -DHAVE_LDAP_PARSE_RESULT | |
614 OPT_INCLUDES=$(OPT_INCLUDES) -I"$(LDAP_DIR)" | |
615 OPT_LIBS=$(OPT_LIBS) "$(LDAP_DIR)\openldap.lib" | |
616 TEMACS_MODULE_OBJS=$(TEMACS_MODULE_OBJS) $(OUTDIR)\eldap.obj | |
617 TEMACS_MODULE_SRCS=$(TEMACS_MODULE_SRCS) $(SRCROOT)\modules\ldap\eldap.c | |
618 !endif | |
619 !if $(HAVE_NATIVE_SOUND) | |
620 OPT_DEFINES=$(OPT_DEFINES) -DHAVE_NATIVE_SOUND | |
621 !endif | |
622 | |
1330 | 623 !if $(MULE) |
2951 | 624 OPT_DEFINES=$(OPT_DEFINES) -DMULE |
625 OPT_OBJS=$(OPT_OBJS) \ | |
1330 | 626 $(OUTDIR)\mule-ccl.obj \ |
627 $(OUTDIR)\mule-charset.obj \ | |
628 $(OUTDIR)\mule-coding.obj | |
629 !endif | |
630 | |
631 !if $(DEBUG_XEMACS) | |
2951 | 632 OPT_OBJS=$(OPT_OBJS) $(OUTDIR)\debug.obj $(OUTDIR)\tests.obj |
1330 | 633 !endif |
634 | |
635 !if $(QUICK_BUILD) | |
2951 | 636 OPT_DEFINES=$(OPT_DEFINES) -DQUICK_BUILD |
1330 | 637 !endif |
638 | |
639 !if $(ERROR_CHECK_ALL) | |
2951 | 640 OPT_DEFINES=$(OPT_DEFINES) -DERROR_CHECK_ALL |
1330 | 641 !endif |
642 | |
643 !if $(USE_UNION_TYPE) | |
2951 | 644 OPT_DEFINES=$(OPT_DEFINES) -DUSE_UNION_TYPE |
1330 | 645 !endif |
646 | |
647 !if $(USE_PORTABLE_DUMPER) | |
2951 | 648 OPT_DEFINES=$(OPT_DEFINES) -DPDUMP |
649 OPT_OBJS=$(OPT_OBJS) $(OUTDIR)\dumper.obj | |
1330 | 650 !else |
2951 | 651 OPT_OBJS=$(OPT_OBJS) $(OUTDIR)\unexnt.obj |
1330 | 652 !endif |
653 | |
3092 | 654 !if $(NEW_GC) |
655 OPT_DEFINES=$(OPT_DEFINES) -DNEW_GC | |
3263 | 656 OPT_OBJS=$(OPT_OBJS) $(OUTDIR)\vdb.obj $(OUTDIR)\vdb-win32.obj \ |
657 $(OUTDIR)\mc-alloc.obj | |
3092 | 658 USE_KKCC=1 |
659 !endif | |
660 | |
1330 | 661 !if $(USE_KKCC) |
2951 | 662 OPT_DEFINES=$(OPT_DEFINES) -DUSE_KKCC |
1330 | 663 !endif |
3092 | 664 |
1330 | 665 !if $(USE_SYSTEM_MALLOC) |
2951 | 666 OPT_DEFINES=$(OPT_DEFINES) -DSYSTEM_MALLOC |
1330 | 667 !else |
2951 | 668 OPT_OBJS=$(OPT_OBJS) $(OUTDIR)\free-hook.obj $(OUTDIR)\gmalloc.obj \ |
1330 | 669 $(OUTDIR)\ntheap.obj $(OUTDIR)\vm-limit.obj |
670 !endif | |
671 | |
4405
4b62544f5139
Use debug version of Intel's math library when debugging.
Vin Shelton <acs@xemacs.org>
parents:
4403
diff
changeset
|
672 !if $(USE_INTEL_COMPILER) |
4b62544f5139
Use debug version of Intel's math library when debugging.
Vin Shelton <acs@xemacs.org>
parents:
4403
diff
changeset
|
673 CC=icl |
4b62544f5139
Use debug version of Intel's math library when debugging.
Vin Shelton <acs@xemacs.org>
parents:
4403
diff
changeset
|
674 # Use static library if possible |
4b62544f5139
Use debug version of Intel's math library when debugging.
Vin Shelton <acs@xemacs.org>
parents:
4403
diff
changeset
|
675 INTEL_LIBS=libircmt.lib libmmt.lib |
4b62544f5139
Use debug version of Intel's math library when debugging.
Vin Shelton <acs@xemacs.org>
parents:
4403
diff
changeset
|
676 # Debugging requires DLL version of libm |
4b62544f5139
Use debug version of Intel's math library when debugging.
Vin Shelton <acs@xemacs.org>
parents:
4403
diff
changeset
|
677 !if $(DEBUG_XEMACS) |
4b62544f5139
Use debug version of Intel's math library when debugging.
Vin Shelton <acs@xemacs.org>
parents:
4403
diff
changeset
|
678 INTEL_LIBS=libircmt.lib libmmd.lib |
4b62544f5139
Use debug version of Intel's math library when debugging.
Vin Shelton <acs@xemacs.org>
parents:
4403
diff
changeset
|
679 !endif |
4b62544f5139
Use debug version of Intel's math library when debugging.
Vin Shelton <acs@xemacs.org>
parents:
4403
diff
changeset
|
680 !endif |
4b62544f5139
Use debug version of Intel's math library when debugging.
Vin Shelton <acs@xemacs.org>
parents:
4403
diff
changeset
|
681 |
1330 | 682 ########################### Process options related to compilation. |
442 | 683 |
684 # | |
428 | 685 # Compiler command echo control. Define VERBOSECC=1 to get verbose compilation. |
686 # | |
687 !if $(VERBOSECC) | |
688 CCV=$(CC) | |
689 !else | |
690 CCV=@$(CC) | |
691 !endif | |
692 | |
693 !if $(DEBUG_XEMACS) | |
814 | 694 |
872 | 695 # ---- Debugging support ---- |
2951 | 696 ! if $(MSC_VER) >= 1400 |
697 # VC 7 sets opt:noref automatically with -debug. VC 8 apparently doesn't | |
698 # do this, and then complains if you try to use edit-and-continue without | |
699 # giving it. | |
700 DEBUG_FLAG_LINK_DEBUG=-debug -opt:noref | |
701 # This turns on additional run-time checking | |
4413
dc84ec90b463
Fix build problems on Windows.
Mike Sperber <sperber@deinprogramm.de>
parents:
4405
diff
changeset
|
702 # For some reason it causes spawning of make-docfile to crash in VC 7 and VC 8 |
dc84ec90b463
Fix build problems on Windows.
Mike Sperber <sperber@deinprogramm.de>
parents:
4405
diff
changeset
|
703 # DEBUG_FLAG_COMPILE_DEBUG=-RTC1 |
2951 | 704 ! else |
705 DEBUG_FLAG_LINK_DEBUG=-debug:full | |
706 DEBUG_FLAG_COMPILE_DEBUG= | |
707 ! endif | |
708 | |
1333 | 709 ! if $(SUPPORT_EDIT_AND_CONTINUE) |
872 | 710 # support edit-and-continue |
2951 | 711 DEBUG_FLAGS_COMPILE=$(DEBUG_FLAG_COMPILE_DEBUG) -ZI |
1333 | 712 # WARNING: There is a very good reason for -incremental:no, as it can cause |
713 # all sorts of weird crashes in or after a pdump load. We must allow | |
714 # incremental linking for edit-and-continue to work, however. | |
2951 | 715 DEBUG_FLAGS_LINK=$(DEBUG_FLAG_LINK_DEBUG) |
872 | 716 ! else |
2951 | 717 DEBUG_FLAGS_COMPILE=$(DEBUG_FLAG_COMPILE_DEBUG) -Zi |
718 DEBUG_FLAGS_LINK=$(DEBUG_FLAG_LINK_DEBUG) -incremental:no | |
872 | 719 ! endif |
2951 | 720 |
721 OPT_DEFINES=$(OPT_DEFINES) -DDEBUG_XEMACS -D_DEBUG | |
722 | |
723 ! if $(MSC_VER) >= 1300 | |
724 #BROWSERFLAGS=-FR -Fd$(OUTDIR)\temacs.pdb | |
725 BROWSERFLAGS=-FR$*.sbr -Fd$(OUTDIR)\temacs.pdb | |
726 ! else | |
872 | 727 #BROWSERFLAGS=-Fr -Fd$(OUTDIR)\temacs.pdb |
728 BROWSERFLAGS=-Fr$*.sbr -Fd$(OUTDIR)\temacs.pdb | |
2951 | 729 ! endif |
872 | 730 |
814 | 731 !else |
872 | 732 |
733 # ---- No debugging support ---- | |
734 DEBUG_FLAGS_COMPILE= | |
735 DEBUG_FLAGS_LINK=-incremental:no | |
736 BROWSERFLAGS= | |
737 | |
428 | 738 !endif |
739 | |
440 | 740 !if $(USE_CRTDLL) |
3741 | 741 ! if $(DEBUG_XEMACS) && "$(OK_TO_USE_MSVCRTD)" == "1" |
440 | 742 C_LIBFLAG=-MDd |
743 LIBC_LIB=msvcrtd.lib | |
3741 | 744 ! else |
440 | 745 C_LIBFLAG=-MD |
746 LIBC_LIB=msvcrt.lib | |
3741 | 747 ! endif |
440 | 748 !else |
749 C_LIBFLAG=-ML | |
750 LIBC_LIB=libc.lib | |
751 !endif | |
752 | |
872 | 753 !if $(OPTIMIZED_BUILD) |
2951 | 754 !if $(SUPPORT_EDIT_AND_CONTINUE) |
755 !error Edit-and-continue is not compatible with optimization. | |
756 !endif | |
872 | 757 # -G5 means optimize for Pentium. (According to the code-optimization |
758 # article, -GB is the same as -G5, and -G6, i.e. optimze for Pentium Pro, | |
759 # gains you little over -G5 for PPro's but causes big slowdowns for | |
760 # Pentiums.) -GF means put strings in read-only memory; -Gr means use | |
761 # fastcall convention. Another possible addition: -Ob2 -- allows inlining | |
762 # of any function, not just those declared inline. Potential code size | |
763 # increase, though. | |
764 # | |
765 # #### Note: fastcall doesn't actually seem to make any difference, at least | |
766 # not using the (admittedly unscientific) test of (hanoi 6). The | |
767 # optimization article claims 1-2% improvement in both speed and size. | |
768 OPTFLAGS_FASTCALL =-O2 -G5 -Gr -Ob2 | |
769 OPTFLAGS_CDECL =-O2 -G5 -Ob2 | |
770 !else | |
771 OPTFLAGS_FASTCALL =-Od | |
772 OPTFLAGS_CDECL =-Od | |
773 !endif | |
774 | |
775 !if $(USE_FASTCALL) | |
776 OPTFLAGS = $(OPTFLAGS_FASTCALL) | |
777 !else | |
778 OPTFLAGS = $(OPTFLAGS_CDECL) | |
779 !endif | |
780 | |
781 !if $(PROFILE_SUPPORT) | |
782 PROFILE_FLAGS=-profile | |
783 !else | |
784 PROFILE_FLAGS= | |
785 !endif | |
786 | |
1203 | 787 !if $(CPLUSPLUS_COMPILE) |
788 CPLUSPLUS_COMPILE_FLAGS=-TP | |
789 !else | |
790 CPLUSPLUS_COMPILE_FLAGS= | |
791 !endif | |
792 | |
1330 | 793 ########################### Determine generic includes/defines/flags. |
794 | |
2951 | 795 INCLUDES=-I$(NT)\inc -I$(SRC) $(OPT_INCLUDES) |
1330 | 796 |
2951 | 797 DEFINES=$(OPT_DEFINES) \ |
798 -DWIN32_LEAN_AND_MEAN -DWIN32_NATIVE -Demacs \ | |
1330 | 799 -DHAVE_CONFIG_H $(PROGRAM_DEFINES) $(PATH_DEFINES) |
800 | |
872 | 801 CFLAGS_NO_OPT=-nologo -W3 -DSTRICT $(DEBUG_FLAGS_COMPILE) |
802 | |
803 CFLAGS_NO_LIB=$(CFLAGS_NO_OPT) $(OPTFLAGS) | |
826 | 804 CFLAGS=$(CFLAGS_NO_LIB) $(C_LIBFLAG) |
805 | |
872 | 806 CFLAGS_CDECL_NO_LIB=$(CFLAGS_NO_OPT) $(OPTFLAGS_CDECL) |
807 CFLAGS_CDECL=$(CFLAGS_CDECL_NO_LIB) $(C_LIBFLAG) | |
808 | |
1330 | 809 ########################### Determine flags for XEmacs object files. |
428 | 810 |
811 # This may not exist | |
812 !if "$(emacs_beta_version)" != "" | |
496 | 813 !if "$(emacs_is_beta)" != "" |
428 | 814 EMACS_BETA_VERSION=-DEMACS_BETA_VERSION=$(emacs_beta_version) |
496 | 815 !else |
816 EMACS_PATCH_LEVEL=-DEMACS_PATCH_LEVEL=$(emacs_beta_version) | |
817 !endif | |
818 !endif | |
428 | 819 |
1203 | 820 TEMACS_CPP_FLAGS_NO_CFLAGS=-c $(CPLUSPLUS_COMPILE_FLAGS) \ |
1330 | 821 $(INCLUDES) $(DEFINES) \ |
428 | 822 -DEMACS_MAJOR_VERSION=$(emacs_major_version) \ |
823 -DEMACS_MINOR_VERSION=$(emacs_minor_version) \ | |
1330 | 824 $(EMACS_BETA_VERSION) $(EMACS_PATCH_LEVEL) \ |
442 | 825 -DXEMACS_CODENAME=\"$(xemacs_codename:&=and)\" \ |
2106 | 826 !if defined(xemacs_extra_name) |
4419
eb82fbb675ea
Use Mercurial changeset hash to identify build version.
Mike Sperber <sperber@deinprogramm.de>
parents:
4413
diff
changeset
|
827 -DXEMACS_EXTRA_NAME=\""$(xemacs_extra_name:"=)"\" \ |
2106 | 828 !endif |
3281 | 829 !if defined(PATH_LATE_PACKAGE_DIRECTORIES) |
830 -DPATH_LATE_PACKAGE_DIRECTORIES=\"$(PATH_LATE_PACKAGE_DIRECTORIES)\" \ | |
831 !endif | |
832 -DEMACS_CONFIGURATION=\"$(EMACS_CONFIGURATION)\" | |
872 | 833 TEMACS_CPP_FLAGS=$(CFLAGS) $(TEMACS_CPP_FLAGS_NO_CFLAGS) |
834 TEMACS_CPP_CDECL_FLAGS=$(CFLAGS_CDECL) $(TEMACS_CPP_FLAGS_NO_CFLAGS) | |
428 | 835 |
1330 | 836 ########################### Determine XEmacs object files. |
428 | 837 |
2951 | 838 TEMACS_COMMON_OBJS= \ |
839 $(OPT_OBJS)\ | |
428 | 840 $(OUTDIR)\abbrev.obj \ |
841 $(OUTDIR)\alloc.obj \ | |
851 | 842 $(OUTDIR)\alloca.obj \ |
428 | 843 $(OUTDIR)\blocktype.obj \ |
844 $(OUTDIR)\buffer.obj \ | |
845 $(OUTDIR)\bytecode.obj \ | |
846 $(OUTDIR)\callint.obj \ | |
847 $(OUTDIR)\casefiddle.obj \ | |
848 $(OUTDIR)\casetab.obj \ | |
849 $(OUTDIR)\chartab.obj \ | |
850 $(OUTDIR)\cmdloop.obj \ | |
851 $(OUTDIR)\cmds.obj \ | |
852 $(OUTDIR)\console-stream.obj \ | |
853 $(OUTDIR)\console.obj \ | |
854 $(OUTDIR)\data.obj \ | |
855 $(OUTDIR)\device.obj \ | |
856 $(OUTDIR)\dired.obj \ | |
857 $(OUTDIR)\doc.obj \ | |
858 $(OUTDIR)\doprnt.obj \ | |
859 $(OUTDIR)\dragdrop.obj \ | |
860 $(OUTDIR)\dynarr.obj \ | |
861 $(OUTDIR)\editfns.obj \ | |
862 $(OUTDIR)\elhash.obj \ | |
863 $(OUTDIR)\emacs.obj \ | |
1754 | 864 $(OUTDIR)\emodules.obj \ |
428 | 865 $(OUTDIR)\eval.obj \ |
866 $(OUTDIR)\event-stream.obj \ | |
867 $(OUTDIR)\events.obj \ | |
868 $(OUTDIR)\extents.obj \ | |
869 $(OUTDIR)\faces.obj \ | |
870 $(OUTDIR)\file-coding.obj \ | |
871 $(OUTDIR)\fileio.obj \ | |
872 $(OUTDIR)\filemode.obj \ | |
873 $(OUTDIR)\floatfns.obj \ | |
874 $(OUTDIR)\fns.obj \ | |
875 $(OUTDIR)\font-lock.obj \ | |
876 $(OUTDIR)\frame.obj \ | |
3092 | 877 $(OUTDIR)\gc.obj \ |
428 | 878 $(OUTDIR)\general.obj \ |
442 | 879 $(OUTDIR)\getloadavg.obj \ |
428 | 880 $(OUTDIR)\glyphs.obj \ |
881 $(OUTDIR)\glyphs-eimage.obj \ | |
587 | 882 $(OUTDIR)\glyphs-shared.obj \ |
428 | 883 $(OUTDIR)\glyphs-widget.obj \ |
884 $(OUTDIR)\gui.obj \ | |
885 $(OUTDIR)\gutter.obj \ | |
886 $(OUTDIR)\hash.obj \ | |
887 $(OUTDIR)\indent.obj \ | |
888 $(OUTDIR)\imgproc.obj \ | |
889 $(OUTDIR)\insdel.obj \ | |
890 $(OUTDIR)\intl.obj \ | |
771 | 891 $(OUTDIR)\intl-win32.obj \ |
892 $(OUTDIR)\intl-encap-win32.obj \ | |
893 $(OUTDIR)\intl-auto-encap-win32.obj \ | |
428 | 894 $(OUTDIR)\keymap.obj \ |
872 | 895 $(OUTDIR)\libinterface.obj \ |
428 | 896 $(OUTDIR)\line-number.obj \ |
897 $(OUTDIR)\lread.obj \ | |
898 $(OUTDIR)\lstream.obj \ | |
899 $(OUTDIR)\macros.obj \ | |
900 $(OUTDIR)\marker.obj \ | |
901 $(OUTDIR)\md5.obj \ | |
902 $(OUTDIR)\minibuf.obj \ | |
872 | 903 # #### Leave the next one out when integrating my working ws |
428 | 904 $(OUTDIR)\nt.obj \ |
905 $(OUTDIR)\ntplay.obj \ | |
906 $(OUTDIR)\objects.obj \ | |
907 $(OUTDIR)\opaque.obj \ | |
908 $(OUTDIR)\print.obj \ | |
909 $(OUTDIR)\process.obj \ | |
910 $(OUTDIR)\process-nt.obj \ | |
911 $(OUTDIR)\profile.obj \ | |
912 $(OUTDIR)\rangetab.obj \ | |
913 $(OUTDIR)\realpath.obj \ | |
914 $(OUTDIR)\redisplay-output.obj \ | |
915 $(OUTDIR)\redisplay.obj \ | |
916 $(OUTDIR)\regex.obj \ | |
917 $(OUTDIR)\search.obj \ | |
918 $(OUTDIR)\select.obj \ | |
919 $(OUTDIR)\signal.obj \ | |
920 $(OUTDIR)\sound.obj \ | |
921 $(OUTDIR)\specifier.obj \ | |
922 $(OUTDIR)\strftime.obj \ | |
923 $(OUTDIR)\symbols.obj \ | |
924 $(OUTDIR)\syntax.obj \ | |
925 $(OUTDIR)\sysdep.obj \ | |
771 | 926 $(OUTDIR)\text.obj \ |
428 | 927 $(OUTDIR)\tparam.obj \ |
928 $(OUTDIR)\undo.obj \ | |
771 | 929 $(OUTDIR)\unicode.obj \ |
428 | 930 $(OUTDIR)\widget.obj \ |
931 $(OUTDIR)\window.obj \ | |
442 | 932 $(OUTDIR)\win32.obj |
428 | 933 |
2951 | 934 TEMACS_OBJS= \ |
935 $(TEMACS_COMMON_OBJS) \ | |
936 $(TEMACS_MODULE_OBJS) | |
937 | |
938 TEMACS_DOC_SOURCES= \ | |
939 $(TEMACS_COMMON_OBJS) \ | |
940 $(TEMACS_MODULE_SRCS) | |
941 | |
1330 | 942 ######################################################################### |
943 ## Implicit rules ## | |
944 ######################################################################### | |
945 | |
428 | 946 # Rules |
947 | |
948 .SUFFIXES: | |
430 | 949 .SUFFIXES: .c .obj .texi .info |
428 | 950 |
872 | 951 # nmake rule with batching: |
1330 | 952 #{$(SRC)}.c{$(OUTDIR)}.obj: |
872 | 953 # echo $< >> $(OUTDIR)\listfile.tmp |
954 | |
1330 | 955 {$(SRC)}.c{$(OUTDIR)}.obj: |
872 | 956 $(CCV) $(TEMACS_CPP_FLAGS) $< -Fo$@ $(BROWSERFLAGS) |
428 | 957 |
1330 | 958 ######################################################################### |
959 ## Subsidiary dependency rules ## | |
960 ######################################################################### | |
961 | |
962 ###################### Include auto-generated dependencies. | |
963 | |
964 # | |
965 # Whether to use dependency information generated by make-src-depend | |
966 # | |
967 !if $(DEPEND) && exist("$(SRC)\depend") | |
3054 | 968 ! if [if not exist $(OUTDIR) mkdir "$(OUTDIR)"] |
1330 | 969 ! endif |
970 # This perl script used to be inline but that caused too many quoting problems | |
971 ! if [perl $(NT)\make-nt-depend -s=$(SRC) -c=$(NT) -o=$(OUTDIR) < $(SRC)\depend > $(OUTDIR)\depend.tmp] | |
972 ! endif | |
973 ! include "$(OUTDIR)\depend.tmp" | |
974 !else | |
975 ! if [echo WARNING: Compiling without dependency information.] | |
976 ! endif | |
977 !endif | |
978 | |
979 ###################### Build the output directory structure if not same as | |
980 ###################### source. | |
981 | |
982 !if $(SEPARATE_BUILD) | |
983 # #### `if not exist' does not like the quotes around file names. | |
984 # But what if one of them has spaces? Fucking Microsoft! | |
3054 | 985 ! if [if not exist $(BLDROOT) mkdir "$(BLDROOT)"] |
1330 | 986 ! endif |
3054 | 987 ! if [if not exist $(BLDLIB_SRC) mkdir "$(BLDLIB_SRC)"] |
1330 | 988 ! endif |
3054 | 989 ! if [if not exist $(BLDNT) mkdir "$(BLDNT)"] |
1330 | 990 ! endif |
3054 | 991 ! if [if not exist $(OUTDIR) mkdir "$(OUTDIR)"] |
1330 | 992 ! endif |
3054 | 993 ! if [if not exist $(BLDSRC) mkdir "$(BLDSRC)"] |
1330 | 994 ! endif |
995 # No point. | |
3054 | 996 # ! if [if not exist "$(BLDROOT)" mkdir "$(BLDROOT)"] |
1330 | 997 # ! endif |
998 !endif | |
999 | |
1000 ###################### Random .obj dependencies | |
1001 | |
872 | 1002 # An explicit rule looks like this ($< works only in implicit rules): |
1330 | 1003 # $(OUTDIR)\foo.obj: $(SRC)\foo.c |
1004 # $(CCV) $(TEMACS_CPP_FLAGS) $(SRC)\$(@B).c -Fo$@ $(BROWSERFLAGS) | |
442 | 1005 |
1330 | 1006 $(OUTDIR)\emacs.obj: $(SRCROOT)\version.sh |
872 | 1007 |
1330 | 1008 $(OUTDIR)\libinterface.obj: $(SRC)\libinterface.c |
1009 $(CCV) $(TEMACS_CPP_CDECL_FLAGS) $(SRC)\$(@B).c -Fo$@ $(BROWSERFLAGS) | |
428 | 1010 |
2951 | 1011 $(OUTDIR)\postgresql.obj: $(SRCROOT)\modules\postgresql\postgresql.c |
1012 $(CCV) -I$(SRC) $(TEMACS_CPP_FLAGS) $(SRCROOT)\modules\postgresql\postgresql.c -Fo$@ $(BROWSERFLAGS) | |
1013 | |
1014 $(OUTDIR)\eldap.obj: $(SRCROOT)\modules\ldap\eldap.c | |
1015 $(CCV) -I$(SRC) $(TEMACS_CPP_FLAGS) $(SRCROOT)\modules\ldap\eldap.c -Fo$@ $(BROWSERFLAGS) | |
1016 | |
1330 | 1017 ###################### Generated source files |
1018 | |
3054 | 1019 $(OUTDIR): |
1330 | 1020 -@mkdir $(OUTDIR) |
872 | 1021 |
1330 | 1022 XEMACS_INCLUDES=\ |
1023 $(SRC)\config.h \ | |
1024 $(SRC)\Emacs.ad.h \ | |
1025 $(SRC)\paths.h | |
428 | 1026 |
1330 | 1027 # #### Copying is cheap, we should just force these |
1028 $(SRC)\config.h: $(SRC)\config.h.in | |
1029 # #### ms must have hired monkeys to design their shell commands. if | |
1030 # #### you use xcopy to copy a file from one name to another, it | |
1031 # #### PROMPTS you to see if you meant the second as a directory! and | |
1032 # #### no switch to mean "no of course, you idiots, it's a file!" | |
2106 | 1033 set COPYCMD=$(COPYCMD) |
1330 | 1034 @copy $(SRC)\config.h.in $(SRC)\config.h |
428 | 1035 |
1330 | 1036 #$(SRC)\paths.h: $(SRC)\paths.h.in |
1037 # !"cd $(SRC); cp paths.h.in paths.h" | |
1038 | |
1039 $(SRC)\Emacs.ad.h: $(NT)\Emacs.ad.h | |
2106 | 1040 set COPYCMD=$(COPYCMD) |
1330 | 1041 @$(COPY) $(NT)\Emacs.ad.h $(SRC) |
872 | 1042 |
1330 | 1043 $(SRC)\paths.h: $(NT)\paths.h |
2106 | 1044 set COPYCMD=$(COPYCMD) |
1330 | 1045 @$(COPY) $(NT)\paths.h $(SRC) |
872 | 1046 |
1330 | 1047 |
1048 ###################### lastfile.lib | |
872 | 1049 |
1330 | 1050 !if !$(USE_SYSTEM_MALLOC) || !$(USE_PORTABLE_DUMPER) |
872 | 1051 |
1330 | 1052 LASTFILE=$(OUTDIR)\lastfile.lib |
1053 LASTFILE_SRC=$(SRC) | |
1054 LASTFILE_FLAGS=$(CFLAGS) $(CPLUSPLUS_COMPILE_FLAGS) $(INCLUDES) -Fo$@ -Fd$* -c | |
1055 LASTFILE_OBJS= \ | |
1056 $(OUTDIR)\lastfile.obj | |
872 | 1057 |
1330 | 1058 $(LASTFILE): $(XEMACS_INCLUDES) $(LASTFILE_OBJS) |
1059 link.exe -lib -nologo -out:$@ $(LASTFILE_OBJS) | |
1060 | |
1061 $(OUTDIR)\lastfile.obj: $(LASTFILE_SRC)\lastfile.c | |
1062 $(CCV) $(LASTFILE_FLAGS) $(LASTFILE_SRC)\$(@B).c | |
1063 | |
872 | 1064 !endif |
1065 | |
1330 | 1066 ###################### lib-src programs |
1067 | |
1068 LIB_SRC_DEFINES = -DHAVE_CONFIG_H -DWIN32_NATIVE | |
1069 | |
1070 # | |
1071 # Creating config.values to be used by config.el | |
1072 # | |
1073 CONFIG_VALUES = $(BLDLIB_SRC)\config.values | |
1074 !if [echo Creating $(CONFIG_VALUES) && echo ;;; Do not edit this file!>$(CONFIG_VALUES)] | |
1075 !endif | |
1076 !if [echo blddir>>$(CONFIG_VALUES) && echo "$(BLDROOT:\=\\)">>$(CONFIG_VALUES)] | |
1077 !endif | |
1078 !if [echo srcdir>>$(CONFIG_VALUES) && echo "$(SRCROOT:\=\\)">>$(CONFIG_VALUES)] | |
1079 !endif | |
1080 !if [echo CC>>$(CONFIG_VALUES) && echo "$(CC:\=\\)">>$(CONFIG_VALUES)] | |
1081 !endif | |
1082 !if [echo CFLAGS>>$(CONFIG_VALUES) && echo "$(CFLAGS:\=\\)">>$(CONFIG_VALUES)] | |
1083 !endif | |
1084 !if [echo CPP>>$(CONFIG_VALUES) && echo "$(CPP:\=\\)">>$(CONFIG_VALUES)] | |
1085 !endif | |
1086 !if [echo CPPFLAGS>>$(CONFIG_VALUES) && echo "$(CPPFLAGS:\=\\)">>$(CONFIG_VALUES)] | |
1087 !endif | |
1088 !if [echo LISPDIR>>$(CONFIG_VALUES) && echo "\\$(LISP:\=\\)">>$(CONFIG_VALUES)] | |
1089 !endif | |
3281 | 1090 !if defined(PATH_LATE_PACKAGE_DIRECTORIES) |
1091 # PATH_LATE_PACKAGE_DIRECTORIES is already a quoted string. | |
1092 ! if [echo PATH_LATE_PACKAGE_DIRECTORIES>>$(CONFIG_VALUES) && echo $(PATH_LATE_PACKAGE_DIRECTORIES)>>$(CONFIG_VALUES)] | |
1093 ! endif | |
1330 | 1094 !endif |
1095 | |
1096 LINK_DEPENDENCY_ARGS = -Fe$@ -Fd$* $** -link $(DEBUG_FLAGS_LINK) | |
1097 LINK_STANDARD_LIBRARY_ARGS = setargv.obj user32.lib wsock32.lib | |
1098 | |
1333 | 1099 LIB_SRC_CFLAGS = $(CFLAGS) -I$(LIB_SRC) -I$(SRC) $(LIB_SRC_DEFINES) |
1100 | |
1330 | 1101 # Inferred rule |
1102 {$(LIB_SRC)}.c{$(BLDLIB_SRC)}.exe : | |
1333 | 1103 $(CCV) $(LIB_SRC_CFLAGS) $(LINK_DEPENDENCY_ARGS) $(LINK_STANDARD_LIBRARY_ARGS) |
4603
202cb69c4d87
Support VS 2005 manifest files
Vin Shelton <acs@xemacs.org>
parents:
4458
diff
changeset
|
1104 # If we're using Visual Studio 2005 or greater, |
202cb69c4d87
Support VS 2005 manifest files
Vin Shelton <acs@xemacs.org>
parents:
4458
diff
changeset
|
1105 # embed the manifest into the executable. |
202cb69c4d87
Support VS 2005 manifest files
Vin Shelton <acs@xemacs.org>
parents:
4458
diff
changeset
|
1106 !if $(MSC_VER) >= 1400 |
202cb69c4d87
Support VS 2005 manifest files
Vin Shelton <acs@xemacs.org>
parents:
4458
diff
changeset
|
1107 mt -manifest $@.manifest -outputresource:$@;1 |
202cb69c4d87
Support VS 2005 manifest files
Vin Shelton <acs@xemacs.org>
parents:
4458
diff
changeset
|
1108 !endif |
1330 | 1109 |
1110 # Individual dependencies | |
1111 ETAGS_DEPS = $(LIB_SRC)/getopt.c $(LIB_SRC)/getopt1.c $(SRC)/regex.c | |
1112 $(BLDLIB_SRC)/etags.exe : $(LIB_SRC)/etags.c $(ETAGS_DEPS) | |
1333 | 1113 $(CCV) $(LIB_SRC_CFLAGS) $(LINK_DEPENDENCY_ARGS) -stack:0x800000 $(LINK_STANDARD_LIBRARY_ARGS) |
4603
202cb69c4d87
Support VS 2005 manifest files
Vin Shelton <acs@xemacs.org>
parents:
4458
diff
changeset
|
1114 # If we're using Visual Studio 2005 or greater, |
202cb69c4d87
Support VS 2005 manifest files
Vin Shelton <acs@xemacs.org>
parents:
4458
diff
changeset
|
1115 # embed the manifest into the executable. |
202cb69c4d87
Support VS 2005 manifest files
Vin Shelton <acs@xemacs.org>
parents:
4458
diff
changeset
|
1116 !if $(MSC_VER) >= 1400 |
202cb69c4d87
Support VS 2005 manifest files
Vin Shelton <acs@xemacs.org>
parents:
4458
diff
changeset
|
1117 mt -manifest $@.manifest -outputresource:$@;1 |
202cb69c4d87
Support VS 2005 manifest files
Vin Shelton <acs@xemacs.org>
parents:
4458
diff
changeset
|
1118 !endif |
1330 | 1119 |
1120 $(BLDLIB_SRC)/movemail.exe : $(LIB_SRC)/movemail.c $(LIB_SRC)/pop.c $(ETAGS_DEPS) | |
1121 | |
1122 # Minitar uses zlib so just use cdecl to simplify things | |
1123 $(BLDLIB_SRC)/minitar.exe : $(NT)/minitar.c | |
2951 | 1124 $(CCV) -I$(SRC) -I"$(ZLIB_DIR)" $(LIB_SRC_DEFINES) $(CFLAGS_CDECL_NO_LIB) -MD $(LINK_DEPENDENCY_ARGS) "$(ZLIB_DIR)\zlib.lib" |
4603
202cb69c4d87
Support VS 2005 manifest files
Vin Shelton <acs@xemacs.org>
parents:
4458
diff
changeset
|
1125 # If we're using Visual Studio 2005 or greater, |
202cb69c4d87
Support VS 2005 manifest files
Vin Shelton <acs@xemacs.org>
parents:
4458
diff
changeset
|
1126 # embed the manifest into the executable. |
202cb69c4d87
Support VS 2005 manifest files
Vin Shelton <acs@xemacs.org>
parents:
4458
diff
changeset
|
1127 !if $(MSC_VER) >= 1400 |
202cb69c4d87
Support VS 2005 manifest files
Vin Shelton <acs@xemacs.org>
parents:
4458
diff
changeset
|
1128 mt -manifest $@.manifest -outputresource:$@;1 |
202cb69c4d87
Support VS 2005 manifest files
Vin Shelton <acs@xemacs.org>
parents:
4458
diff
changeset
|
1129 !endif |
1330 | 1130 |
1131 LIB_SRC_TOOLS = \ | |
1132 $(BLDLIB_SRC)/etags.exe \ | |
1133 $(BLDLIB_SRC)/hexl.exe \ | |
1134 $(BLDLIB_SRC)/i.exe \ | |
1135 $(BLDLIB_SRC)/winclient.exe \ | |
1136 $(BLDLIB_SRC)/make-docfile.exe \ | |
1137 $(BLDLIB_SRC)/mmencode.exe \ | |
1138 $(BLDLIB_SRC)/movemail.exe \ | |
4773
c858892e4f2b
Remove build rules that try to make wakeup out of the now nonexistent wakeup.c.
Jerry James <james@xemacs.org>
parents:
4735
diff
changeset
|
1139 $(BLDLIB_SRC)/sorted-doc.exe |
1330 | 1140 !if $(USE_MINITAR) |
1141 LIB_SRC_TOOLS = \ | |
1142 $(LIB_SRC_TOOLS) \ | |
1143 $(BLDLIB_SRC)/minitar.exe | |
428 | 1144 !endif |
440 | 1145 !if $(USE_PORTABLE_DUMPER) |
1330 | 1146 LIB_SRC_TOOLS = \ |
1147 $(XEMACS_INCLUDES) \ | |
1148 $(BLDLIB_SRC)/make-dump-id.exe \ | |
1149 $(LIB_SRC_TOOLS) | |
442 | 1150 !endif |
428 | 1151 |
1330 | 1152 ########################### Create the Installation file |
428 | 1153 |
1330 | 1154 $(BLDROOT)\Installation:: installation |
440 | 1155 |
442 | 1156 installation:: |
1330 | 1157 @echo OS version:>$(BLDROOT)\Installation |
1158 @ver >> $(BLDROOT)\Installation | |
1159 @type >> $(BLDROOT)\Installation << | |
428 | 1160 !if defined(OS) |
1161 OS: $(OS) | |
1162 !endif | |
1163 | |
1370 | 1164 XEmacs $(XEMACS_VERSION_STRING) $(xemacs_codename) $(xemacs_extra_name:"=) configured for `$(EMACS_CONFIGURATION)'. |
428 | 1165 |
1052 | 1166 Building XEmacs using "$(MAKE:\=\\)". |
1167 Building XEmacs using make flags "$(MAKEFLAGS)". | |
1330 | 1168 Building XEmacs in source tree "$(SRCROOT:\=\\)". |
1169 !if $(SEPARATE_BUILD) | |
1170 Building XEmacs into compiled tree "$(BLDROOT:\=\\)". | |
1171 !endif | |
428 | 1172 !if defined(CCV) |
1333 | 1173 For src, using compiler "$(CC) $(TEMACS_CPP_FLAGS)". |
1174 For lib-src, using compiler "$(CC) $(LIB_SRC_CFLAGS)". | |
428 | 1175 !endif |
1203 | 1176 !if $(CPLUSPLUS_COMPILE) |
1177 Compiling as C++. | |
1178 !endif | |
1052 | 1179 Installing XEmacs in "$(INSTALL_DIR:\=\\)". |
3281 | 1180 !if defined(PATH_LATE_PACKAGE_DIRECTORIES) |
1181 Package path is $(PATH_LATE_PACKAGE_DIRECTORIES). | |
1182 !endif | |
428 | 1183 !if $(INFODOCK) |
1184 Building InfoDock. | |
1185 !endif | |
442 | 1186 !if $(HAVE_MS_WINDOWS) |
428 | 1187 Compiling in support for Microsoft Windows native GUI. |
1188 !endif | |
771 | 1189 !if $(MULE) |
1190 Compiling in international (MULE) support. | |
428 | 1191 !endif |
488 | 1192 !if $(HAVE_GTK) |
1193 -------------------------------------------------------------------- | |
1315 | 1194 NOTE: You specified HAVE_GTK=1, but we are compiling WITHOUT GTK support. |
1195 NOTE: gtk-xemacs is not currently supported on MS Windows (mingw or msvc). | |
1196 NOTE: Yes, we know that gtk has been ported to native MS Windows, but | |
1197 NOTE: XEmacs is not yet ready to use that port. | |
488 | 1198 -------------------------------------------------------------------- |
1199 !endif | |
428 | 1200 !if $(HAVE_XPM) |
1201 Compiling in support for XPM images. | |
1202 !else | |
1203 -------------------------------------------------------------------- | |
1315 | 1204 NOTE: Compiling without XPM support. |
1205 NOTE: You should strongly consider installing XPM. | |
1206 NOTE: Otherwise toolbars and other graphics will look suboptimal. | |
1207 NOTE: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux) | |
428 | 1208 -------------------------------------------------------------------- |
1209 !endif | |
1210 !if $(HAVE_GIF) | |
1211 Compiling in support for GIF images. | |
1212 !endif | |
1213 !if $(HAVE_PNG) | |
1214 Compiling in support for PNG images. | |
1215 !else | |
1216 -------------------------------------------------------------------- | |
1315 | 1217 NOTE: Compiling without PNG image support. |
1218 NOTE: You should strongly consider installing the PNG libraries. | |
1219 NOTE: Otherwise certain images and glyphs may not display. | |
1220 NOTE: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux | |
428 | 1221 -------------------------------------------------------------------- |
1222 !endif | |
1223 !if $(HAVE_TIFF) | |
1224 Compiling in support for TIFF images. | |
1225 !endif | |
1226 !if $(HAVE_JPEG) | |
1227 Compiling in support for JPEG images. | |
1228 !endif | |
1229 !if $(HAVE_XFACE) | |
1230 Compiling in support for X-Face message headers. | |
1231 !endif | |
771 | 1232 !if $(HAVE_ZLIB) |
1233 Compiling in support for GZIP compression/decompression. | |
1234 !endif | |
428 | 1235 !if $(HAVE_TOOLBARS) |
1236 Compiling in support for toolbars. | |
1237 !endif | |
1238 !if $(HAVE_DIALOGS) | |
1239 Compiling in support for dialogs. | |
1240 !endif | |
1241 !if $(HAVE_WIDGETS) | |
1242 Compiling in support for widgets. | |
1243 !endif | |
2951 | 1244 !if $(HAVE_BIGNUM) |
1245 Compiling in support for arbitrary-precision numbers. | |
1246 !endif | |
1247 !if $(HAVE_DATABASE) | |
1248 !if $(BUILD_DATABASE_SHARED) | |
1249 Compiling in support for Berkeley Databases (DLL version). | |
1250 !else | |
1251 Compiling in support for Berkeley Databases (static-library version). | |
1252 !endif | |
1253 !endif | |
1254 !if $(HAVE_POSTGRESQL) | |
1255 Compiling in support for PostgreSQL. | |
1256 !endif | |
1257 !if $(HAVE_LDAP) | |
1258 Compiling in support for LDAP. | |
1259 !endif | |
428 | 1260 !if $(HAVE_NATIVE_SOUND) |
1261 Compiling in support for native sounds. | |
1262 !endif | |
1263 !if $(USE_UNION_TYPE) | |
1264 Using union type for Lisp object storage. | |
1315 | 1265 NOTE: --------------------------------------------------------- |
1266 NOTE: This tends to trigger compiler bugs, especially when combined | |
1267 NOTE: with MULE and ERROR_CHECKING. Crashes in pdump have recently | |
1268 NOTE: been observed using Visual C++ in combination with union type, | |
1269 NOTE: MULE, and ERROR_CHECKING. | |
1270 NOTE: --------------------------------------------------------- | |
428 | 1271 !endif |
438 | 1272 !if $(USE_PORTABLE_DUMPER) |
1273 Using portable dumper. | |
1274 !endif | |
440 | 1275 !if $(USE_SYSTEM_MALLOC) |
1276 Using system malloc. | |
1277 !endif | |
1278 !if $(USE_CRTDLL) | |
942 | 1279 Using DLL version of C runtime library. |
440 | 1280 !endif |
814 | 1281 !if $(ERROR_CHECK_ALL) |
1203 | 1282 Compiling in extra internal error-checking. |
1315 | 1283 NOTE: --------------------------------------------------------- |
1284 NOTE: Compiling in support for runtime error-checking. | |
1285 NOTE: XEmacs will run noticeably more slowly as a result. | |
1286 NOTE: Error-checking is on by default for XEmacs beta releases. | |
1287 NOTE: --------------------------------------------------------- | |
814 | 1288 !endif |
428 | 1289 !if $(DEBUG_XEMACS) |
814 | 1290 Compiling in debugging support (no slowdown). |
1291 !endif | |
1292 !if $(OPTIMIZED_BUILD) | |
1293 Compiling with optimization. | |
428 | 1294 !endif |
442 | 1295 !if $(QUICK_BUILD) |
1296 Disabling non-essential build actions. Use with care! | |
1297 !endif | |
942 | 1298 !if $(USE_KKCC) |
3263 | 1299 Using new experimental GC mark algorithms. |
2720 | 1300 !endif |
3092 | 1301 !if $(NEW_GC) |
3263 | 1302 Using new experimental incremental garbage collector and new allocator. |
3092 | 1303 !endif |
428 | 1304 <<NOKEEP |
1305 @echo -------------------------------------------------------------------- | |
1330 | 1306 @type $(BLDROOT)\Installation |
428 | 1307 @echo -------------------------------------------------------------------- |
1308 | |
1330 | 1309 ######################################################################### |
1310 ## Primary rebuilding process ## | |
1311 ######################################################################### | |
1312 | |
1313 ########################### Definitions for linking temacs.exe | |
1314 | |
1315 !if !$(USE_PORTABLE_DUMPER) | |
1316 TEMACS_ENTRYPOINT=-entry:_start | |
1317 !else | |
1318 TEMACS_ENTRYPOINT=-entry:mainCRTStartup | |
1319 !endif | |
1320 | |
1321 TEMACS_BROWSE=$(BLDSRC)\temacs.bsc | |
2951 | 1322 TEMACS_LIBS=$(LASTFILE) $(OPT_LIBS) \ |
1330 | 1323 oldnames.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib \ |
1324 shell32.lib wsock32.lib netapi32.lib winmm.lib winspool.lib ole32.lib \ | |
4403
7080e020d700
Add support for the Intel compiler under Windows
Vin Shelton <acs@xemacs.org>
parents:
4225
diff
changeset
|
1325 mpr.lib uuid.lib imm32.lib $(INTEL_LIBS) $(LIBC_LIB) |
2524 | 1326 TEMACS_COMMON_LFLAGS=-nologo $(LIBRARIES) $(DEBUG_FLAGS_LINK) \ |
1333 | 1327 -base:0x1000000 -stack:0x800000 $(TEMACS_ENTRYPOINT) -subsystem:windows \ |
1330 | 1328 -heap:0x00100000 -nodefaultlib $(PROFILE_FLAGS) setargv.obj |
2524 | 1329 TEMACS_LFLAGS=$(TEMACS_COMMON_LFLAGS) \ |
1330 -pdb:$(BLDSRC)\temacs.pdb -map:$(BLDSRC)\temacs.map | |
1331 XEMACS_LFLAGS=$(TEMACS_COMMON_LFLAGS) \ | |
1332 -pdb:$(BLDSRC)\xemacs.pdb -map:$(BLDSRC)\xemacs.map | |
1330 | 1333 |
1334 ########################### Definitions for running temacs.exe/xemacs.exe | |
1335 | |
1336 RAW_EXE=$(BLDSRC)\temacs.exe | |
1337 DUMP_TARGET = $(BLDSRC)\xemacs.exe | |
1338 DO_TEMACS = "$(BLDLIB_SRC)\i" "$(RAW_EXE)" | |
1339 DO_XEMACS = "$(BLDLIB_SRC)\i" "$(DUMP_TARGET)" | |
1340 | |
1341 BATCH = -no-packages -batch | |
1342 BATCH_PACKAGES = -vanilla -batch | |
1343 TEMACS_BATCH = $(DO_TEMACS) -nd $(BATCH) | |
1344 XEMACS_BATCH = $(DO_XEMACS) $(BATCH) | |
1345 XEMACS_BATCH_PACKAGES = $(DO_XEMACS) $(BATCH_PACKAGES) | |
1346 temacs_loadup_args = -l $(LISP)/loadup.el | |
1347 dump_temacs_args = $(temacs_loadup_args) dump | |
1348 run_temacs_args = $(temacs_loadup_args) run-temacs | |
1349 dump_temacs = $(TEMACS_BATCH) $(dump_temacs_args) | |
1350 | |
1351 ########################### Build rules | |
1352 | |
1346 | 1353 ## Use this rule to build the complete system. We need both update-elc |
1354 ## and update-elc-2 due to the sideways dependency of NEEDTODUMP. See | |
1355 ## src/Makefile.in.in for a more detailed discussion of this. | |
1356 | |
3054 | 1357 all: installation $(OUTDIR) $(LIB_SRC_TOOLS) \ |
1346 | 1358 update-elc update-elc-2 \ |
1359 $(LISP)/finder-inf.el load-shadows info | |
1330 | 1360 |
1361 $(TEMACS_BROWSE): $(TEMACS_OBJS) | |
1362 @dir /b/s $(OUTDIR)\*.sbr > $(OUTDIR)\bscmake.tmp | |
1363 bscmake -nologo -o$(TEMACS_BROWSE) @$(OUTDIR)\bscmake.tmp | |
1364 -$(DEL) $(OUTDIR)\bscmake.tmp | |
1365 | |
1346 | 1366 ## (1) Compile all dependencies of the XEmacs executable |
1330 | 1367 |
1368 $(OUTDIR)\dump-id.obj : $(BLDSRC)\dump-id.c | |
1369 $(CCV) $(TEMACS_CPP_FLAGS) $(BLDSRC)\$(@B).c -Fo$@ $(BROWSERFLAGS) | |
1370 | |
1371 $(BLDSRC)\dump-id.c : $(BLDLIB_SRC)/make-dump-id.exe $(TEMACS_OBJS) | |
1372 cd $(BLDSRC) | |
1373 $(BLDLIB_SRC)\make-dump-id.exe | |
1374 | |
1375 $(OUTDIR)\temacs.res: $(NT)\xemacs.rc | |
1376 cd $(NT) | |
1377 rc -Fo$@ xemacs.rc | |
1378 | |
1346 | 1379 ## (2) Link the XEmacs executable |
1380 | |
1330 | 1381 !if $(USE_PORTABLE_DUMPER) |
1382 TEMACS_DUMP_DEP = $(OUTDIR)\dump-id.obj | |
1383 !else | |
1384 TEMACS_DUMP_DEP = $(OUTDIR)\temacs.res | |
1385 !endif | |
1386 | |
1387 $(RAW_EXE): $(TEMACS_OBJS) $(LASTFILE) $(TEMACS_DUMP_DEP) | |
4413
dc84ec90b463
Fix build problems on Windows.
Mike Sperber <sperber@deinprogramm.de>
parents:
4405
diff
changeset
|
1388 # Command line too long for some Windows installation: |
dc84ec90b463
Fix build problems on Windows.
Mike Sperber <sperber@deinprogramm.de>
parents:
4405
diff
changeset
|
1389 # @echo link $(TEMACS_LFLAGS) -out:$@ $(TEMACS_OBJS) $(TEMACS_DUMP_DEP) $(TEMACS_LIBS) |
1330 | 1390 link.exe @<< |
1391 $(TEMACS_LFLAGS) -out:$@ $(TEMACS_OBJS) $(TEMACS_DUMP_DEP) $(TEMACS_LIBS) | |
1392 << | |
1393 | |
1394 !if $(DEBUG_XEMACS) | |
1395 $(RAW_EXE): $(TEMACS_BROWSE) | |
1396 !endif | |
1397 | |
1346 | 1398 ## (3) Update the .elc's needed for dumping |
1399 | |
1400 update-elc: $(RAW_EXE) | |
1401 $(TEMACS_BATCH) -l $(LISP)\update-elc.el | |
1402 | |
1403 ## This file is touched by update-elc.el when redumping is necessary. | |
1404 $(BLDSRC)\NEEDTODUMP: | |
1405 @echo >$(BLDSRC)\NEEDTODUMP | |
1406 | |
1407 ## (4) Build the DOC file | |
1330 | 1408 |
1409 DOC=$(BLDLIB_SRC)\DOC | |
1410 | |
1411 docfile :: | |
1412 if exist $(DOC) $(DEL) $(DOC) | |
1413 docfile :: $(DOC) | |
1414 | |
1415 # We need to write the QUICK_BUILD stuff as-is (and not just have no | |
2951 | 1416 # dependencies for DOC) because DOC needs TEMACS_DOC_SOURCES as dependencies to |
1330 | 1417 # get $(**) right. The `touch' is needed because of the way nmake |
1418 # calculates dependencies; see comments in src/Makefile.in.in. | |
2951 | 1419 $(DOC): $(BLDLIB_SRC)\make-docfile.exe $(BLDSRC)\NEEDTODUMP $(TEMACS_DOC_SOURCES) |
1330 | 1420 !if $(QUICK_BUILD) |
1421 if not exist $(DOC) $(TEMACS_BATCH) -l $(LISP)\make-docfile.el -- -o $(DOC) -i $(SRCROOT)\site-packages @<< | |
1422 $(**) | |
1423 << | |
1424 -touch $(DOC) | |
1425 !else | |
1426 $(TEMACS_BATCH) -l $(LISP)\make-docfile.el -- -o $(DOC) -i $(SRCROOT)\site-packages @<< | |
1427 $(**) | |
1428 << | |
1429 !endif | |
1430 | |
1346 | 1431 ## (5) Dump |
1330 | 1432 |
1433 !if $(USE_PORTABLE_DUMPER) | |
1434 $(DUMP_TARGET): $(NT)\xemacs.rc | |
1435 !endif | |
1436 | |
1437 # This rule dumps xemacs and then possibly spawns sub-make if PURESPACE | |
1438 # requirements have changed. | |
1439 | |
1440 $(DUMP_TARGET): $(DOC) $(RAW_EXE) $(BLDSRC)\NEEDTODUMP | |
1441 $(TEMACS_BATCH) -l $(LISP)\loadup.el dump | |
1442 !if $(USE_PORTABLE_DUMPER) | |
1443 cd $(BLDSRC) | |
1444 rc -d INCLUDE_DUMP -Fo $(OUTDIR)\xemacs.res $(NT)\xemacs.rc | |
1445 # Make the resource section read/write since almost all of it is the dump | |
1446 # data which needs to be writable. This avoids having to copy it. | |
1447 link.exe @<< | |
2524 | 1448 $(XEMACS_LFLAGS) -section:.rsrc,rw -out:$(BLDSRC)\xemacs.exe $(TEMACS_OBJS) $(OUTDIR)\xemacs.res $(TEMACS_LIBS) $(OUTDIR)\dump-id.obj |
1330 | 1449 << |
1450 -$(DEL) $(BLDSRC)\xemacs.dmp | |
4603
202cb69c4d87
Support VS 2005 manifest files
Vin Shelton <acs@xemacs.org>
parents:
4458
diff
changeset
|
1451 # If we're using Visual Studio 2005 or greater, |
202cb69c4d87
Support VS 2005 manifest files
Vin Shelton <acs@xemacs.org>
parents:
4458
diff
changeset
|
1452 # embed the manifest into the executable. |
202cb69c4d87
Support VS 2005 manifest files
Vin Shelton <acs@xemacs.org>
parents:
4458
diff
changeset
|
1453 !if $(MSC_VER) >= 1400 |
202cb69c4d87
Support VS 2005 manifest files
Vin Shelton <acs@xemacs.org>
parents:
4458
diff
changeset
|
1454 mt -manifest $@.manifest -outputresource:$@;1 |
202cb69c4d87
Support VS 2005 manifest files
Vin Shelton <acs@xemacs.org>
parents:
4458
diff
changeset
|
1455 !endif |
202cb69c4d87
Support VS 2005 manifest files
Vin Shelton <acs@xemacs.org>
parents:
4458
diff
changeset
|
1456 |
1330 | 1457 !endif |
1458 | |
1346 | 1459 ## (6) Update the remaining .elc's, post-dumping |
1460 | |
1461 update-elc-2: $(DUMP_TARGET) | |
1330 | 1462 $(XEMACS_BATCH) -no-autoloads -l update-elc-2.el -f batch-update-elc-2 $(LISP) |
1463 | |
1346 | 1464 ## (7) Other random stuff |
1465 | |
1466 $(LISP)/finder-inf.el: update-elc-2 | |
1330 | 1467 !if !$(QUICK_BUILD) |
1468 @echo Building finder database ... | |
1469 $(XEMACS_BATCH) -eval "(setq finder-compile-keywords-quiet t)" \ | |
1470 -l finder -f finder-compile-keywords | |
1471 @echo Building finder database ...(done) | |
1472 !endif | |
1473 | |
1346 | 1474 load-shadows: update-elc-2 |
1330 | 1475 !if !$(QUICK_BUILD) |
1476 @echo Testing for Lisp shadows ... | |
1477 @$(XEMACS_BATCH) -f list-load-path-shadows | |
1478 !endif | |
1479 | |
2948 | 1480 ###################### Building the info files |
1481 | |
1482 !if !defined(MAKEINFO) | |
1483 MAKEINFO=$(XEMACS_BATCH_PACKAGES) -l texinfmt -f batch-texinfo-format | |
1484 !endif | |
1485 | |
1486 MANDIR = $(SRCROOT)\man | |
1487 INFODIR = $(SRCROOT)\info | |
1488 INFO_FILES= \ | |
4225 | 1489 $(INFODIR)\beta.info \ |
2948 | 1490 $(INFODIR)\cl.info \ |
1491 $(INFODIR)\custom.info \ | |
1492 $(INFODIR)\emodules.info \ | |
1493 $(INFODIR)\external-widget.info \ | |
1494 $(INFODIR)\info.info \ | |
4225 | 1495 $(INFODIR)\internals.info \ |
1496 $(INFODIR)\lispref.info \ | |
1497 $(INFODIR)\new-users-guide.info \ | |
2948 | 1498 $(INFODIR)\standards.info \ |
1499 $(INFODIR)\term.info \ | |
1500 $(INFODIR)\termcap.info \ | |
1501 $(INFODIR)\texinfo.info \ | |
1502 $(INFODIR)\widget.info \ | |
1503 $(INFODIR)\xemacs-faq.info \ | |
4225 | 1504 $(INFODIR)\xemacs.info |
2948 | 1505 |
1506 {$(MANDIR)}.texi{$(INFODIR)}.info: | |
1507 cd $(MANDIR) | |
1508 $(MAKEINFO) $(**F) | |
1509 | |
1510 XEMACS_SRCS = \ | |
1511 $(MANDIR)\xemacs\abbrevs.texi \ | |
1512 $(MANDIR)\xemacs\basic.texi \ | |
1513 $(MANDIR)\xemacs\buffers.texi \ | |
1514 $(MANDIR)\xemacs\building.texi \ | |
1515 $(MANDIR)\xemacs\calendar.texi \ | |
1516 $(MANDIR)\xemacs\cmdargs.texi \ | |
1517 $(MANDIR)\xemacs\custom.texi \ | |
1518 $(MANDIR)\xemacs\display.texi \ | |
1519 $(MANDIR)\xemacs\entering.texi \ | |
1520 $(MANDIR)\xemacs\files.texi \ | |
1521 $(MANDIR)\xemacs\fixit.texi \ | |
1522 $(MANDIR)\xemacs\frame.texi \ | |
1523 $(MANDIR)\xemacs\glossary.texi \ | |
1524 $(MANDIR)\xemacs\gnu.texi \ | |
1525 $(MANDIR)\xemacs\help.texi \ | |
1526 $(MANDIR)\xemacs\indent.texi \ | |
1527 $(MANDIR)\xemacs\keystrokes.texi \ | |
1528 $(MANDIR)\xemacs\killing.texi \ | |
1529 $(MANDIR)\xemacs\m-x.texi \ | |
1530 $(MANDIR)\xemacs\major.texi \ | |
1531 $(MANDIR)\xemacs\mark.texi \ | |
1532 $(MANDIR)\xemacs\menus.texi \ | |
1533 $(MANDIR)\xemacs\mini.texi \ | |
1534 $(MANDIR)\xemacs\misc.texi \ | |
1535 $(MANDIR)\xemacs\mouse.texi \ | |
1536 $(MANDIR)\xemacs\mule.texi \ | |
1537 $(MANDIR)\xemacs\new.texi \ | |
1538 $(MANDIR)\xemacs\packages.texi \ | |
1539 $(MANDIR)\xemacs\picture.texi \ | |
1540 $(MANDIR)\xemacs\programs.texi \ | |
1541 $(MANDIR)\xemacs\reading.texi \ | |
1542 $(MANDIR)\xemacs\regs.texi \ | |
1543 $(MANDIR)\xemacs\search.texi \ | |
1544 $(MANDIR)\xemacs\sending.texi \ | |
1545 $(MANDIR)\xemacs\startup.texi \ | |
1546 $(MANDIR)\xemacs\text.texi \ | |
1547 $(MANDIR)\xemacs\trouble.texi \ | |
1548 $(MANDIR)\xemacs\undo.texi \ | |
1549 $(MANDIR)\xemacs\windows.texi \ | |
1550 $(MANDIR)\xemacs\xemacs.texi | |
1551 | |
1552 LISPREF_SRCS = \ | |
1553 $(MANDIR)\lispref\abbrevs.texi \ | |
1554 $(MANDIR)\lispref\annotations.texi \ | |
1555 $(MANDIR)\lispref\back.texi \ | |
1556 $(MANDIR)\lispref\backups.texi \ | |
1557 $(MANDIR)\lispref\buffers.texi \ | |
1558 $(MANDIR)\lispref\building.texi \ | |
1559 $(MANDIR)\lispref\commands.texi \ | |
1560 $(MANDIR)\lispref\compile.texi \ | |
1561 $(MANDIR)\lispref\consoles-devices.texi \ | |
1562 $(MANDIR)\lispref\control.texi \ | |
1563 $(MANDIR)\lispref\customize.texi \ | |
1564 $(MANDIR)\lispref\databases.texi \ | |
1565 $(MANDIR)\lispref\debugging.texi \ | |
1566 $(MANDIR)\lispref\dialog.texi \ | |
1567 $(MANDIR)\lispref\display.texi \ | |
1568 $(MANDIR)\lispref\dragndrop.texi \ | |
1569 $(MANDIR)\lispref\edebug-inc.texi \ | |
1570 $(MANDIR)\lispref\edebug.texi \ | |
1571 $(MANDIR)\lispref\errors.texi \ | |
1572 $(MANDIR)\lispref\eval.texi \ | |
1573 $(MANDIR)\lispref\extents.texi \ | |
1574 $(MANDIR)\lispref\faces.texi \ | |
1575 $(MANDIR)\lispref\files.texi \ | |
1576 $(MANDIR)\lispref\frames.texi \ | |
1577 $(MANDIR)\lispref\functions.texi \ | |
1578 $(MANDIR)\lispref\glyphs.texi \ | |
1579 $(MANDIR)\lispref\hash-tables.texi \ | |
1580 $(MANDIR)\lispref\help.texi \ | |
1581 $(MANDIR)\lispref\hooks.texi \ | |
1582 $(MANDIR)\lispref\index.texi \ | |
1583 $(MANDIR)\lispref\internationalization.texi \ | |
1584 $(MANDIR)\lispref\intro.texi \ | |
1585 $(MANDIR)\lispref\keymaps.texi \ | |
1586 $(MANDIR)\lispref\ldap.texi \ | |
1587 $(MANDIR)\lispref\lispref.texi \ | |
1588 $(MANDIR)\lispref\lists.texi \ | |
1589 $(MANDIR)\lispref\loading.texi \ | |
1590 $(MANDIR)\lispref\locals.texi \ | |
1591 $(MANDIR)\lispref\macros.texi \ | |
1592 $(MANDIR)\lispref\maps.texi \ | |
1593 $(MANDIR)\lispref\markers.texi \ | |
1594 $(MANDIR)\lispref\menus.texi \ | |
1595 $(MANDIR)\lispref\minibuf.texi \ | |
1596 $(MANDIR)\lispref\modes.texi \ | |
1597 $(MANDIR)\lispref\mouse.texi \ | |
1598 $(MANDIR)\lispref\mule.texi \ | |
1599 $(MANDIR)\lispref\numbers.texi \ | |
1600 $(MANDIR)\lispref\objects.texi \ | |
1601 $(MANDIR)\lispref\os.texi \ | |
4225 | 1602 $(MANDIR)\lispref\packaging.texi \ |
2948 | 1603 $(MANDIR)\lispref\positions.texi \ |
1604 $(MANDIR)\lispref\processes.texi \ | |
1605 $(MANDIR)\lispref\range-tables.texi \ | |
1606 $(MANDIR)\lispref\scrollbars.texi \ | |
1607 $(MANDIR)\lispref\searching.texi \ | |
1608 $(MANDIR)\lispref\sequences.texi \ | |
1609 $(MANDIR)\lispref\specifiers.texi \ | |
1610 $(MANDIR)\lispref\streams.texi \ | |
1611 $(MANDIR)\lispref\strings.texi \ | |
1612 $(MANDIR)\lispref\symbols.texi \ | |
1613 $(MANDIR)\lispref\syntax.texi \ | |
1614 $(MANDIR)\lispref\text.texi \ | |
1615 $(MANDIR)\lispref\tips.texi \ | |
1616 $(MANDIR)\lispref\toolbar.texi \ | |
1617 $(MANDIR)\lispref\tooltalk.texi \ | |
1618 $(MANDIR)\lispref\variables.texi \ | |
1619 $(MANDIR)\lispref\windows.texi \ | |
1620 $(MANDIR)\lispref\x-windows.texi | |
1621 | |
1622 INTERNALS_SRCS = \ | |
1623 $(MANDIR)\internals\internals.texi | |
1624 | |
1625 NEW_USERS_GUIDE_SRCS = \ | |
1626 $(MANDIR)\new-users-guide\custom1.texi \ | |
1627 $(MANDIR)\new-users-guide\custom2.texi \ | |
1628 $(MANDIR)\new-users-guide\edit.texi \ | |
1629 $(MANDIR)\new-users-guide\enter.texi \ | |
1630 $(MANDIR)\new-users-guide\files.texi \ | |
1631 $(MANDIR)\new-users-guide\help.texi \ | |
1632 $(MANDIR)\new-users-guide\modes.texi \ | |
1633 $(MANDIR)\new-users-guide\new-users-guide.texi \ | |
1634 $(MANDIR)\new-users-guide\region.texi \ | |
1635 $(MANDIR)\new-users-guide\search.texi \ | |
1636 $(MANDIR)\new-users-guide\xmenu.texi | |
1637 | |
1638 $(INFODIR)\xemacs.info: $(XEMACS_SRCS) | |
1639 cd $(MANDIR)\xemacs | |
1640 $(MAKEINFO) xemacs.texi | |
1641 | |
1642 $(INFODIR)\lispref.info: $(LISPREF_SRCS) | |
1643 cd $(MANDIR)\lispref | |
1644 $(MAKEINFO) lispref.texi | |
1645 | |
1646 $(INFODIR)\internals.info: $(INTERNALS_SRCS) | |
1647 cd $(MANDIR)\internals | |
1648 $(MAKEINFO) internals.texi | |
1649 | |
1650 $(INFODIR)\new-users-guide.info: $(NEW_USERS_GUIDE_SRCS) | |
1651 cd $(MANDIR)\new-users-guide | |
1652 $(MAKEINFO) new-users-guide.texi | |
1653 | |
1654 info: makeinfo-test $(INFO_FILES) | |
1655 | |
1330 | 1656 ######################################################################### |
2951 | 1657 ## Testing, TAGS, install, clean, etc. ## |
1330 | 1658 ######################################################################### |
1659 | |
1660 ########################### Automated tests | |
428 | 1661 |
1330 | 1662 testdir = ../tests/automated |
1663 batch_test_emacs = $(BATCH_PACKAGES) -l $(testdir)/test-harness.el -f batch-test-emacs $(testdir) | |
1664 | |
1665 check: | |
1666 cd $(BLDSRC) | |
1667 $(DO_XEMACS) $(batch_test_emacs) | |
1668 | |
1669 check-temacs: | |
1670 cd $(BLDSRC) | |
1680 | 1671 $(TEMACS_BATCH) $(run_temacs_args) $(batch_test_emacs) |
1330 | 1672 |
1673 check-features: all | |
1674 cd $(BLDSRC) | |
1675 $(XEMACS_BATCH) -l check-features.el | |
1676 | |
1677 | |
1678 ########################### Rebuilding TAGS | |
1679 | |
1680 tags: | |
1681 @echo If you do not have a copy of etags around, then do 'make lib-src' first. | |
1682 @echo To make use of the tags file, put the following in your .emacs: | |
1683 @echo (setq tag-table-alist | |
1684 @echo '(("$(SRCROOT:\=\\)\\" . "$(SRCROOT:\=\\)\\"))) | |
1685 cd $(SRCROOT) | |
1686 -$(DEL) TAGS | |
1687 set PATH=lib-src;%PATH% | |
1688 # we need to double ^, but only in one place, because (according to the | |
1689 # nmake manual), a ^ is used to quote certain special characters such as | |
1690 # backslash, but is treated literally within double quotes -- and notice | |
1691 # carefully the occurrences of double quotes in the first line below! | |
1692 etags -a -r "/[ ]*DEF\(VAR\|INE\)_[A-Z_]+[ ]*([ ]*\"\([^^\"]+\)\"/\2/" src\*.c src\*.h lwlib\*.c lwlib\*.h lib-src\*.c lib-src\*.h | |
1693 etags -a -l none -r "/^(def\(var\|un\|alias\|const\|macro\|subst\|struct\|face\|group\|custom\|ine-\(function\|compiler-macro\|[a-z-]+alias\)\)[ ]+'?\([^ ]+\)/\3/" $(LISP)\*.el $(LISP)\mule\*.el | |
1694 | |
1695 ########################### Install the system | |
1696 | |
1697 # use this rule to install the system | |
1698 install: all | |
1699 cd $(NT) | |
2106 | 1700 set COPYCMD=$(COPYCMD) |
1330 | 1701 @echo Installing in $(INSTALL_DIR) ... |
1702 @echo PlaceHolder > PlaceHolder | |
1393 | 1703 @$(COPY) $(SRCROOT)\PROBLEMS "$(INSTALL_DIR)\" |
2537 | 1704 @$(COPY) $(SRCROOT)\README "$(INSTALL_DIR)\" |
1705 @$(COPY) $(SRCROOT)\COPYING "$(INSTALL_DIR)\" | |
1706 @$(COPY) $(SRCROOT)\Installation "$(INSTALL_DIR)\" | |
1330 | 1707 @$(COPY) PlaceHolder "$(INSTALL_DIR)\lock\" |
1708 -$(DEL) "$(INSTALL_DIR)\lock\PlaceHolder" | |
2537 | 1709 # @$(COPY) $(BLDLIB_SRC)\*.exe "$(INSTALL_DIR)\lib-src\" |
1710 # @$(COPY) $(BLDLIB_SRC)\DOC "$(INSTALL_DIR)\lib-src\" | |
1711 # @$(COPY) $(CONFIG_VALUES) "$(INSTALL_DIR)\lib-src\" | |
1712 # @$(COPY) $(BLDSRC)\xemacs.exe "$(INSTALL_DIR)\bin\" | |
1330 | 1713 @$(COPY) $(BLDLIB_SRC)\*.exe "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)\" |
1714 @$(COPY) $(BLDLIB_SRC)\DOC "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)" | |
1715 @$(COPY) $(CONFIG_VALUES) "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)" | |
1716 @$(COPY) $(BLDSRC)\xemacs.exe "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)" | |
1657 | 1717 # APA: This is not good enough! It copies all .#* CVS files |
1718 # and the CVS directory too! | |
1330 | 1719 @$(COPYDIR) $(SRCROOT)\etc "$(INSTALL_DIR)\etc\" |
1720 @$(COPYDIR) $(SRCROOT)\info "$(INSTALL_DIR)\info\" | |
1721 @$(COPYDIR) $(SRCROOT)\lisp "$(INSTALL_DIR)\lisp\" | |
3281 | 1722 !if defined(PACKAGE_PREFIX) |
1330 | 1723 @echo Making skeleton package tree in $(PACKAGE_PREFIX) ... |
1724 @$(COPY) PlaceHolder "$(PACKAGE_PREFIX)\site-packages\" | |
1725 -$(DEL) "$(PACKAGE_PREFIX)\site-packages\PlaceHolder" | |
1726 @$(COPY) PlaceHolder "$(PACKAGE_PREFIX)\mule-packages\" | |
1727 -$(DEL) "$(PACKAGE_PREFIX)\mule-packages\PlaceHolder" | |
1728 @$(COPY) PlaceHolder "$(PACKAGE_PREFIX)\xemacs-packages\" | |
1729 -$(DEL) "$(PACKAGE_PREFIX)\xemacs-packages\PlaceHolder" | |
3281 | 1730 !endif |
1330 | 1731 -$(DEL) PlaceHolder |
1732 | |
1733 ########################### clean | |
1734 | |
1735 mostlyclean: | |
1736 -$(DEL) $(BLDROOT)\Installation | |
1737 -$(DEL) $(OUTDIR)\*.lib | |
1738 -$(DEL) $(OUTDIR)\*.obj | |
1739 -$(DEL) $(OUTDIR)\*.pdb | |
2951 | 1740 -$(DEL) $(OUTDIR)\*.idb |
1741 -$(DEL) $(OUTDIR)\*.ilk | |
1330 | 1742 -$(DEL) $(OUTDIR)\*.res |
1743 -$(DEL) $(OUTDIR)\*.sbr | |
1744 -$(DEL) $(BLDSRC)\*.exe | |
1745 -$(DEL) $(BLDSRC)\*.dmp | |
1746 -$(DEL) $(BLDSRC)\*.map | |
1747 -$(DEL) $(BLDSRC)\*.pdb | |
2951 | 1748 -$(DEL) $(BLDSRC)\*.idb |
1749 -$(DEL) $(BLDSRC)\*.ilk | |
1330 | 1750 -$(DEL) $(BLDSRC)\NEEDTODUMP |
1751 -$(DEL) $(BLDSRC)\dump-id.c | |
1752 -$(DEL) $(SRC)\*.bsc | |
1753 -$(DEL) $(BLDLIB_SRC)\*.exe | |
1754 -$(DEL) $(BLDLIB_SRC)\*.obj | |
1755 -$(DEL) $(BLDLIB_SRC)\*.pdb | |
2951 | 1756 -$(DEL) $(BLDLIB_SRC)\*.idb |
1757 -$(DEL) $(BLDLIB_SRC)\*.ilk | |
1330 | 1758 -$(DEL) $(BLDLIB_SRC)\*.res |
1759 | |
1760 versionclean: | |
1761 -$(DEL) $(BLDSRC)\xemacs.exe | |
1762 -$(DEL) $(BLDLIB_SRC)\DOC | |
1763 | |
1764 clean: mostlyclean versionclean | |
1765 -$(DEL) $(SRCROOT)\TAGS | |
1766 -$(DEL) $(LISP)\auto-autoloads.el* | |
1767 -$(DEL) $(LISP)\mule\auto-autoloads.el* | |
1768 -$(DEL) $(LISP)\custom-load.el* | |
1769 -$(DEL) $(LISP)\mule\custom-load.el* | |
1770 | |
1771 nicenclean: clean | |
1772 -$(DEL) $(NT)\*.bak | |
1773 -$(DEL) $(NT)\*.orig | |
1774 -$(DEL) $(NT)\*.rej | |
1775 -$(DEL) $(NT)\*.tmp | |
1776 -$(DEL) $(LIB_SRC)\*.bak | |
1777 -$(DEL) $(LIB_SRC)\*.orig | |
1778 -$(DEL) $(LIB_SRC)\*.rej | |
1779 -$(DEL) $(LIB_SRC)\*.tmp | |
1780 -$(DEL) $(SRC)\*.bak | |
1781 -$(DEL) $(SRC)\*.orig | |
1782 -$(DEL) $(SRC)\*.rej | |
1783 -$(DEL) $(SRC)\*.tmp | |
1784 -$(DEL) $(LISP)\*.bak | |
1785 -$(DEL) $(LISP)\*.orig | |
1786 -$(DEL) $(LISP)\*.rej | |
1787 -$(DEL) $(LISP)\*.tmp | |
1788 | |
1789 # Convenience target. | |
1790 # Reproducing the configuration is just a matter of copying, and if | |
1791 # we use the same directory for Cygwin builds these must go. We don't | |
1792 # want to use distclean. | |
1793 configclean: | |
1794 -$(DEL) $(SRC)\config.h | |
1795 -$(DEL) $(SRC)\paths.h | |
1796 -$(DEL) $(SRC)\Emacs.ad.h | |
1797 | |
1798 ## This is used in making a distribution. | |
1799 ## Do not use it on development directories! | |
1800 distclean: nicenclean configclean | |
1801 -$(DEL) $(BLDLIB_SRC)\$(CONFIG_VALUES) | |
1802 -$(DEL) $(INFODIR)\*.info* | |
1803 -$(DEL) $(LISP)\*.elc | |
1804 -$(DEL) $(LISP)\mule\*.elc | |
1805 -$(DEL) $(LISP)\term\*.elc | |
1806 | |
1807 realclean: distclean | |
1808 | |
1809 #not sure about those wildcards. DOS wildcards are stupid compared to Unix, | |
1810 #and could end up deleting *everything* instead of just backup files or | |
1811 #whatever. So just leave it at "realclean" | |
1812 extraclean: realclean | |
1813 # -$(DEL) *~ | |
1814 # -$(DEL) *.*~ | |
1815 # -$(DEL) #* | |
1816 # -$(DEL) m\*~ | |
1817 # -$(DEL) m\#* | |
1818 # -$(DEL) s\*~ | |
1819 # -$(DEL) s\#* | |
1820 | |
1821 ########################### Rebuild source dependency file | |
1822 | |
1823 depend: | |
1824 cd $(SRC) | |
1825 perl ./make-src-depend > depend.tmp | |
1826 perl -MFile::Compare -e "compare('depend.tmp', 'depend') && rename('depend.tmp', 'depend') or unlink('depend.tmp')" | |
1827 | |
1828 ########################### Redo Unicode-Encapsulation | |
1829 | |
1830 unicode-encapsulate: | |
1831 cd $(SRC) | |
1832 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 | |
1833 | |
1657 | 1834 makeinfo-test: $(DUMP_TARGET) |
1835 @<<makeinfo_test.bat | |
1836 @echo off | |
1837 @"$(MAKEINFO)" --version | |
1838 @if not errorlevel 1 goto test_done | |
1839 @$(XEMACS_BATCH_PACKAGES) -eval "(condition-case nil (require (quote texinfo)) (t (kill-emacs 1)))" | |
1840 @if not errorlevel 1 goto suggest_makeinfo | |
1841 @echo XEmacs 'info' cannot be built! | |
1842 @echo Install XEmacs package 'texinfo' (see README.packages). | |
1843 :suggest_makeinfo | |
1844 @echo Consider specifying path to 'makeinfo' in config.inc. | |
1845 @echo as this will build the info docs much faster than XEmacs using 'texinfo'. | |
1846 @if errorlevel 1 exit 1 | |
1847 :test_done | |
1848 <<NOKEEP |