annotate nt/xemacs.mak @ 1315:70921960b980

[xemacs-hg @ 2003-02-20 08:19:28 by ben] check in makefile fixes et al Makefile.in.in: Major surgery. Move all stuff related to building anything in the src/ directory into src/. Simplify the dependencies -- everything in src/ is dependent on the single entry `src' in MAKE_SUBDIRS. Remove weirdo targets like `all-elc[s]', dump-elc[s], etc. mule/mule-msw-init.el: Removed. Delete this file. mule/mule-win32-init.el: New file, with stuff from mule-msw-init.el -- not just for MS Windows native, boys and girls! bytecomp.el: Change code inserted to catch trying to load a Mule-only .elc file in a non-Mule XEmacs. Formerly you got the rather cryptic "The required feature `mule' cannot be provided". Now you get "Loading this file requires Mule support". finder.el: Remove dependency on which directory this function is invoked from. update-elc.el: Don't mess around with ../src/BYTECOMPILE_CHANGE. Now that Makefile.in.in and xemacs.mak are in sync, both of them use NEEDTODUMP and the other one isn't used. dumped-lisp.el: Rewrite in terms of `list' and `nconc' instead of assemble-list, so we can have arbitrary forms, not just `when-feature'. very-early-lisp.el: Nuke this file. finder-inf.el, packages.el, update-elc.el, update-elc-2.el, loadup.el, make-docfile.el: Eliminate references to very-early-lisp. msw-glyphs.el: Comment clarification. xemacs.mak: Add macros DO_TEMACS, DO_XEMACS, and a few others; this macro section is now completely in sync with src/Makefile.in.in. Copy check-features, load-shadows, and rebuilding finder-inf.el from src/Makefile.in.in. The main build/dump/recompile process is now synchronized with src/Makefile.in.in. Change `WARNING' to `NOTE' and `error checking' to `error-checking' TO avoid tripping faux warnings and errors in the VC++ IDE. Makefile.in.in: Major surgery. Move all stuff related to building anything in the src/ directory from top-level Makefile.in.in to here. Simplify the dependencies. Rearrange into logical subsections. Synchronize the main compile/dump/build-elcs section with xemacs.mak, which is already clean and in good working order. Remove weirdo targets like `all-elc[s]', dump-elc[s], etc. Add additional levels of macros \(e.g. DO_TEMACS, DO_XEMACS, TEMACS_BATCH, XEMACS_BATCH, XEMACS_BATCH_PACKAGES) to factor out duplicated stuff. Clean up handling of "HEAP_IN_DATA" (Cygwin) so it doesn't need to ignore the return value from dumping. Add .NO_PARALLEL since various aspects of building and dumping must be serialized but do not always have dependencies between them (this is impossible in some cases). Everything related to src/ now gets built in one pass in this directory by just running `make' (except the Makefiles themselves and config.h, paths.h, Emacs.ad.h, and other generated .h files). console.c: Update list of possibly valid console types. emacs.c: Rationalize the specifying and handling of the type of the first frame. This was originally prompted by a workspace in which I got GTK to compile under C++ and in the process fixed it so it could coexist with X in the same build -- hence, a combined TTY/X/MS-Windows/GTK build is now possible under Cygwin. (However, you can't simultaneously *display* more than one kind of device connection -- but getting that to work is not that difficult. Perhaps a project for a bored grad student. I (ben) would do it but don't see the use.) To make sense of this, I added new switches that can be used to specifically indicate the window system: -x [aka --use-x], -tty \[aka --use-tty], -msw [aka --use-ms-windows], -gtk [aka --use-gtk], and -gnome [aka --use-gnome, same as --use-gtk]. -nw continues as an alias for -tty. When none have been given, XEmacs checks for other parameters implying particular device types (-t -> tty, -display -> x [or should it have same treatment as DISPLAY below?]), and has ad-hoc logic afterwards: if env var DISPLAY is set, use x (or gtk? perhaps should check whether gnome is running), else MS Windows if it exsits, else TTY if it exists, else stream, and you must be running in batch mode. This also fixes an existing bug whereby compiling with no x, no mswin, no tty, when running non- interactively (e.g. to dump) I get "sorry, must have TTY support". emacs.c: Turn on Vstack_trace_on_error so that errors are debuggable even when occurring extremely early in reinitialization. emacs.c: Try to make sure that the user can see message output under Windows (i.e. it doesn't just disappear right away) regardless of when it occurs, e.g. in the middle of creating the first frame. emacs.c: Define new function `emacs-run-status', indicating whether XEmacs is noninteractive or interactive, whether raw, post-dump/pdump-load or run-temacs, whether we are dumping, whether pdump is in effect. event-stream.c: It's "mommas are fat", not "momas are fat". Fix other typo. event-stream.c: Conditionalize in_menu_callback check on HAVE_MENUBARS, because it won't exist on w/o menubar support, lisp.h: More hackery on RETURN_NOT_REACHED. Cygwin v3.2 DOES complain here if RETURN_NOT_REACHED() is blank, as it is for GCC 2.5+. So make it blank only for GCC 2.5 through 2.999999999999999. Declare Vstack_trace_on_error. profile.c: Need to include "profile.h" to fix warnings. sheap.c: Don't fatal() when need to rerun Make, just stderr_out() and exit(0). That way we can distinguish between a dumping failing expectedly (due to lack of stack space, triggering another dump) and unexpectedly, in which case, we want to stop building. (or go on, if -K is given) syntax.c, syntax.h: Use ints where they belong, and enum syntaxcode's where they belong, and fix warnings thereby. syntax.h: Fix crash caused by an edge condition in the syntax-cache macros. text.h: Spacing fixes. xmotif.h: New file, to get around shadowing warnings. EmacsManager.c, event-Xt.c, glyphs-x.c, gui-x.c, input-method-motif.c, xmmanagerp.h, xmprimitivep.h: Include xmotif.h. alloc.c: Conditionalize in_malloc on ERROR_CHECK_MALLOC. config.h.in, file-coding.h, fileio.c, getloadavg.c, select-x.c, signal.c, sysdep.c, sysfile.h, systime.h, text.c, unicode.c: Eliminate HAVE_WIN32_CODING_SYSTEMS, use WIN32_ANY instead. Replace defined (WIN32_NATIVE) || defined (CYGWIN) with WIN32_ANY. lisp.h: More futile attempts to walk and chew gum at the same time when dealing with subr's that don't return.
author ben
date Thu, 20 Feb 2003 08:19:44 +0000
parents f99d3d25df86
children 4542b72c005e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
795
68d4a70c1558 [xemacs-hg @ 2002-03-29 11:09:23 by jhar]
jhar
parents: 794
diff changeset
1 # Makefile for Microsoft NMAKE -*- Makefile -*-
68d4a70c1558 [xemacs-hg @ 2002-03-29 11:09:23 by jhar]
jhar
parents: 794
diff changeset
2 #
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
3 # Copyright (C) 1995 Board of Trustees, University of Illinois.
1303
f99d3d25df86 [xemacs-hg @ 2003-02-15 10:15:54 by ben]
ben
parents: 1203
diff changeset
4 # Copyright (C) 1995, 1996, 2000, 2001, 2002, 2003 Ben Wing.
795
68d4a70c1558 [xemacs-hg @ 2002-03-29 11:09:23 by jhar]
jhar
parents: 794
diff changeset
5 # Copyright (C) 1997, 1998, 2000 Jonathan Harris.
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
6 # Copyright (C) 1995 Sun Microsystems, Inc.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
7 # Copyright (C) 1998 Free Software Foundation, Inc.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
8 #
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
9 # This file is part of XEmacs.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
10 #
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
11 # XEmacs is free software; you can redistribute it and/or modify it
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
12 # under the terms of the GNU General Public License as published by the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
13 # Free Software Foundation; either version 2, or (at your option) any
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
14 # later version.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
15 #
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
16 # XEmacs is distributed in the hope that it will be useful, but WITHOUT
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
17 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
18 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
19 # for more details.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
20 #
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
21 # You should have received a copy of the GNU General Public License
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
22 # along with XEmacs; see the file COPYING. If not, write to
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
23 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
24 # Boston, MA 02111-1307, USA.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
25 #
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
26 # Synched up with: Not in FSF.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
27 #
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
28
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
29 default: all
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
30
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
31 # APA: Since there seems to be no way to determine the directory where
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
32 # xemacs.mak is located (from within nmake) we just insist on the user
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
33 # to invoke nmake in the directory where xemacs.mak is.
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
34 !if !exist("$(MAKEDIR)\xemacs.mak")
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
35 !error Please run nmake from the directory of this makefile (xemacs\nt).
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
36 !endif
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
37
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
38 XEMACS=$(MAKEDIR)\..
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
39 LISP=$(XEMACS)\lisp
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
40 LIB_SRC=$(XEMACS)\lib-src
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
41 MODULES=$(XEMACS)\modules
795
68d4a70c1558 [xemacs-hg @ 2002-03-29 11:09:23 by jhar]
jhar
parents: 794
diff changeset
42 NT=$(MAKEDIR)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
43 OUTDIR=$(NT)\obj
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
44 SRC=$(XEMACS)\src
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
45 LWLIB_SRCDIR=$(XEMACS)\lwlib
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
46 MAKEDIRSTRING=$(MAKEDIR:\=\\)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
47 XEMACSDIRSTRING=$(MAKEDIRSTRING:\\nt=)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
48
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
49
637
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
50 # Common operations
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
51
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
52 # Note that some versions of some commands are deficient.
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
53
637
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
54 # Define the 'del' command to use
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
55 # WinME's DEL command can only handle one argument and only has the /P flag.
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
56 # So only delete one glob at a time. Override flags in config.inc.
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
57 DEL=del
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
58
1001
cba22ad5bbfd [xemacs-hg @ 2002-09-13 20:35:10 by adrian]
adrian
parents: 942
diff changeset
59 # Tell COPY, MOVE, and XCOPY to suppress confirmation for overwriting
cba22ad5bbfd [xemacs-hg @ 2002-09-13 20:35:10 by adrian]
adrian
parents: 942
diff changeset
60 # files.
cba22ad5bbfd [xemacs-hg @ 2002-09-13 20:35:10 by adrian]
adrian
parents: 942
diff changeset
61 # set COPYCMD=/y
cba22ad5bbfd [xemacs-hg @ 2002-09-13 20:35:10 by adrian]
adrian
parents: 942
diff changeset
62 # Define the 'copy' command to use.
669
5c696033aec4 [xemacs-hg @ 2001-09-28 15:31:01 by adrian]
adrian
parents: 637
diff changeset
63 # Use /r (instead of /y), which exists on Windows NT 4 and 5.
1001
cba22ad5bbfd [xemacs-hg @ 2002-09-13 20:35:10 by adrian]
adrian
parents: 942
diff changeset
64 COPY=xcopy /q /r
cba22ad5bbfd [xemacs-hg @ 2002-09-13 20:35:10 by adrian]
adrian
parents: 942
diff changeset
65 COPYDIR=xcopy /q /r /e
583
391cf801cb8d [xemacs-hg @ 2001-05-27 10:50:44 by nick]
nick
parents: 580
diff changeset
66
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
67 # Program name and version
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
68
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
69 !include "$(XEMACS)\version.sh"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
70
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
71 !include "config.inc"
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
72
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
73 !if !defined(INFODOCK)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
74 INFODOCK=0
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
75 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
76
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
77 !if $(INFODOCK)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
78 INFODOCK_VERSION_STRING=$(infodock_major_version).$(infodock_minor_version).$(infodock_build_version)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
79 PROGRAM_DEFINES=-DINFODOCK \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
80 -DPATH_VERSION=\"$(INFODOCK_VERSION_STRING)\" \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
81 -DPATH_PROGNAME=\"infodock\" \
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
82 -DEMACS_PROGNAME=\"infodock\" \
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
83 -DEMACS_VERSION=\"$(INFODOCK_VERSION_STRING)\" \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
84 -DINFODOCK_MAJOR_VERSION=$(infodock_major_version) \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
85 -DINFODOCK_MINOR_VERSION=$(infodock_minor_version) \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
86 -DINFODOCK_BUILD_VERSION=$(infodock_build_version)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
87 !else
496
98145293255c [xemacs-hg @ 2001-05-01 12:05:20 by adrian]
adrian
parents: 494
diff changeset
88 XEMACS_VERSION_STRING=$(emacs_major_version).$(emacs_minor_version)
98145293255c [xemacs-hg @ 2001-05-01 12:05:20 by adrian]
adrian
parents: 494
diff changeset
89 !if "$(emacs_beta_version)" != ""
488
1e7b510d04f6 [xemacs-hg @ 2001-04-28 21:04:49 by adrian]
adrian
parents: 462
diff changeset
90 !if "$(emacs_is_beta)" != ""
496
98145293255c [xemacs-hg @ 2001-05-01 12:05:20 by adrian]
adrian
parents: 494
diff changeset
91 XEMACS_VERSION_STRING=$(XEMACS_VERSION_STRING)-b$(emacs_beta_version)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
92 !else
496
98145293255c [xemacs-hg @ 2001-05-01 12:05:20 by adrian]
adrian
parents: 494
diff changeset
93 XEMACS_VERSION_STRING=$(XEMACS_VERSION_STRING).$(emacs_beta_version)
98145293255c [xemacs-hg @ 2001-05-01 12:05:20 by adrian]
adrian
parents: 494
diff changeset
94 !endif
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
95 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
96 PROGRAM_DEFINES= \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
97 -DPATH_VERSION=\"$(XEMACS_VERSION_STRING)\" \
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
98 -DPATH_PROGNAME=\"xemacs\" \
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
99 -DEMACS_VERSION=\"$(XEMACS_VERSION_STRING)\" \
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
100 -DEMACS_PROGNAME=\"xemacs\"
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
101 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
102
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
103 #
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
104 # Command line options defaults
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
105 #
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
106 !if !defined(INSTALL_DIR)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
107 ! if $(INFODOCK)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
108 INSTALL_DIR=c:\Program Files\Infodock\Infodock-$(INFODOCK_VERSION_STRING)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
109 ! else
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
110 INSTALL_DIR=c:\Program Files\XEmacs\XEmacs-$(XEMACS_VERSION_STRING)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
111 ! endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
112 !endif
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
113 !if !defined(MULE)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
114 MULE=0
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
115 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
116 !if !defined(PACKAGE_PATH)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
117 ! if !defined(PACKAGE_PREFIX)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
118 PACKAGE_PREFIX=c:\Program Files\XEmacs
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
119 ! endif
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
120 ! if $(MULE)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
121 PACKAGE_PATH=~\.xemacs;;$(PACKAGE_PREFIX)\site-packages;$(PACKAGE_PREFIX)\mule-packages;$(PACKAGE_PREFIX)\xemacs-packages
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
122 ! else
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
123 PACKAGE_PATH=~\.xemacs;;$(PACKAGE_PREFIX)\site-packages;$(PACKAGE_PREFIX)\xemacs-packages
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
124 ! endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
125 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
126 PATH_PACKAGEPATH="$(PACKAGE_PATH:\=\\)"
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
127 !if !defined(HAVE_MS_WINDOWS)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
128 HAVE_MS_WINDOWS=1
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
129 !endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
130 !if !defined(HAVE_X_WINDOWS)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
131 HAVE_X_WINDOWS=0
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
132 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
133 !if !defined(HAVE_XPM)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
134 HAVE_XPM=0
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
135 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
136 !if !defined(HAVE_PNG)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
137 HAVE_PNG=0
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
138 !endif
632
406bf4f67ac1 [xemacs-hg @ 2001-07-19 07:19:58 by stephent]
stephent
parents: 587
diff changeset
139 !if !defined(HAVE_ZLIB)
406bf4f67ac1 [xemacs-hg @ 2001-07-19 07:19:58 by stephent]
stephent
parents: 587
diff changeset
140 HAVE_ZLIB=$(HAVE_PNG)
406bf4f67ac1 [xemacs-hg @ 2001-07-19 07:19:58 by stephent]
stephent
parents: 587
diff changeset
141 !endif
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
142 !if !defined(HAVE_TIFF)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
143 HAVE_TIFF=0
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
144 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
145 !if !defined(HAVE_JPEG)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
146 HAVE_JPEG=0
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
147 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
148 !if !defined(HAVE_XFACE)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
149 HAVE_XFACE=0
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
150 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
151 !if !defined(HAVE_GIF)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
152 HAVE_GIF=1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
153 !endif
488
1e7b510d04f6 [xemacs-hg @ 2001-04-28 21:04:49 by adrian]
adrian
parents: 462
diff changeset
154 !if !defined(HAVE_GTK)
1e7b510d04f6 [xemacs-hg @ 2001-04-28 21:04:49 by adrian]
adrian
parents: 462
diff changeset
155 HAVE_GTK=0
1e7b510d04f6 [xemacs-hg @ 2001-04-28 21:04:49 by adrian]
adrian
parents: 462
diff changeset
156 !endif
827
28426972f654 [xemacs-hg @ 2002-05-06 14:14:33 by jhar]
jhar
parents: 826
diff changeset
157 !if !defined(HAVE_MENUBARS)
28426972f654 [xemacs-hg @ 2002-05-06 14:14:33 by jhar]
jhar
parents: 826
diff changeset
158 HAVE_MENUBARS=1
28426972f654 [xemacs-hg @ 2002-05-06 14:14:33 by jhar]
jhar
parents: 826
diff changeset
159 !endif
28426972f654 [xemacs-hg @ 2002-05-06 14:14:33 by jhar]
jhar
parents: 826
diff changeset
160 !if !defined(HAVE_SCROLLBARS)
28426972f654 [xemacs-hg @ 2002-05-06 14:14:33 by jhar]
jhar
parents: 826
diff changeset
161 HAVE_SCROLLBARS=1
28426972f654 [xemacs-hg @ 2002-05-06 14:14:33 by jhar]
jhar
parents: 826
diff changeset
162 !endif
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
163 !if !defined(HAVE_TOOLBARS)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
164 HAVE_TOOLBARS=$(HAVE_XPM)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
165 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
166 !if !defined(HAVE_DIALOGS)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
167 HAVE_DIALOGS=1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
168 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
169 !if !defined(HAVE_NATIVE_SOUND)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
170 HAVE_NATIVE_SOUND=1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
171 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
172 !if !defined(HAVE_WIDGETS)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
173 HAVE_WIDGETS=1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
174 !endif
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
175 !if !defined(OPTIMIZED_BUILD)
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
176 OPTIMIZED_BUILD=1
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
177 !endif
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
178 !if !defined(USE_FASTCALL)
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
179 # #### Change to 1 when I check in the ws with support for fastcall
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
180 USE_FASTCALL=0
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
181 !endif
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
182 !if !defined(PROFILE_SUPPORT)
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
183 PROFILE_SUPPORT=0
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
184 !endif
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
185 !if !defined(DEBUG_XEMACS)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
186 DEBUG_XEMACS=0
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
187 !endif
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
188 !if !defined(HAVE_VC6)
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
189 HAVE_VC6=1
834
9c4fcc216a5f [xemacs-hg @ 2002-05-10 06:29:24 by adrian]
adrian
parents: 827
diff changeset
190 !endif
1203
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
191
800
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 795
diff changeset
192 !if !defined(ERROR_CHECK_ALL)
1203
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
193 !if "$(emacs_is_beta)" != ""
800
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 795
diff changeset
194 ERROR_CHECK_ALL=1
1203
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
195 !else
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
196 ERROR_CHECK_ALL=0
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
197 !endif
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
198 !endif
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
199
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
200 !if !defined(CPLUSPLUS_COMPILE)
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
201 !if $(ERROR_CHECK_ALL)
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
202 CPLUSPLUS_COMPILE=1
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
203 !else
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
204 CPLUSPLUS_COMPILE=0
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
205 !endif
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
206 !endif
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
207
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
208 !if !defined(USE_KKCC)
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
209 USE_KKCC=0
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
210 !endif
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
211 !if !defined(USE_UNION_TYPE)
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
212 USE_UNION_TYPE=0
800
a5954632b187 [xemacs-hg @ 2002-03-31 08:27:14 by ben]
ben
parents: 795
diff changeset
213 !endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
214 !if !defined(QUICK_BUILD)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
215 QUICK_BUILD=0
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
216 !endif
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
217 !if !defined(VERBOSECC)
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
218 VERBOSECC=0
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
219 !endif
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
220 !if !defined(DEPEND)
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
221 DEPEND=0
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
222 !endif
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
223 !if !defined(USE_PORTABLE_DUMPER)
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
224 USE_PORTABLE_DUMPER=1
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
225 !endif
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 432
diff changeset
226 !if !defined(USE_MINITAR)
632
406bf4f67ac1 [xemacs-hg @ 2001-07-19 07:19:58 by stephent]
stephent
parents: 587
diff changeset
227 USE_MINITAR=$(HAVE_ZLIB)
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 432
diff changeset
228 !endif
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
229
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
230 # A little bit of adhockery. Default to use system malloc and
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
231 # DLL version of the C runtime library when using portable
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
232 # dumping. These are the optimal settings.
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
233 !if !defined(USE_SYSTEM_MALLOC)
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
234 USE_SYSTEM_MALLOC=$(USE_PORTABLE_DUMPER)
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
235 !endif
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
236 !if !defined(USE_CRTDLL)
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
237 USE_CRTDLL=$(USE_PORTABLE_DUMPER)
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
238 !endif
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
239
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
240 #
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
241 # System configuration
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
242 #
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
243 !if !defined(OS)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
244 OS=Windows_95/98
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
245 EMACS_CONFIGURATION=i586-pc-win32
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
246 !else if "$(PROCESSOR_ARCHITECTURE)" == "x86"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
247 EMACS_CONFIGURATION=i586-pc-win32
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
248 !else if "$(PROCESSOR_ARCHITECTURE)" == "MIPS"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
249 EMACS_CONFIGURATION=mips-pc-win32
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
250 !else if "$(PROCESSOR_ARCHITECTURE)" == "ALPHA"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
251 EMACS_CONFIGURATION=alpha-pc-win32
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
252 !else if "$(PROCESSOR_ARCHITECTURE)" == "PPC"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
253 EMACS_CONFIGURATION=ppc-pc-win32
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
254 !else
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
255 ! error Unknown processor architecture type $(PROCESSOR_ARCHITECTURE)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
256 !endif
794
3604075fb2a3 [xemacs-hg @ 2002-03-29 07:05:27 by jhar]
jhar
parents: 780
diff changeset
257 STACK_TRACE_EYE_CATCHER=$(XEMACS_VERSION_STRING:.=_)
3604075fb2a3 [xemacs-hg @ 2002-03-29 07:05:27 by jhar]
jhar
parents: 780
diff changeset
258 STACK_TRACE_EYE_CATCHER=xemacs_$(STACK_TRACE_EYE_CATCHER:-=_)_$(EMACS_CONFIGURATION:-=_)
3604075fb2a3 [xemacs-hg @ 2002-03-29 07:05:27 by jhar]
jhar
parents: 780
diff changeset
259 PROGRAM_DEFINES=$(PROGRAM_DEFINES) -DSTACK_TRACE_EYE_CATCHER=$(STACK_TRACE_EYE_CATCHER)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
260
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
261 #
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
262 # Conf error checks
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
263 #
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
264 CONFIG_ERROR=0
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
265 !if $(INFODOCK) && !exist("..\..\Infodock.rules")
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
266 !message Cannot build InfoDock without InfoDock sources
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
267 CONFIG_ERROR=1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
268 !endif
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
269 !if !$(USE_PORTABLE_DUMPER) && $(USE_SYSTEM_MALLOC)
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
270 !message Cannot use system allocator when dumping old way, use portable dumper.
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
271 CONFIG_ERROR=1
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
272 !endif
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
273 !if !$(USE_PORTABLE_DUMPER) && $(USE_CRTDLL)
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
274 !message Cannot use C runtime DLL when dumping old way, use portable dumper.
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
275 CONFIG_ERROR=1
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
276 !endif
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
277 !if !$(USE_SYSTEM_MALLOC) && $(USE_CRTDLL)
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
278 !message GNU malloc currently cannot be used with CRT DLL.
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
279 !message [[[Developer note: If you want to fix it, read Q112297 first]]] ####
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
280 CONFIG_ERROR=1
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
281 !endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
282 !if !$(HAVE_MS_WINDOWS) && !$(HAVE_X_WINDOWS)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
283 !message Please specify at least one HAVE_MS_WINDOWS=1 and/or HAVE_X_WINDOWS=1
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
284 CONFIG_ERROR=1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
285 !endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
286 !if $(HAVE_X_WINDOWS) && !defined(X11_DIR)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
287 !message Please specify root directory for your X11 installation: X11_DIR=path
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
288 CONFIG_ERROR=1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
289 !endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
290 !if $(HAVE_X_WINDOWS) && defined(X11_DIR) && !exist("$(X11_DIR)\LIB\X11.LIB")
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
291 !message Specified X11 directory does not contain "$(X11_DIR)\LIB\X11.LIB"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
292 CONFIG_ERROR=1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
293 !endif
488
1e7b510d04f6 [xemacs-hg @ 2001-04-28 21:04:49 by adrian]
adrian
parents: 462
diff changeset
294 !if $(HAVE_MS_WINDOWS) && $(HAVE_GTK) && !defined(GTK_DIR)
1e7b510d04f6 [xemacs-hg @ 2001-04-28 21:04:49 by adrian]
adrian
parents: 462
diff changeset
295 !message Please specify root directory for your GTK installation: GTK_DIR=path
1e7b510d04f6 [xemacs-hg @ 2001-04-28 21:04:49 by adrian]
adrian
parents: 462
diff changeset
296 CONFIG_ERROR=1
1e7b510d04f6 [xemacs-hg @ 2001-04-28 21:04:49 by adrian]
adrian
parents: 462
diff changeset
297 !endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
298 !if $(HAVE_MS_WINDOWS) && $(HAVE_XPM) && !defined(XPM_DIR)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
299 !message Please specify root directory for your XPM installation: XPM_DIR=path
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
300 CONFIG_ERROR=1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
301 !endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
302 !if $(HAVE_MS_WINDOWS) && $(HAVE_XPM) && defined(XPM_DIR) && !exist("$(XPM_DIR)\lib\Xpm.lib")
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
303 !message Specified XPM directory does not contain "$(XPM_DIR)\lib\Xpm.lib"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
304 CONFIG_ERROR=1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
305 !endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
306 !if $(HAVE_MS_WINDOWS) && $(HAVE_PNG) && !defined(PNG_DIR)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
307 !message Please specify root directory for your PNG installation: PNG_DIR=path
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
308 CONFIG_ERROR=1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
309 !endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
310 !if $(HAVE_MS_WINDOWS) && $(HAVE_PNG) && defined(PNG_DIR) && !exist("$(PNG_DIR)\libpng.lib")
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
311 !message Specified PNG directory does not contain "$(PNG_DIR)\libpng.lib"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
312 CONFIG_ERROR=1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
313 !endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
314 !if $(HAVE_MS_WINDOWS) && $(HAVE_PNG) && !defined(ZLIB_DIR)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
315 !message Please specify root directory for your ZLIB installation: ZLIB_DIR=path
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
316 CONFIG_ERROR=1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
317 !endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
318 !if $(HAVE_MS_WINDOWS) && $(HAVE_PNG) && defined(ZLIB_DIR) && !exist("$(ZLIB_DIR)\zlib.lib")
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
319 !message Specified ZLIB directory does not contain "$(ZLIB_DIR)\zlib.lib"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
320 CONFIG_ERROR=1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
321 !endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
322 !if $(HAVE_MS_WINDOWS) && $(HAVE_TIFF) && !defined(TIFF_DIR)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
323 !message Please specify root directory for your TIFF installation: TIFF_DIR=path
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
324 CONFIG_ERROR=1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
325 !endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
326 !if $(HAVE_MS_WINDOWS) && $(HAVE_TIFF) && !exist("$(TIFF_DIR)\libtiff\libtiff.lib")
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
327 !message Specified TIFF directory does not contain "$(TIFF_DIR)\libtiff\libtiff.lib"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
328 CONFIG_ERROR=1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
329 !endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
330 !if $(HAVE_MS_WINDOWS) && $(HAVE_JPEG) && !defined(JPEG_DIR)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
331 !message Please specify root directory for your JPEG installation: JPEG_DIR=path
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
332 CONFIG_ERROR=1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
333 !endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
334 !if $(HAVE_MS_WINDOWS) && $(HAVE_JPEG) && !exist("$(JPEG_DIR)\libjpeg.lib")
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
335 !message Specified JPEG directory does not contain "$(JPEG_DIR)\libjpeg.lib"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
336 CONFIG_ERROR=1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
337 !endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
338 !if $(HAVE_MS_WINDOWS) && $(HAVE_XFACE) && !defined(COMPFACE_DIR)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
339 !message Please specify root directory for your COMPFACE installation: COMPFACE_DIR=path
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
340 CONFIG_ERROR=1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
341 !endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
342 !if $(HAVE_MS_WINDOWS) && $(HAVE_XFACE) && !exist("$(COMPFACE_DIR)\libcompface.lib")
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
343 !message Specified COMPFACE directory does not contain "$(COMPFACE_DIR)\libcompface.lib"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
344 CONFIG_ERROR=1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
345 !endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
346 !if $(HAVE_MS_WINDOWS) && $(HAVE_TOOLBARS) && !$(HAVE_XPM)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
347 !message Toolbars require XPM support
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
348 CONFIG_ERROR=1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
349 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
350 !if $(CONFIG_ERROR)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
351 !error Configuration error(s) found
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
352 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
353
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
354 #
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
355 # Whether to use dependency information generated by make-src-depend
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
356 #
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
357 !if $(DEPEND) && exist("$(SRC)\depend")
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
358 ! if [if not exist $(OUTDIR)\nul mkdir "$(OUTDIR)"]
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
359 ! endif
795
68d4a70c1558 [xemacs-hg @ 2002-03-29 11:09:23 by jhar]
jhar
parents: 794
diff changeset
360 # This perl script used to be inline but that caused too many quoting problems
68d4a70c1558 [xemacs-hg @ 2002-03-29 11:09:23 by jhar]
jhar
parents: 794
diff changeset
361 ! if [perl .\make-nt-depend -s=$(SRC) -c=$(NT) -o=$(OUTDIR) < $(SRC)\depend > $(OUTDIR)\depend.tmp]
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
362 ! endif
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
363 ! include "$(OUTDIR)\depend.tmp"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
364 !else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
365 ! if [echo WARNING: Compiling without dependency information.]
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
366 ! endif
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
367 !endif
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
368
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
369 #
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
370 # Compiler command echo control. Define VERBOSECC=1 to get verbose compilation.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
371 #
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
372 !if $(VERBOSECC)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
373 CCV=$(CC)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
374 !else
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
375 CCV=@$(CC)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
376 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
377
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
378 !if $(DEBUG_XEMACS)
814
a634e3b7acc8 [xemacs-hg @ 2002-04-14 12:41:59 by ben]
ben
parents: 812
diff changeset
379
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
380 # ---- Debugging support ----
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
381 ! if $(HAVE_VC6)
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
382 # support edit-and-continue
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
383 DEBUG_FLAGS_COMPILE=-ZI
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
384 ! else
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
385 DEBUG_FLAGS_COMPILE=-Zi
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
386 ! endif
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
387 DEBUG_FLAGS_LINK=-debug:full
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
388 DEBUG_DEFINES=-DDEBUG_XEMACS -D_DEBUG
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
389 #BROWSERFLAGS=-Fr -Fd$(OUTDIR)\temacs.pdb
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
390 BROWSERFLAGS=-Fr$*.sbr -Fd$(OUTDIR)\temacs.pdb
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
391
814
a634e3b7acc8 [xemacs-hg @ 2002-04-14 12:41:59 by ben]
ben
parents: 812
diff changeset
392 !else
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
393
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
394 # ---- No debugging support ----
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
395 DEBUG_FLAGS_COMPILE=
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
396 DEBUG_FLAGS_LINK=-incremental:no
882
f503f1607e8b [xemacs-hg @ 2002-06-25 21:20:47 by adrian]
adrian
parents: 872
diff changeset
397 DEBUG_DEFINES=
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
398 BROWSERFLAGS=
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
399
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
400 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
401
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
402 !if $(USE_CRTDLL)
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
403 ! if $(DEBUG_XEMACS)
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
404 C_LIBFLAG=-MDd
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
405 LIBC_LIB=msvcrtd.lib
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
406 ! else
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
407 C_LIBFLAG=-MD
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
408 LIBC_LIB=msvcrt.lib
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
409 ! endif
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
410 !else
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
411 C_LIBFLAG=-ML
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
412 LIBC_LIB=libc.lib
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
413 !endif
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
414
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
415 !if $(OPTIMIZED_BUILD)
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
416 # -G5 means optimize for Pentium. (According to the code-optimization
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
417 # article, -GB is the same as -G5, and -G6, i.e. optimze for Pentium Pro,
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
418 # gains you little over -G5 for PPro's but causes big slowdowns for
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
419 # Pentiums.) -GF means put strings in read-only memory; -Gr means use
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
420 # fastcall convention. Another possible addition: -Ob2 -- allows inlining
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
421 # of any function, not just those declared inline. Potential code size
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
422 # increase, though.
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
423 #
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
424 # #### Note: fastcall doesn't actually seem to make any difference, at least
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
425 # not using the (admittedly unscientific) test of (hanoi 6). The
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
426 # optimization article claims 1-2% improvement in both speed and size.
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
427 OPTFLAGS_FASTCALL =-O2 -G5 -Gr -Ob2
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
428 OPTFLAGS_CDECL =-O2 -G5 -Ob2
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
429 !else
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
430 OPTFLAGS_FASTCALL =-Od
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
431 OPTFLAGS_CDECL =-Od
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
432 !endif
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
433
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
434 !if $(USE_FASTCALL)
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
435 OPTFLAGS = $(OPTFLAGS_FASTCALL)
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
436 !else
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
437 OPTFLAGS = $(OPTFLAGS_CDECL)
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
438 !endif
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
439
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
440 !if $(PROFILE_SUPPORT)
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
441 PROFILE_FLAGS=-profile
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
442 !else
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
443 PROFILE_FLAGS=
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
444 !endif
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
445
1203
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
446 !if $(CPLUSPLUS_COMPILE)
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
447 CPLUSPLUS_COMPILE_FLAGS=-TP
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
448 !else
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
449 CPLUSPLUS_COMPILE_FLAGS=
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
450 !endif
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
451
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
452 CFLAGS_NO_OPT=-nologo -W3 -DSTRICT $(DEBUG_FLAGS_COMPILE)
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
453
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
454 CFLAGS_NO_LIB=$(CFLAGS_NO_OPT) $(OPTFLAGS)
826
6728e641994e [xemacs-hg @ 2002-05-05 11:30:15 by ben]
ben
parents: 819
diff changeset
455 CFLAGS=$(CFLAGS_NO_LIB) $(C_LIBFLAG)
6728e641994e [xemacs-hg @ 2002-05-05 11:30:15 by ben]
ben
parents: 819
diff changeset
456
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
457 CFLAGS_CDECL_NO_LIB=$(CFLAGS_NO_OPT) $(OPTFLAGS_CDECL)
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
458 CFLAGS_CDECL=$(CFLAGS_CDECL_NO_LIB) $(C_LIBFLAG)
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
459
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
460 !if $(HAVE_X_WINDOWS)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
461 X_DEFINES=-DHAVE_X_WINDOWS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
462 X_INCLUDES=-I$(X11_DIR)\include
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
463 X_LIBS=-libpath:$(X11_DIR)\lib Xaw.lib Xmu.lib Xt.lib SM.lib ICE.lib Xext.lib X11.lib
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
464 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
465
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
466 !if $(HAVE_MS_WINDOWS)
827
28426972f654 [xemacs-hg @ 2002-05-06 14:14:33 by jhar]
jhar
parents: 826
diff changeset
467 MSW_DEFINES=-DHAVE_MS_WINDOWS
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
468 MSW_INCLUDES=
827
28426972f654 [xemacs-hg @ 2002-05-06 14:14:33 by jhar]
jhar
parents: 826
diff changeset
469 MSW_LIBS=comctl32.lib
28426972f654 [xemacs-hg @ 2002-05-06 14:14:33 by jhar]
jhar
parents: 826
diff changeset
470
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
471 !if $(HAVE_XPM)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
472 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_XPM -DFOR_MSW
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
473 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(XPM_DIR)" -I"$(XPM_DIR)\lib"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
474 MSW_LIBS=$(MSW_LIBS) "$(XPM_DIR)\lib\Xpm.lib"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
475 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
476 !if $(HAVE_GIF)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
477 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_GIF
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
478 MSW_GIF_OBJ=$(OUTDIR)\dgif_lib.obj $(OUTDIR)\gif_io.obj
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
479 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
480 !if $(HAVE_PNG)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
481 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_PNG
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
482 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(PNG_DIR)" -I"$(ZLIB_DIR)"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
483 MSW_LIBS=$(MSW_LIBS) "$(PNG_DIR)\libpng.lib" "$(ZLIB_DIR)\zlib.lib"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
484 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
485 !if $(HAVE_TIFF)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
486 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_TIFF
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
487 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(TIFF_DIR)\libtiff"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
488 MSW_LIBS=$(MSW_LIBS) "$(TIFF_DIR)\libtiff\libtiff.lib"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
489 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
490 !if $(HAVE_JPEG)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
491 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_JPEG
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
492 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(JPEG_DIR)"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
493 MSW_LIBS=$(MSW_LIBS) "$(JPEG_DIR)\libjpeg.lib"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
494 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
495 !if $(HAVE_XFACE)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
496 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_XFACE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
497 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(COMPFACE_DIR)"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
498 MSW_LIBS=$(MSW_LIBS) "$(COMPFACE_DIR)\libcompface.lib"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
499 !endif
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
500 !if $(HAVE_ZLIB)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
501 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_ZLIB
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
502 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(ZLIB_DIR)"
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
503 MSW_LIBS=$(MSW_LIBS) "$(ZLIB_DIR)\zlib.lib"
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
504 !endif
827
28426972f654 [xemacs-hg @ 2002-05-06 14:14:33 by jhar]
jhar
parents: 826
diff changeset
505 !if $(HAVE_MENUBARS)
28426972f654 [xemacs-hg @ 2002-05-06 14:14:33 by jhar]
jhar
parents: 826
diff changeset
506 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_MENUBARS
28426972f654 [xemacs-hg @ 2002-05-06 14:14:33 by jhar]
jhar
parents: 826
diff changeset
507 MSW_MENUBAR_OBJ=$(OUTDIR)\menubar.obj $(OUTDIR)\menubar-msw.obj
28426972f654 [xemacs-hg @ 2002-05-06 14:14:33 by jhar]
jhar
parents: 826
diff changeset
508 !endif
28426972f654 [xemacs-hg @ 2002-05-06 14:14:33 by jhar]
jhar
parents: 826
diff changeset
509 !if $(HAVE_SCROLLBARS)
28426972f654 [xemacs-hg @ 2002-05-06 14:14:33 by jhar]
jhar
parents: 826
diff changeset
510 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_SCROLLBARS
28426972f654 [xemacs-hg @ 2002-05-06 14:14:33 by jhar]
jhar
parents: 826
diff changeset
511 MSW_SCROLLBAR_OBJ=$(OUTDIR)\scrollbar.obj $(OUTDIR)\scrollbar-msw.obj
28426972f654 [xemacs-hg @ 2002-05-06 14:14:33 by jhar]
jhar
parents: 826
diff changeset
512 !endif
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
513 !if $(HAVE_TOOLBARS)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
514 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_TOOLBARS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
515 MSW_TOOLBAR_OBJ=$(OUTDIR)\toolbar.obj $(OUTDIR)\toolbar-msw.obj
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
516 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
517 !if $(HAVE_WIDGETS)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
518 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_WIDGETS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
519 !endif
637
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
520 !if $(HAVE_DIALOGS)
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
521 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_DIALOGS
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
522 MSW_DIALOG_OBJ=$(OUTDIR)\dialog.obj $(OUTDIR)\dialog-msw.obj
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
523 !endif
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
524 !if $(HAVE_NATIVE_SOUND)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
525 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_NATIVE_SOUND
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
526 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
527 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
528
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
529 !if $(MULE)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
530 MULE_DEFINES=-DMULE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
531 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
532
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
533 !if $(QUICK_BUILD)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
534 QUICK_DEFINES=-DQUICK_BUILD
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
535 !endif
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
536
814
a634e3b7acc8 [xemacs-hg @ 2002-04-14 12:41:59 by ben]
ben
parents: 812
diff changeset
537 !if $(ERROR_CHECK_ALL)
a634e3b7acc8 [xemacs-hg @ 2002-04-14 12:41:59 by ben]
ben
parents: 812
diff changeset
538 ERROR_CHECK_DEFINES=-DERROR_CHECK_ALL
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
539 !endif
814
a634e3b7acc8 [xemacs-hg @ 2002-04-14 12:41:59 by ben]
ben
parents: 812
diff changeset
540
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
541 !if $(USE_UNION_TYPE)
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
542 UNION_DEFINES=-DUSE_UNION_TYPE
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
543 !endif
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
544
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 432
diff changeset
545 !if $(USE_PORTABLE_DUMPER)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 432
diff changeset
546 DUMPER_DEFINES=-DPDUMP
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 432
diff changeset
547 !endif
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 432
diff changeset
548
1203
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
549 !if $(USE_KKCC)
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
550 KKCC_DEFINES=-DUSE_KKCC
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
551 !endif
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
552
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
553 !if $(USE_SYSTEM_MALLOC)
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
554 MALLOC_DEFINES=-DSYSTEM_MALLOC
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
555 !else
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
556 MALLOC_DEFINES=-DGNU_MALLOC
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
557 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
558
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
559 # Hard-coded paths
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
560
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
561 !if $(INFODOCK)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
562 PATH_PREFIX=../..
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
563 !else
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
564 PATH_PREFIX=..
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
565 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
566
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
567 PATH_DEFINES=-DPATH_PREFIX=\"$(PATH_PREFIX)\"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
568
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
569 # Generic variables
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
570
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
571 INCLUDES=$(X_INCLUDES) $(MSW_INCLUDES) -I$(NT)\inc -I$(SRC) -I$(LWLIB_SRCDIR)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
572
814
a634e3b7acc8 [xemacs-hg @ 2002-04-14 12:41:59 by ben]
ben
parents: 812
diff changeset
573 DEFINES=$(X_DEFINES) $(MSW_DEFINES) $(MULE_DEFINES) $(UNION_DEFINES) \
1203
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
574 $(DUMPER_DEFINES) $(KKCC_DEFINES) $(MALLOC_DEFINES) \
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
575 $(QUICK_DEFINES) $(ERROR_CHECK_DEFINES) \
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
576 -DWIN32_LEAN_AND_MEAN -DWIN32_NATIVE -Demacs \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
577 -DHAVE_CONFIG_H $(PROGRAM_DEFINES) $(PATH_DEFINES)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
578
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
579 #------------------------------------------------------------------------------
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
580
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
581 $(OUTDIR)\nul:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
582 -@mkdir $(OUTDIR)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
583
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
584 XEMACS_INCLUDES=\
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
585 $(SRC)\config.h \
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
586 $(SRC)\Emacs.ad.h \
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
587 $(SRC)\paths.h
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
588
632
406bf4f67ac1 [xemacs-hg @ 2001-07-19 07:19:58 by stephent]
stephent
parents: 587
diff changeset
589 # #### Copying is cheap, we should just force these
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
590 $(SRC)\config.h: $(SRC)\config.h.in
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
591 # #### ms must have hired monkeys to design their shell commands. if
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
592 # #### you use xcopy to copy a file from one name to another, it
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
593 # #### PROMPTS you to see if you meant the second as a directory! and
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
594 # #### no switch to mean "no of course, you idiots, it's a file!"
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
595 @copy $(SRC)\config.h.in $(SRC)\config.h
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
596
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
597 $(SRC)\Emacs.ad.h: Emacs.ad.h
1001
cba22ad5bbfd [xemacs-hg @ 2002-09-13 20:35:10 by adrian]
adrian
parents: 942
diff changeset
598 set COPYCMD=/y
583
391cf801cb8d [xemacs-hg @ 2001-05-27 10:50:44 by nick]
nick
parents: 580
diff changeset
599 @$(COPY) Emacs.ad.h $(SRC)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
600
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
601 $(SRC)\paths.h: paths.h
1001
cba22ad5bbfd [xemacs-hg @ 2002-09-13 20:35:10 by adrian]
adrian
parents: 942
diff changeset
602 set COPYCMD=/y
583
391cf801cb8d [xemacs-hg @ 2001-05-27 10:50:44 by nick]
nick
parents: 580
diff changeset
603 @$(COPY) paths.h $(SRC)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
604
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
605 #------------------------------------------------------------------------------
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
606
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
607 # lib-src programs
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
608
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
609 LIB_SRC_DEFINES = -DHAVE_CONFIG_H -DWIN32_NATIVE
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
610
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
611 #
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
612 # Creating config.values to be used by config.el
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
613 #
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
614 CONFIG_VALUES = $(LIB_SRC)\config.values
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
615 !if [echo Creating $(CONFIG_VALUES) && echo ;;; Do not edit this file!>$(CONFIG_VALUES)]
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
616 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
617 # MAKEDIR has to be made into a string.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
618 #!if [echo blddir>>$(CONFIG_VALUES) && echo $(ESC)"$(MAKEDIR:\=\\)\\..$(ESC)">>$(CONFIG_VALUES)]
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
619 !if [echo blddir>>$(CONFIG_VALUES) && echo "$(MAKEDIR:\=\\)\\..">>$(CONFIG_VALUES)]
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
620 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
621 !if [echo CC>>$(CONFIG_VALUES) && echo "$(CC:\=\\)">>$(CONFIG_VALUES)]
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
622 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
623 !if [echo CFLAGS>>$(CONFIG_VALUES) && echo "$(CFLAGS:\=\\)">>$(CONFIG_VALUES)]
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
624 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
625 !if [echo CPP>>$(CONFIG_VALUES) && echo "$(CPP:\=\\)">>$(CONFIG_VALUES)]
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
626 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
627 !if [echo CPPFLAGS>>$(CONFIG_VALUES) && echo "$(CPPFLAGS:\=\\)">>$(CONFIG_VALUES)]
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
628 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
629 !if [echo LISPDIR>>$(CONFIG_VALUES) && echo "$(MAKEDIR:\=\\)\\$(LISP:\=\\)">>$(CONFIG_VALUES)]
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
630 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
631 # PATH_PACKAGEPATH is already a quoted string.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
632 !if [echo PACKAGE_PATH>>$(CONFIG_VALUES) && echo $(PATH_PACKAGEPATH)>>$(CONFIG_VALUES)]
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
633 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
634
839
182d9d1c71a5 [xemacs-hg @ 2002-05-14 10:57:37 by ben]
ben
parents: 834
diff changeset
635
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
636 LINK_DEPENDENCY_ARGS = -Fe$@ -Fd$* $** -link $(DEBUG_FLAGS_LINK)
839
182d9d1c71a5 [xemacs-hg @ 2002-05-14 10:57:37 by ben]
ben
parents: 834
diff changeset
637 LINK_STANDARD_LIBRARY_ARGS = setargv.obj user32.lib wsock32.lib
182d9d1c71a5 [xemacs-hg @ 2002-05-14 10:57:37 by ben]
ben
parents: 834
diff changeset
638
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
639 # Inferred rule
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
640 {$(LIB_SRC)}.c{$(LIB_SRC)}.exe :
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
641 cd $(LIB_SRC)
839
182d9d1c71a5 [xemacs-hg @ 2002-05-14 10:57:37 by ben]
ben
parents: 834
diff changeset
642 $(CCV) -I$(LIB_SRC) -I$(SRC) $(LIB_SRC_DEFINES) $(CFLAGS) $(LINK_DEPENDENCY_ARGS) $(LINK_STANDARD_LIBRARY_ARGS)
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
643 cd $(NT)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
644
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
645 # Individual dependencies
812
f846c2ef930d [xemacs-hg @ 2002-04-13 20:31:27 by jhar]
jhar
parents: 800
diff changeset
646 ETAGS_DEPS = $(LIB_SRC)/getopt.c $(LIB_SRC)/getopt1.c $(SRC)/regex.c
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
647 $(LIB_SRC)/etags.exe : $(LIB_SRC)/etags.c $(ETAGS_DEPS)
839
182d9d1c71a5 [xemacs-hg @ 2002-05-14 10:57:37 by ben]
ben
parents: 834
diff changeset
648 cd $(LIB_SRC)
182d9d1c71a5 [xemacs-hg @ 2002-05-14 10:57:37 by ben]
ben
parents: 834
diff changeset
649 $(CCV) -I$(LIB_SRC) -I$(SRC) $(LIB_SRC_DEFINES) $(CFLAGS) $(LINK_DEPENDENCY_ARGS) -stack:0x800000 $(LINK_STANDARD_LIBRARY_ARGS)
182d9d1c71a5 [xemacs-hg @ 2002-05-14 10:57:37 by ben]
ben
parents: 834
diff changeset
650 cd $(NT)
182d9d1c71a5 [xemacs-hg @ 2002-05-14 10:57:37 by ben]
ben
parents: 834
diff changeset
651
827
28426972f654 [xemacs-hg @ 2002-05-06 14:14:33 by jhar]
jhar
parents: 826
diff changeset
652 $(LIB_SRC)/movemail.exe : $(LIB_SRC)/movemail.c $(LIB_SRC)/pop.c $(ETAGS_DEPS)
819
6504113e7c2d [xemacs-hg @ 2002-04-25 18:03:23 by andyp]
andyp
parents: 815
diff changeset
653
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
654 # Minitar uses zlib so just use cdecl to simplify things
812
f846c2ef930d [xemacs-hg @ 2002-04-13 20:31:27 by jhar]
jhar
parents: 800
diff changeset
655 $(LIB_SRC)/minitar.exe : $(NT)/minitar.c
827
28426972f654 [xemacs-hg @ 2002-05-06 14:14:33 by jhar]
jhar
parents: 826
diff changeset
656 cd $(LIB_SRC)
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
657 $(CCV) -I"$(ZLIB_DIR)" $(LIB_SRC_DEFINES) $(CFLAGS_CDECL_NO_LIB) $(LINK_DEPENDENCY_ARGS) "$(ZLIB_DIR)\zlib.lib"
827
28426972f654 [xemacs-hg @ 2002-05-06 14:14:33 by jhar]
jhar
parents: 826
diff changeset
658 cd $(NT)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
659
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
660 LIB_SRC_TOOLS = \
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
661 $(LIB_SRC)/etags.exe \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
662 $(LIB_SRC)/hexl.exe \
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
663 $(LIB_SRC)/i.exe \
819
6504113e7c2d [xemacs-hg @ 2002-04-25 18:03:23 by andyp]
andyp
parents: 815
diff changeset
664 $(LIB_SRC)/winclient.exe \
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
665 $(LIB_SRC)/make-docfile.exe \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
666 $(LIB_SRC)/mmencode.exe \
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
667 $(LIB_SRC)/movemail.exe \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
668 $(LIB_SRC)/sorted-doc.exe \
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
669 $(LIB_SRC)/wakeup.exe
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 432
diff changeset
670 !if $(USE_MINITAR)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 432
diff changeset
671 LIB_SRC_TOOLS = \
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 432
diff changeset
672 $(LIB_SRC_TOOLS) \
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 432
diff changeset
673 $(LIB_SRC)/minitar.exe
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 432
diff changeset
674 !endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
675 !if $(USE_PORTABLE_DUMPER)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
676 LIB_SRC_TOOLS = \
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
677 $(XEMACS_INCLUDES) \
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
678 $(LIB_SRC)/make-dump-id.exe \
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
679 $(LIB_SRC_TOOLS)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
680 !endif
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 432
diff changeset
681
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
682 #------------------------------------------------------------------------------
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
683
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
684 # LASTFILE Library
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
685
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
686 !if !$(USE_SYSTEM_MALLOC) || !$(USE_PORTABLE_DUMPER)
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
687
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
688 LASTFILE=$(OUTDIR)\lastfile.lib
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
689 LASTFILE_SRC=$(SRC)
1203
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
690 LASTFILE_FLAGS=$(CFLAGS) $(CPLUSPLUS_COMPILE_FLAGS) $(INCLUDES) -Fo$@ -Fd$* -c
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
691 LASTFILE_OBJS= \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
692 $(OUTDIR)\lastfile.obj
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
693
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
694 $(LASTFILE): $(XEMACS_INCLUDES) $(LASTFILE_OBJS)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
695 link.exe -lib -nologo -out:$@ $(LASTFILE_OBJS)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
696
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
697 $(OUTDIR)\lastfile.obj: $(LASTFILE_SRC)\lastfile.c
587
28e2f03164f1 [xemacs-hg @ 2001-05-29 08:03:09 by ben]
ben
parents: 583
diff changeset
698 $(CCV) $(LASTFILE_FLAGS) $(LASTFILE_SRC)\$(@B).c
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
699
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
700 !endif
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
701
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
702 #------------------------------------------------------------------------------
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
703
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
704 !if $(HAVE_X_WINDOWS)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
705
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
706 # LWLIB Library
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
707
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
708 LWLIB=$(OUTDIR)\lwlib.lib
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
709 LWLIB_FLAGS=$(CFLAGS) $(INCLUDES) $(DEFINES) \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
710 -DNEED_ATHENA -DNEED_LUCID \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
711 -D_WINDOWS -DMENUBARS_LUCID -DSCROLLBARS_LUCID -DDIALOGS_ATHENA \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
712 -Fo$@ -c
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
713 LWLIB_OBJS= \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
714 $(OUTDIR)\lwlib-utils.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
715 $(OUTDIR)\lwlib-Xaw.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
716 $(OUTDIR)\lwlib-Xlw.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
717 $(OUTDIR)\lwlib.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
718 $(OUTDIR)\xlwmenu.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
719 $(OUTDIR)\xlwscrollbar.obj
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
720
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
721 $(LWLIB): $(LWLIB_OBJS)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
722 link.exe -lib -nologo -out:$@ $(LWLIB_OBJS)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
723
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
724 $(OUTDIR)\lwlib-utils.obj: $(LWLIB_SRCDIR)\lwlib-utils.c
587
28e2f03164f1 [xemacs-hg @ 2001-05-29 08:03:09 by ben]
ben
parents: 583
diff changeset
725 $(CCV) $(LWLIB_FLAGS) $(LWLIB_SRCDIR)\$(@B).c
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
726
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
727 $(OUTDIR)\lwlib-Xaw.obj: $(LWLIB_SRCDIR)\lwlib-Xaw.c
587
28e2f03164f1 [xemacs-hg @ 2001-05-29 08:03:09 by ben]
ben
parents: 583
diff changeset
728 $(CCV) $(LWLIB_FLAGS) $(LWLIB_SRCDIR)\$(@B).c
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
729
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
730 $(OUTDIR)\lwlib-Xlw.obj: $(LWLIB_SRCDIR)\lwlib-Xlw.c
587
28e2f03164f1 [xemacs-hg @ 2001-05-29 08:03:09 by ben]
ben
parents: 583
diff changeset
731 $(CCV) $(LWLIB_FLAGS) $(LWLIB_SRCDIR)\$(@B).c
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
732
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
733 $(OUTDIR)\lwlib.obj: $(LWLIB_SRCDIR)\lwlib.c
587
28e2f03164f1 [xemacs-hg @ 2001-05-29 08:03:09 by ben]
ben
parents: 583
diff changeset
734 $(CCV) $(LWLIB_FLAGS) $(LWLIB_SRCDIR)\$(@B).c
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
735
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
736 $(OUTDIR)\xlwmenu.obj: $(LWLIB_SRCDIR)\xlwmenu.c
587
28e2f03164f1 [xemacs-hg @ 2001-05-29 08:03:09 by ben]
ben
parents: 583
diff changeset
737 $(CCV) $(LWLIB_FLAGS) $(LWLIB_SRCDIR)\$(@B).c
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
738
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
739 $(OUTDIR)\xlwscrollbar.obj: $(LWLIB_SRCDIR)\xlwscrollbar.c
587
28e2f03164f1 [xemacs-hg @ 2001-05-29 08:03:09 by ben]
ben
parents: 583
diff changeset
740 $(CCV) $(LWLIB_FLAGS) $(LWLIB_SRCDIR)\$(@B).c
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
741
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
742 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
743
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
744 #------------------------------------------------------------------------------
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
745
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
746 # TEMACS Executable
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
747
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
748 # This may not exist
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
749 !if "$(emacs_beta_version)" != ""
496
98145293255c [xemacs-hg @ 2001-05-01 12:05:20 by adrian]
adrian
parents: 494
diff changeset
750 !if "$(emacs_is_beta)" != ""
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
751 EMACS_BETA_VERSION=-DEMACS_BETA_VERSION=$(emacs_beta_version)
496
98145293255c [xemacs-hg @ 2001-05-01 12:05:20 by adrian]
adrian
parents: 494
diff changeset
752 !else
98145293255c [xemacs-hg @ 2001-05-01 12:05:20 by adrian]
adrian
parents: 494
diff changeset
753 EMACS_PATCH_LEVEL=-DEMACS_PATCH_LEVEL=$(emacs_beta_version)
98145293255c [xemacs-hg @ 2001-05-01 12:05:20 by adrian]
adrian
parents: 494
diff changeset
754 !endif
98145293255c [xemacs-hg @ 2001-05-01 12:05:20 by adrian]
adrian
parents: 494
diff changeset
755 !endif
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
756
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
757 !if !$(USE_PORTABLE_DUMPER)
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
758 TEMACS_ENTRYPOINT=-entry:_start
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
759 !else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
760 TEMACS_ENTRYPOINT=-entry:mainCRTStartup
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
761 !endif
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
762
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
763 TEMACS_DIR=$(SRC)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
764 TEMACS=$(TEMACS_DIR)\temacs.exe
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
765 TEMACS_BROWSE=$(TEMACS_DIR)\temacs.bsc
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
766 TEMACS_SRC=$(SRC)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
767 TEMACS_LIBS=$(LASTFILE) $(LWLIB) $(X_LIBS) $(MSW_LIBS) \
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
768 oldnames.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib \
528
ef4d2466a29c [xemacs-hg @ 2001-05-10 09:59:45 by ben]
ben
parents: 523
diff changeset
769 shell32.lib wsock32.lib netapi32.lib winmm.lib winspool.lib ole32.lib \
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
770 mpr.lib uuid.lib imm32.lib $(LIBC_LIB)
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
771 TEMACS_LFLAGS=-nologo $(LIBRARIES) $(DEBUG_FLAGS_LINK) -base:0x1000000\
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
772 -stack:0x800000 $(TEMACS_ENTRYPOINT) -subsystem:windows\
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
773 -pdb:$(TEMACS_DIR)\temacs.pdb -map:$(TEMACS_DIR)\temacs.map \
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
774 -heap:0x00100000 -nodefaultlib $(PROFILE_FLAGS) setargv.obj
1203
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
775 TEMACS_CPP_FLAGS_NO_CFLAGS=-c $(CPLUSPLUS_COMPILE_FLAGS) \
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
776 $(INCLUDES) $(DEFINES) $(DEBUG_DEFINES) \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
777 -DEMACS_MAJOR_VERSION=$(emacs_major_version) \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
778 -DEMACS_MINOR_VERSION=$(emacs_minor_version) \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
779 $(EMACS_BETA_VERSION) \
632
406bf4f67ac1 [xemacs-hg @ 2001-07-19 07:19:58 by stephent]
stephent
parents: 587
diff changeset
780 $(EMACS_PATCH_LEVEL) \
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
781 -DXEMACS_CODENAME=\"$(xemacs_codename:&=and)\" \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
782 -DEMACS_CONFIGURATION=\"$(EMACS_CONFIGURATION)\" \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
783 -DPATH_PACKAGEPATH=\"$(PATH_PACKAGEPATH)\"
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
784 TEMACS_CPP_FLAGS=$(CFLAGS) $(TEMACS_CPP_FLAGS_NO_CFLAGS)
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
785 TEMACS_CPP_CDECL_FLAGS=$(CFLAGS_CDECL) $(TEMACS_CPP_FLAGS_NO_CFLAGS)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
786
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
787 !if $(HAVE_X_WINDOWS)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
788 TEMACS_X_OBJS=\
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
789 $(OUTDIR)\balloon-x.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
790 $(OUTDIR)\balloon_help.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
791 $(OUTDIR)\console-x.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
792 $(OUTDIR)\device-x.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
793 $(OUTDIR)\dialog-x.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
794 $(OUTDIR)\EmacsFrame.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
795 $(OUTDIR)\EmacsManager.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
796 $(OUTDIR)\EmacsShell.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
797 $(OUTDIR)\TopLevelEmacsShell.obj\
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
798 $(OUTDIR)\TransientEmacsShell.obj\
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
799 $(OUTDIR)\event-Xt.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
800 $(OUTDIR)\frame-x.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
801 $(OUTDIR)\glyphs-x.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
802 $(OUTDIR)\gui-x.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
803 $(OUTDIR)\menubar-x.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
804 $(OUTDIR)\objects-x.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
805 $(OUTDIR)\redisplay-x.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
806 $(OUTDIR)\scrollbar-x.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
807 $(OUTDIR)\xgccache.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
808 $(OUTDIR)\xmu.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
809 $(OUTDIR)\select-x.obj
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
810 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
811
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
812 !if $(HAVE_MS_WINDOWS)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
813 TEMACS_MSW_OBJS=\
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
814 $(OUTDIR)\console-msw.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
815 $(OUTDIR)\device-msw.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
816 $(OUTDIR)\event-msw.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
817 $(OUTDIR)\frame-msw.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
818 $(OUTDIR)\glyphs-msw.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
819 $(OUTDIR)\gui-msw.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
820 $(OUTDIR)\objects-msw.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
821 $(OUTDIR)\redisplay-msw.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
822 $(OUTDIR)\select-msw.obj \
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
823 $(OUTDIR)\dired-msw.obj \
827
28426972f654 [xemacs-hg @ 2002-05-06 14:14:33 by jhar]
jhar
parents: 826
diff changeset
824 $(MSW_MENUBAR_OBJ) \
28426972f654 [xemacs-hg @ 2002-05-06 14:14:33 by jhar]
jhar
parents: 826
diff changeset
825 $(MSW_SCROLLBAR_OBJ) \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
826 $(MSW_TOOLBAR_OBJ) \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
827 $(MSW_DIALOG_OBJ) \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
828 $(MSW_GIF_OBJ)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
829 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
830
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
831 !if $(MULE)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
832 TEMACS_MULE_OBJS=\
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
833 $(OUTDIR)\mule-ccl.obj \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
834 $(OUTDIR)\mule-charset.obj \
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
835 $(OUTDIR)\mule-coding.obj
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
836
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
837 ! if $(HAVE_X_WINDOWS)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
838 TEMACS_MULE_OBJS=\
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
839 $(TEMACS_MULE_OBJS) $(OUTDIR)\input-method-xlib.obj
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
840 ! endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
841 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
842
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
843 !if $(DEBUG_XEMACS)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
844 TEMACS_DEBUG_OBJS=\
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
845 $(OUTDIR)\debug.obj \
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
846 $(OUTDIR)\tests.obj
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
847 !endif
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
848
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
849 !if !$(USE_SYSTEM_MALLOC)
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
850 TEMACS_ALLOC_OBJS=\
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
851 $(OUTDIR)\free-hook.obj \
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
852 $(OUTDIR)\gmalloc.obj \
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
853 $(OUTDIR)\ntheap.obj \
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
854 $(OUTDIR)\vm-limit.obj
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
855 !endif
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
856
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
857 !if !$(USE_PORTABLE_DUMPER)
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
858 TEMACS_DUMP_OBJS=\
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
859 $(OUTDIR)\unexnt.obj
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
860 !else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
861 TEMACS_DUMP_OBJS=\
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
862 $(OUTDIR)\dumper.obj
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
863 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
864
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
865 TEMACS_OBJS= \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
866 $(TEMACS_X_OBJS)\
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
867 $(TEMACS_MSW_OBJS)\
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
868 $(TEMACS_CODING_OBJS)\
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
869 $(TEMACS_MULE_OBJS)\
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
870 $(TEMACS_DEBUG_OBJS)\
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
871 $(TEMACS_ALLOC_OBJS)\
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
872 $(TEMACS_DUMP_OBJS)\
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
873 $(OUTDIR)\abbrev.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
874 $(OUTDIR)\alloc.obj \
851
e7ee5f8bde58 [xemacs-hg @ 2002-05-23 11:46:08 by ben]
ben
parents: 841
diff changeset
875 $(OUTDIR)\alloca.obj \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
876 $(OUTDIR)\blocktype.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
877 $(OUTDIR)\buffer.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
878 $(OUTDIR)\bytecode.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
879 $(OUTDIR)\callint.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
880 $(OUTDIR)\casefiddle.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
881 $(OUTDIR)\casetab.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
882 $(OUTDIR)\chartab.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
883 $(OUTDIR)\cmdloop.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
884 $(OUTDIR)\cmds.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
885 $(OUTDIR)\console-stream.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
886 $(OUTDIR)\console.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
887 $(OUTDIR)\data.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
888 $(OUTDIR)\device.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
889 $(OUTDIR)\dired.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
890 $(OUTDIR)\doc.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
891 $(OUTDIR)\doprnt.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
892 $(OUTDIR)\dragdrop.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
893 $(OUTDIR)\dynarr.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
894 $(OUTDIR)\editfns.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
895 $(OUTDIR)\elhash.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
896 $(OUTDIR)\emacs.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
897 $(OUTDIR)\eval.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
898 $(OUTDIR)\event-stream.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
899 $(OUTDIR)\events.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
900 $(OUTDIR)\extents.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
901 $(OUTDIR)\faces.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
902 $(OUTDIR)\file-coding.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
903 $(OUTDIR)\fileio.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
904 $(OUTDIR)\filemode.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
905 $(OUTDIR)\floatfns.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
906 $(OUTDIR)\fns.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
907 $(OUTDIR)\font-lock.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
908 $(OUTDIR)\frame.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
909 $(OUTDIR)\general.obj \
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
910 $(OUTDIR)\getloadavg.obj \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
911 $(OUTDIR)\glyphs.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
912 $(OUTDIR)\glyphs-eimage.obj \
587
28e2f03164f1 [xemacs-hg @ 2001-05-29 08:03:09 by ben]
ben
parents: 583
diff changeset
913 $(OUTDIR)\glyphs-shared.obj \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
914 $(OUTDIR)\glyphs-widget.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
915 $(OUTDIR)\gui.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
916 $(OUTDIR)\gutter.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
917 $(OUTDIR)\hash.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
918 $(OUTDIR)\indent.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
919 $(OUTDIR)\imgproc.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
920 $(OUTDIR)\insdel.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
921 $(OUTDIR)\intl.obj \
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
922 $(OUTDIR)\intl-win32.obj \
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
923 $(OUTDIR)\intl-encap-win32.obj \
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
924 $(OUTDIR)\intl-auto-encap-win32.obj \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
925 $(OUTDIR)\keymap.obj \
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
926 $(OUTDIR)\libinterface.obj \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
927 $(OUTDIR)\line-number.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
928 $(OUTDIR)\lread.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
929 $(OUTDIR)\lstream.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
930 $(OUTDIR)\macros.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
931 $(OUTDIR)\marker.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
932 $(OUTDIR)\md5.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
933 $(OUTDIR)\minibuf.obj \
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
934 # #### Leave the next one out when integrating my working ws
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
935 $(OUTDIR)\nt.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
936 $(OUTDIR)\ntplay.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
937 $(OUTDIR)\objects.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
938 $(OUTDIR)\opaque.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
939 $(OUTDIR)\print.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
940 $(OUTDIR)\process.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
941 $(OUTDIR)\process-nt.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
942 $(OUTDIR)\profile.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
943 $(OUTDIR)\rangetab.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
944 $(OUTDIR)\realpath.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
945 $(OUTDIR)\redisplay-output.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
946 $(OUTDIR)\redisplay.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
947 $(OUTDIR)\regex.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
948 $(OUTDIR)\search.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
949 $(OUTDIR)\select.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
950 $(OUTDIR)\signal.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
951 $(OUTDIR)\sound.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
952 $(OUTDIR)\specifier.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
953 $(OUTDIR)\strftime.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
954 $(OUTDIR)\symbols.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
955 $(OUTDIR)\syntax.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
956 $(OUTDIR)\sysdep.obj \
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
957 $(OUTDIR)\text.obj \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
958 $(OUTDIR)\tparam.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
959 $(OUTDIR)\undo.obj \
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
960 $(OUTDIR)\unicode.obj \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
961 $(OUTDIR)\widget.obj \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
962 $(OUTDIR)\window.obj \
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
963 $(OUTDIR)\win32.obj
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
964
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
965 # Rules
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
966
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
967 .SUFFIXES:
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
968 .SUFFIXES: .c .obj .texi .info
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
969
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
970 # nmake rule with batching:
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
971 #{$(TEMACS_SRC)}.c{$(OUTDIR)}.obj:
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
972 # echo $< >> $(OUTDIR)\listfile.tmp
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
973
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
974 {$(TEMACS_SRC)}.c{$(OUTDIR)}.obj:
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
975 $(CCV) $(TEMACS_CPP_FLAGS) $< -Fo$@ $(BROWSERFLAGS)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
976
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
977 # An explicit rule looks like this ($< works only in implicit rules):
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
978 # $(OUTDIR)\foo.obj: $(TEMACS_SRC)\foo.c
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
979 # $(CCV) $(TEMACS_CPP_FLAGS) $(TEMACS_SRC)\$(@B).c -Fo$@ $(BROWSERFLAGS)
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
980
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
981 $(OUTDIR)\emacs.obj: $(XEMACS)\version.sh
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
982
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
983 $(OUTDIR)\TopLevelEmacsShell.obj: $(TEMACS_SRC)\EmacsShell-sub.c
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
984 $(CCV) $(TEMACS_CPP_FLAGS) -DDEFINE_TOP_LEVEL_EMACS_SHELL $(TEMACS_SRC)\$(@B).c -Fo$@ $(BROWSERFLAGS)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
985
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
986 $(OUTDIR)\TransientEmacsShell.obj: $(TEMACS_SRC)\EmacsShell-sub.c
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
987 $(CCV) $(TEMACS_CPP_FLAGS) -DDEFINE_TRANSIENT_EMACS_SHELL $(TEMACS_SRC)\$(@B).c -Fo$@ $(BROWSERFLAGS)
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
988
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
989 $(OUTDIR)\libinterface.obj: $(TEMACS_SRC)\libinterface.c
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
990 $(CCV) $(TEMACS_CPP_CDECL_FLAGS) $(TEMACS_SRC)\$(@B).c -Fo$@ $(BROWSERFLAGS)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
991
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
992 #$(TEMACS_SRC)\Emacs.ad.h: $(XEMACS)\etc\Emacs.ad
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
993 # !"sed -f ad2c.sed < $(XEMACS)\etc\Emacs.ad > $(TEMACS_SRC)\Emacs.ad.h"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
994
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
995 #$(TEMACS_SRC)\paths.h: $(TEMACS_SRC)\paths.h.in
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
996 # !"cd $(TEMACS_SRC); cp paths.h.in paths.h"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
997
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
998 create-list-file:
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
999 @if exist $(OUTDIR)\listfile.tmp del $(OUTDIR)\listfile.tmp
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1000
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1001 compile-list-file:
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1002 cd $(OUTDIR)
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1003 @if exist listfile.tmp $(CC) $(TEMACS_CPP_FLAGS) @listfile.tmp $(BROWSERFLAGS)
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1004
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1005 $(TEMACS_BROWSE): $(TEMACS_OBJS)
795
68d4a70c1558 [xemacs-hg @ 2002-03-29 11:09:23 by jhar]
jhar
parents: 794
diff changeset
1006 @dir /b/s $(OUTDIR)\*.sbr > $(OUTDIR)\bscmake.tmp
68d4a70c1558 [xemacs-hg @ 2002-03-29 11:09:23 by jhar]
jhar
parents: 794
diff changeset
1007 bscmake -nologo -o$(TEMACS_BROWSE) @$(OUTDIR)\bscmake.tmp
68d4a70c1558 [xemacs-hg @ 2002-03-29 11:09:23 by jhar]
jhar
parents: 794
diff changeset
1008 -$(DEL) $(OUTDIR)\bscmake.tmp
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1009
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1010 # dump-id.c file that contains the dump id
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1011
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1012 $(OUTDIR)\dump-id.obj : $(SRC)\dump-id.c
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1013 cd $(OUTDIR)
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1014 $(CCV) $(TEMACS_CPP_FLAGS) $(TEMACS_SRC)\$(@B).c $(BROWSERFLAGS)
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1015
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1016 $(SRC)\dump-id.c : $(LIB_SRC)/make-dump-id.exe $(TEMACS_OBJS)
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1017 cd $(SRC)
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1018 $(LIB_SRC)\make-dump-id.exe
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1019 cd $(NT)
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1020
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1021 !if $(USE_PORTABLE_DUMPER)
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1022 TEMACS_DUMP_ID_OBJ = $(OUTDIR)\dump-id.obj
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1023 !else
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1024 TEMACS_DUMP_ID_OBJ =
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1025 !endif
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1026
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1027 !if $(DEBUG_XEMACS)
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1028 $(TEMACS): $(TEMACS_OBJS) $(OUTDIR)\temacs.res $(TEMACS_BROWSE) $(TEMACS_DUMP_ID_OBJ)
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1029 !else
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1030 $(TEMACS): $(TEMACS_OBJS) $(OUTDIR)\temacs.res $(TEMACS_DUMP_ID_OBJ)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1031 !endif
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
1032 !if $(USE_PORTABLE_DUMPER)
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1033 cd $(NT)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1034 link.exe @<<
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1035 $(TEMACS_LFLAGS) -out:$@ $(TEMACS_OBJS) $(TEMACS_LIBS) $(TEMACS_DUMP_ID_OBJ)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1036 <<
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1037 !else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1038 link.exe @<<
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1039 $(TEMACS_LFLAGS) -out:$@ $(TEMACS_OBJS) $(OUTDIR)\temacs.res $(TEMACS_LIBS)
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1040 <<
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1041 !endif
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1042
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1043 $(OUTDIR)\temacs.res: $(NT)\xemacs.rc
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1044 cd $(NT)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1045 rc -Fo$@ xemacs.rc
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1046
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1047
1303
f99d3d25df86 [xemacs-hg @ 2003-02-15 10:15:54 by ben]
ben
parents: 1203
diff changeset
1048 PROGNAME = $(TEMACS_DIR)\xemacs.exe
1315
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1049 DO_TEMACS = "$(LIB_SRC)\i" "$(TEMACS)"
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1050 DO_XEMACS = "$(LIB_SRC)\i" "$(PROGNAME)"
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1051
776
79940b592197 [xemacs-hg @ 2002-03-15 07:43:14 by ben]
ben
parents: 771
diff changeset
1052 BATCH = -no-packages -batch
79940b592197 [xemacs-hg @ 2002-03-15 07:43:14 by ben]
ben
parents: 771
diff changeset
1053 BATCH_PACKAGES = -vanilla -batch
1315
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1054 TEMACS_BATCH = $(DO_TEMACS) -nd $(BATCH)
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1055 XEMACS_BATCH = $(DO_XEMACS) $(BATCH)
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1056 XEMACS_BATCH_PACKAGES = $(DO_XEMACS) $(BATCH_PACKAGES)
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1057 temacs_loadup_args = -l $(LISP)/loadup.el
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1058 dump_temacs_args = $(temacs_loadup_args) dump
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1059 run_temacs_args = $(temacs_loadup_args) run-temacs
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1060 dump_temacs = $(TEMACS_BATCH) $(dump_temacs_args)
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1061
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1062 # Section handling automated tests starts here
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1063
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1064 ## We have automated tests!!
1315
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1065 testdir = ../tests/automated
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1066 batch_test_emacs = $(BATCH_PACKAGES) -l $(testdir)/test-harness.el -f batch-test-emacs $(testdir)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1067
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1068 # .PHONY: check check-temacs
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1069
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1070 check:
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1071 cd $(TEMACS_DIR)
1315
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1072 $(DO_XEMACS) $(batch_test_emacs)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1073
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1074 check-temacs:
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1075 cd $(TEMACS_DIR)
1315
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1076 $(TEMACS_BATCH) $(run_temacs_args) $(batch_test_emacs)
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1077
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1078 check-features: all
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1079 cd $(TEMACS_DIR)
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1080 $(XEMACS_BATCH) -l check-features.el
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1081
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1082 # Section handling automated tests ends here
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1083
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1084 # Section handling tags starts here
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1085
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1086 tagslisp=lisp
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1087
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1088 tags:
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1089 @echo If you don't have a copy of etags around, then do 'make lib-src' first.
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1090 @echo To make use of the tags file, put the following in your .emacs:
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1091 @echo (setq tag-table-alist
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1092 @echo '(("$(XEMACSDIRSTRING)\\" . "$(XEMACSDIRSTRING)\\")))
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1093 cd $(XEMACS)
637
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1094 -$(DEL) TAGS
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1095 set PATH=lib-src;%PATH%
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
1096 # we need to double ^, but only in one place, because (according to the
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
1097 # nmake manual), a ^ is used to quote certain special characters such as
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
1098 # backslash, but is treated literally within double quotes -- and notice
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
1099 # carefully the occurrences of double quotes in the first line below!
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1100 etags -a -r "/[ ]*DEF\(VAR\|INE\)_[A-Z_]+[ ]*([ ]*\"\([^^\"]+\)\"/\2/" src\*.c src\*.h lwlib\*.c lwlib\*.h lib-src\*.c lib-src\*.h
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
1101 etags -a -l none -r "/^(def\(var\|un\|alias\|const\|macro\|subst\|struct\|face\|group\|custom\|ine-\(function\|compiler-macro\|[a-z-]+alias\)\)[ ]+'?\([^ ]+\)/\3/" $(tagslisp)\*.el $(tagslisp)\mule\*.el
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1102
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1103 # Section handling tags ends here
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1104
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1105 # Section handling info starts here
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1106
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1107 !if !defined(MAKEINFO)
776
79940b592197 [xemacs-hg @ 2002-03-15 07:43:14 by ben]
ben
parents: 771
diff changeset
1108 MAKEINFO=$(XEMACS_BATCH_PACKAGES) -l texinfmt -f batch-texinfo-format
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1109 !endif
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1110
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1111 MANDIR = $(XEMACS)\man
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1112 INFODIR = $(XEMACS)\info
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1113 INFO_FILES= \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1114 $(INFODIR)\cl.info \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1115 $(INFODIR)\custom.info \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1116 $(INFODIR)\emodules.info \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1117 $(INFODIR)\external-widget.info \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1118 $(INFODIR)\info.info \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1119 $(INFODIR)\standards.info \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1120 $(INFODIR)\term.info \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1121 $(INFODIR)\termcap.info \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1122 $(INFODIR)\texinfo.info \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1123 $(INFODIR)\widget.info \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1124 $(INFODIR)\xemacs-faq.info \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1125 $(INFODIR)\xemacs.info \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1126 $(INFODIR)\lispref.info \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1127 $(INFODIR)\new-users-guide.info \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1128 $(INFODIR)\internals.info
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1129
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1130 {$(MANDIR)}.texi{$(INFODIR)}.info:
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1131 cd $(MANDIR)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1132 $(MAKEINFO) $**
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1133
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1134 XEMACS_SRCS = \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1135 $(MANDIR)\xemacs\abbrevs.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1136 $(MANDIR)\xemacs\basic.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1137 $(MANDIR)\xemacs\buffers.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1138 $(MANDIR)\xemacs\building.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1139 $(MANDIR)\xemacs\calendar.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1140 $(MANDIR)\xemacs\cmdargs.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1141 $(MANDIR)\xemacs\custom.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1142 $(MANDIR)\xemacs\display.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1143 $(MANDIR)\xemacs\entering.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1144 $(MANDIR)\xemacs\files.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1145 $(MANDIR)\xemacs\fixit.texi \
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1146 $(MANDIR)\xemacs\frame.texi \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1147 $(MANDIR)\xemacs\glossary.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1148 $(MANDIR)\xemacs\gnu.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1149 $(MANDIR)\xemacs\help.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1150 $(MANDIR)\xemacs\indent.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1151 $(MANDIR)\xemacs\keystrokes.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1152 $(MANDIR)\xemacs\killing.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1153 $(MANDIR)\xemacs\m-x.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1154 $(MANDIR)\xemacs\major.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1155 $(MANDIR)\xemacs\mark.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1156 $(MANDIR)\xemacs\menus.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1157 $(MANDIR)\xemacs\mini.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1158 $(MANDIR)\xemacs\misc.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1159 $(MANDIR)\xemacs\mouse.texi \
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1160 $(MANDIR)\xemacs\mule.texi \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1161 $(MANDIR)\xemacs\new.texi \
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1162 $(MANDIR)\xemacs\packages.texi \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1163 $(MANDIR)\xemacs\picture.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1164 $(MANDIR)\xemacs\programs.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1165 $(MANDIR)\xemacs\reading.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1166 $(MANDIR)\xemacs\regs.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1167 $(MANDIR)\xemacs\search.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1168 $(MANDIR)\xemacs\sending.texi \
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1169 $(MANDIR)\xemacs\startup.texi \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1170 $(MANDIR)\xemacs\text.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1171 $(MANDIR)\xemacs\trouble.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1172 $(MANDIR)\xemacs\undo.texi \
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1173 $(MANDIR)\xemacs\windows.texi \
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1174 $(MANDIR)\xemacs\xemacs.texi
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1175
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1176 LISPREF_SRCS = \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1177 $(MANDIR)\lispref\abbrevs.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1178 $(MANDIR)\lispref\annotations.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1179 $(MANDIR)\lispref\back.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1180 $(MANDIR)\lispref\backups.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1181 $(MANDIR)\lispref\buffers.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1182 $(MANDIR)\lispref\building.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1183 $(MANDIR)\lispref\commands.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1184 $(MANDIR)\lispref\compile.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1185 $(MANDIR)\lispref\consoles-devices.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1186 $(MANDIR)\lispref\control.texi \
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1187 $(MANDIR)\lispref\customize.texi \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1188 $(MANDIR)\lispref\databases.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1189 $(MANDIR)\lispref\debugging.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1190 $(MANDIR)\lispref\dialog.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1191 $(MANDIR)\lispref\display.texi \
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1192 $(MANDIR)\lispref\dragndrop.texi \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1193 $(MANDIR)\lispref\edebug-inc.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1194 $(MANDIR)\lispref\edebug.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1195 $(MANDIR)\lispref\errors.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1196 $(MANDIR)\lispref\eval.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1197 $(MANDIR)\lispref\extents.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1198 $(MANDIR)\lispref\faces.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1199 $(MANDIR)\lispref\files.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1200 $(MANDIR)\lispref\frames.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1201 $(MANDIR)\lispref\functions.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1202 $(MANDIR)\lispref\glyphs.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1203 $(MANDIR)\lispref\hash-tables.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1204 $(MANDIR)\lispref\help.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1205 $(MANDIR)\lispref\hooks.texi \
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1206 $(MANDIR)\lispref\index.texi \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1207 $(MANDIR)\lispref\internationalization.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1208 $(MANDIR)\lispref\intro.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1209 $(MANDIR)\lispref\keymaps.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1210 $(MANDIR)\lispref\ldap.texi \
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1211 $(MANDIR)\lispref\lispref.texi \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1212 $(MANDIR)\lispref\lists.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1213 $(MANDIR)\lispref\loading.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1214 $(MANDIR)\lispref\locals.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1215 $(MANDIR)\lispref\macros.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1216 $(MANDIR)\lispref\maps.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1217 $(MANDIR)\lispref\markers.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1218 $(MANDIR)\lispref\menus.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1219 $(MANDIR)\lispref\minibuf.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1220 $(MANDIR)\lispref\modes.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1221 $(MANDIR)\lispref\mouse.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1222 $(MANDIR)\lispref\mule.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1223 $(MANDIR)\lispref\numbers.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1224 $(MANDIR)\lispref\objects.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1225 $(MANDIR)\lispref\os.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1226 $(MANDIR)\lispref\positions.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1227 $(MANDIR)\lispref\processes.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1228 $(MANDIR)\lispref\range-tables.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1229 $(MANDIR)\lispref\scrollbars.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1230 $(MANDIR)\lispref\searching.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1231 $(MANDIR)\lispref\sequences.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1232 $(MANDIR)\lispref\specifiers.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1233 $(MANDIR)\lispref\streams.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1234 $(MANDIR)\lispref\strings.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1235 $(MANDIR)\lispref\symbols.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1236 $(MANDIR)\lispref\syntax.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1237 $(MANDIR)\lispref\text.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1238 $(MANDIR)\lispref\tips.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1239 $(MANDIR)\lispref\toolbar.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1240 $(MANDIR)\lispref\tooltalk.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1241 $(MANDIR)\lispref\variables.texi \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1242 $(MANDIR)\lispref\windows.texi \
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1243 $(MANDIR)\lispref\x-windows.texi
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1244
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1245 INTERNALS_SRCS = \
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1246 $(MANDIR)\internals\internals.texi \
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1247 $(MANDIR)\internals\index.texi
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1248
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1249 NEW_USERS_GUIDE_SRCS = \
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1250 $(MANDIR)\new-users-guide\custom1.texi \
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1251 $(MANDIR)\new-users-guide\custom2.texi \
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1252 $(MANDIR)\new-users-guide\edit.texi \
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1253 $(MANDIR)\new-users-guide\enter.texi \
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1254 $(MANDIR)\new-users-guide\files.texi \
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1255 $(MANDIR)\new-users-guide\help.texi \
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1256 $(MANDIR)\new-users-guide\modes.texi \
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1257 $(MANDIR)\new-users-guide\new-users-guide.texi \
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1258 $(MANDIR)\new-users-guide\region.texi \
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1259 $(MANDIR)\new-users-guide\search.texi \
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1260 $(MANDIR)\new-users-guide\xmenu.texi
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1261
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1262 $(INFODIR)\xemacs.info: $(XEMACS_SRCS)
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1263 cd $(MANDIR)\xemacs
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1264 $(MAKEINFO) xemacs.texi
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1265 cd ..
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1266
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1267
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1268 $(INFODIR)\lispref.info: $(LISPREF_SRCS)
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1269 cd $(MANDIR)\lispref
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1270 $(MAKEINFO) lispref.texi
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1271 cd ..
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1272
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1273 $(INFODIR)\internals.info: $(INTERNALS_SRCS)
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1274 cd $(MANDIR)\internals
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1275 $(MAKEINFO) internals.texi
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1276 cd ..
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1277
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1278 $(INFODIR)\new-users-guide.info: $(NEW_USERS_GUIDE_SRCS)
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1279 cd $(MANDIR)\new-users-guide
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1280 $(MAKEINFO) new-users-guide.texi
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1281 cd ..
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1282
815
66265f190a16 [xemacs-hg @ 2002-04-14 17:40:13 by jhar]
jhar
parents: 814
diff changeset
1283 info: makeinfo-test $(INFO_FILES)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1284
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1285 makeinfo-test:
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1286 @<<makeinfo_test.bat
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1287 @echo off
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1288 if exist "$(MAKEINFO)" goto test_done
776
79940b592197 [xemacs-hg @ 2002-03-15 07:43:14 by ben]
ben
parents: 771
diff changeset
1289 @$(XEMACS_BATCH_PACKAGES) -eval "(condition-case nil (require (quote texinfo)) (t (kill-emacs 1)))"
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1290 @if not errorlevel 1 goto suggest_makeinfo
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1291 @echo XEmacs 'info' cannot be built!
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1292 @echo Install XEmacs package 'texinfo' (see README.packages).
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1293 :suggest_makeinfo
1315
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1294 @echo Consider specifying path to 'makeinfo' in config.inc.
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1295 @echo as this will build the info docs much faster than XEmacs using 'texinfo'.
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1296 @if errorlevel 1 exit 1
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1297 :test_done
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1298 <<NOKEEP
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1299
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1300 # Section handling info ends here
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1301
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1302 #------------------------------------------------------------------------------
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1303
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
1304 # Rebuild docfile target
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
1305
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
1306 DOC=$(LIB_SRC)\DOC
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
1307
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
1308 docfile ::
637
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1309 if exist $(DOC) $(DEL) $(DOC)
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
1310 docfile :: $(DOC)
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
1311
1303
f99d3d25df86 [xemacs-hg @ 2003-02-15 10:15:54 by ben]
ben
parents: 1203
diff changeset
1312 $(DOC): $(LIB_SRC)\make-docfile.exe $(TEMACS_DIR)\NEEDTODUMP $(TEMACS_OBJS)
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1313 cd $(TEMACS_DIR)
1303
f99d3d25df86 [xemacs-hg @ 2003-02-15 10:15:54 by ben]
ben
parents: 1203
diff changeset
1314 !if $(QUICK_BUILD)
f99d3d25df86 [xemacs-hg @ 2003-02-15 10:15:54 by ben]
ben
parents: 1203
diff changeset
1315 if not exist $(DOC) $(TEMACS_BATCH) -l $(LISP)\make-docfile.el -- -o $(DOC) -i $(XEMACS)\site-packages @<<
f99d3d25df86 [xemacs-hg @ 2003-02-15 10:15:54 by ben]
ben
parents: 1203
diff changeset
1316 $(**)
f99d3d25df86 [xemacs-hg @ 2003-02-15 10:15:54 by ben]
ben
parents: 1203
diff changeset
1317 <<
f99d3d25df86 [xemacs-hg @ 2003-02-15 10:15:54 by ben]
ben
parents: 1203
diff changeset
1318 !else
f99d3d25df86 [xemacs-hg @ 2003-02-15 10:15:54 by ben]
ben
parents: 1203
diff changeset
1319 $(TEMACS_BATCH) -l $(LISP)\make-docfile.el -- -o $(DOC) -i $(XEMACS)\site-packages @<<
f99d3d25df86 [xemacs-hg @ 2003-02-15 10:15:54 by ben]
ben
parents: 1203
diff changeset
1320 $(**)
f99d3d25df86 [xemacs-hg @ 2003-02-15 10:15:54 by ben]
ben
parents: 1203
diff changeset
1321 <<
f99d3d25df86 [xemacs-hg @ 2003-02-15 10:15:54 by ben]
ben
parents: 1203
diff changeset
1322 !endif
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1323
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1324 update-elc:
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1325 cd $(TEMACS_DIR)
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1326 $(TEMACS_BATCH) -l $(LISP)\update-elc.el
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1327
1315
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1328 ## Update out-of-date .elcs, other than needed for dumping.
1303
f99d3d25df86 [xemacs-hg @ 2003-02-15 10:15:54 by ben]
ben
parents: 1203
diff changeset
1329 update-elc-2:
f99d3d25df86 [xemacs-hg @ 2003-02-15 10:15:54 by ben]
ben
parents: 1203
diff changeset
1330 $(XEMACS_BATCH) -no-autoloads -l update-elc-2.el -f batch-update-elc-2 $(LISP)
f99d3d25df86 [xemacs-hg @ 2003-02-15 10:15:54 by ben]
ben
parents: 1203
diff changeset
1331
1315
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1332 $(LISP)/finder-inf.el:
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1333 @echo Building finder database ...
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1334 $(XEMACS_BATCH) -eval "(setq finder-compile-keywords-quiet t)" \
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1335 -l finder -f finder-compile-keywords
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1336 @echo Building finder database ...(done)
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1337
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1338 load-shadows:
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1339 !if !$(QUICK_BUILD)
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1340 @echo Testing for Lisp shadows ...
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1341 @$(XEMACS_BATCH) -f list-load-path-shadows
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1342 !endif
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1343
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1344 ## This file is touched by update-elc.el when redumping is necessary.
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1345 $(TEMACS_DIR)\NEEDTODUMP :
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1346 @echo >$(TEMACS_DIR)\NEEDTODUMP
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1347
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1348 # This rule dumps xemacs and then possibly spawns sub-make if PURESPACE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1349 # requirements have changed.
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1350
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1351 $(PROGNAME) : $(TEMACS) $(TEMACS_DIR)\NEEDTODUMP
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1352 cd $(TEMACS_DIR)
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1353 $(TEMACS_BATCH) -l $(LISP)\loadup.el dump
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
1354 !if $(USE_PORTABLE_DUMPER)
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1355 rc -d INCLUDE_DUMP -Fo $(OUTDIR)\xemacs.res $(NT)\xemacs.rc
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1356 # Make the resource section read/write since almost all of it is the dump
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1357 # data which needs to be writable. This avoids having to copy it.
545
9a775fb11bb7 [xemacs-hg @ 2001-05-18 04:39:39 by kkm]
kkm
parents: 528
diff changeset
1358 link.exe @<<
9a775fb11bb7 [xemacs-hg @ 2001-05-18 04:39:39 by kkm]
kkm
parents: 528
diff changeset
1359 $(TEMACS_LFLAGS) -section:.rsrc,rw -out:xemacs.exe $(TEMACS_OBJS) $(OUTDIR)\xemacs.res $(TEMACS_LIBS) $(OUTDIR)\dump-id.obj
9a775fb11bb7 [xemacs-hg @ 2001-05-18 04:39:39 by kkm]
kkm
parents: 528
diff changeset
1360 <<
637
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1361 -$(DEL) $(TEMACS_DIR)\xemacs.dmp
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
1362 !endif
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1363 #------------------------------------------------------------------------------
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1364
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1365 # use this rule to build the complete system
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1366 all: installation $(OUTDIR)\nul $(LASTFILE) $(LWLIB) \
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1367 $(LIB_SRC_TOOLS) $(TEMACS) update-elc $(DOC) $(PROGNAME) \
1315
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1368 update-elc-2 $(LISP)/finder-inf.el load-shadows info
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1369
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 432
diff changeset
1370 temacs: $(LASTFILE) $(TEMACS)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1371
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1372 # use this rule to install the system
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1373 install: all
430
a5df635868b2 Import from CVS: tag r21-2-23
cvs
parents: 428
diff changeset
1374 cd $(NT)
1001
cba22ad5bbfd [xemacs-hg @ 2002-09-13 20:35:10 by adrian]
adrian
parents: 942
diff changeset
1375 set COPYCMD=/y
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1376 @echo Installing in $(INSTALL_DIR) ...
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1377 @echo PlaceHolder > PlaceHolder
583
391cf801cb8d [xemacs-hg @ 2001-05-27 10:50:44 by nick]
nick
parents: 580
diff changeset
1378 @$(COPY) PROBLEMS "$(INSTALL_DIR)\"
391cf801cb8d [xemacs-hg @ 2001-05-27 10:50:44 by nick]
nick
parents: 580
diff changeset
1379 @$(COPY) PlaceHolder "$(INSTALL_DIR)\lock\"
637
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1380 -$(DEL) "$(INSTALL_DIR)\lock\PlaceHolder"
583
391cf801cb8d [xemacs-hg @ 2001-05-27 10:50:44 by nick]
nick
parents: 580
diff changeset
1381 @$(COPY) $(LIB_SRC)\*.exe "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)\"
391cf801cb8d [xemacs-hg @ 2001-05-27 10:50:44 by nick]
nick
parents: 580
diff changeset
1382 @$(COPY) $(LIB_SRC)\DOC "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)"
391cf801cb8d [xemacs-hg @ 2001-05-27 10:50:44 by nick]
nick
parents: 580
diff changeset
1383 @$(COPY) $(CONFIG_VALUES) "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)"
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1384 @$(COPY) $(TEMACS_DIR)\xemacs.exe "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)"
583
391cf801cb8d [xemacs-hg @ 2001-05-27 10:50:44 by nick]
nick
parents: 580
diff changeset
1385 @$(COPYDIR) $(XEMACS)\etc "$(INSTALL_DIR)\etc\"
391cf801cb8d [xemacs-hg @ 2001-05-27 10:50:44 by nick]
nick
parents: 580
diff changeset
1386 @$(COPYDIR) $(XEMACS)\info "$(INSTALL_DIR)\info\"
391cf801cb8d [xemacs-hg @ 2001-05-27 10:50:44 by nick]
nick
parents: 580
diff changeset
1387 @$(COPYDIR) $(XEMACS)\lisp "$(INSTALL_DIR)\lisp\"
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1388 @echo Making skeleton package tree in $(PACKAGE_PREFIX) ...
583
391cf801cb8d [xemacs-hg @ 2001-05-27 10:50:44 by nick]
nick
parents: 580
diff changeset
1389 @$(COPY) PlaceHolder "$(PACKAGE_PREFIX)\site-packages\"
637
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1390 -$(DEL) "$(PACKAGE_PREFIX)\site-packages\PlaceHolder"
583
391cf801cb8d [xemacs-hg @ 2001-05-27 10:50:44 by nick]
nick
parents: 580
diff changeset
1391 @$(COPY) PlaceHolder "$(PACKAGE_PREFIX)\mule-packages\"
637
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1392 -$(DEL) "$(PACKAGE_PREFIX)\mule-packages\PlaceHolder"
583
391cf801cb8d [xemacs-hg @ 2001-05-27 10:50:44 by nick]
nick
parents: 580
diff changeset
1393 @$(COPY) PlaceHolder "$(PACKAGE_PREFIX)\xemacs-packages\"
637
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1394 -$(DEL) "$(PACKAGE_PREFIX)\xemacs-packages\PlaceHolder"
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1395 -$(DEL) PlaceHolder
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1396
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1397 mostlyclean:
637
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1398 -$(DEL) $(XEMACS)\Installation
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1399 -$(DEL) $(OUTDIR)\*.lib
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1400 -$(DEL) $(OUTDIR)\*.obj
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1401 -$(DEL) $(OUTDIR)\*.pdb
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1402 -$(DEL) $(OUTDIR)\*.res
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1403 -$(DEL) $(OUTDIR)\*.sbr
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1404 -$(DEL) $(TEMACS_DIR)\*.exe
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1405 -$(DEL) $(TEMACS_DIR)\*.map
637
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1406 -$(DEL) $(SRC)\*.bsc
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1407 -$(DEL) $(TEMACS_DIR)\*.pdb
637
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1408 -$(DEL) $(LIB_SRC)\*.exe
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1409 -$(DEL) $(LIB_SRC)\*.obj
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1410 -$(DEL) $(LIB_SRC)\*.pdb
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1411 -$(DEL) $(LIB_SRC)\*.res
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1412
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1413 clean: mostlyclean versionclean
637
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1414 -$(DEL) $(XEMACS)\TAGS
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1415
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1416 nicenclean: clean
637
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1417 -$(DEL) $(NT)\*.bak
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1418 -$(DEL) $(NT)\*.orig
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1419 -$(DEL) $(NT)\*.rej
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1420 -$(DEL) $(NT)\*.tmp
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1421 -$(DEL) $(LIB_SRC)\*.bak
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1422 -$(DEL) $(LIB_SRC)\*.orig
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1423 -$(DEL) $(LIB_SRC)\*.rej
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1424 -$(DEL) $(LIB_SRC)\*.tmp
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1425 -$(DEL) $(SRC)\*.bak
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1426 -$(DEL) $(SRC)\*.orig
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1427 -$(DEL) $(SRC)\*.rej
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1428 -$(DEL) $(SRC)\*.tmp
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1429 -$(DEL) $(LISP)\*.bak
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1430 -$(DEL) $(LISP)\*.orig
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1431 -$(DEL) $(LISP)\*.rej
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1432 -$(DEL) $(LISP)\*.tmp
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1433
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1434 # Convenience target.
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1435 # Reproducing the configuration is just a matter of copying, and if
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1436 # we use the same directory for Cygwin builds these must go. We don't
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1437 # want to use distclean.
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1438 configclean:
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1439 -$(DEL) $(SRC)\config.h
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1440 -$(DEL) $(SRC)\paths.h
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1441 -$(DEL) $(SRC)\Emacs.ad.h
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1443 ## This is used in making a distribution.
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1444 ## Do not use it on development directories!
637
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1445 distclean: nicenclean configclean
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1446 -$(DEL) $(LIB_SRC)\$(CONFIG_VALUES)
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1447 -$(DEL) $(INFODIR)\*.info*
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1448 -$(DEL) $(LISP)\*.elc
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1449 -$(DEL) $(LISP)\mule\*.elc
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1450 -$(DEL) $(LISP)\term\*.elc
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1451
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1452 realclean: distclean
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1453
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1454 versionclean:
872
79c6ff3eef26 [xemacs-hg @ 2002-06-20 21:18:01 by ben]
ben
parents: 853
diff changeset
1455 -$(DEL) $(TEMACS_DIR)\xemacs.exe
637
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1456 -$(DEL) $(LIB_SRC)\DOC
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1457
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1458 #not sure about those wildcards. DOS wildcards are stupid compared to Unix,
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1459 #and could end up deleting *everything* instead of just backup files or
637
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1460 #whatever. So just leave it at "realclean"
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1461 extraclean: realclean
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1462 # -$(DEL) *~
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1463 # -$(DEL) *.*~
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1464 # -$(DEL) #*
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1465 # -$(DEL) m\*~
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1466 # -$(DEL) m\#*
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1467 # -$(DEL) s\*~
2538b7200a20 [xemacs-hg @ 2001-07-26 06:21:45 by stephent]
stephent
parents: 632
diff changeset
1468 # -$(DEL) s\#*
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1469
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1470 depend:
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1471 cd $(SRC)
432
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
1472 perl ./make-src-depend > depend.tmp
3a7e78e1142d Import from CVS: tag r21-2-24
cvs
parents: 430
diff changeset
1473 perl -MFile::Compare -e "compare('depend.tmp', 'depend') && rename('depend.tmp', 'depend') or unlink('depend.tmp')"
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1474
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
1475 unicode-encapsulate:
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
1476 cd $(SRC)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
1477 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
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
1478
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1479 $(XEMACS)\Installation:: installation
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
1480
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1481 installation::
558
ed498ef2108b [xemacs-hg @ 2001-05-23 09:59:33 by ben]
ben
parents: 551
diff changeset
1482 @echo OS version:>$(XEMACS)\Installation
ed498ef2108b [xemacs-hg @ 2001-05-23 09:59:33 by ben]
ben
parents: 551
diff changeset
1483 @ver >> $(XEMACS)\Installation
ed498ef2108b [xemacs-hg @ 2001-05-23 09:59:33 by ben]
ben
parents: 551
diff changeset
1484 @type >> $(XEMACS)\Installation <<
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1485 !if defined(OS)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1486 OS: $(OS)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1487 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1488
1052
23dedeadeaad [xemacs-hg @ 2002-10-14 19:20:12 by adrian]
adrian
parents: 1001
diff changeset
1489 XEmacs $(XEMACS_VERSION_STRING) $(xemacs_codename) $(xemacs_extra_name:"=) configured for `$(EMACS_CONFIGURATION)'.
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1490
1052
23dedeadeaad [xemacs-hg @ 2002-10-14 19:20:12 by adrian]
adrian
parents: 1001
diff changeset
1491 Building XEmacs using "$(MAKE:\=\\)".
23dedeadeaad [xemacs-hg @ 2002-10-14 19:20:12 by adrian]
adrian
parents: 1001
diff changeset
1492 Building XEmacs using make flags "$(MAKEFLAGS)".
23dedeadeaad [xemacs-hg @ 2002-10-14 19:20:12 by adrian]
adrian
parents: 1001
diff changeset
1493 Building XEmacs in "$(MAKEDIR:\=\\)".
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1494 !if defined(CCV)
1052
23dedeadeaad [xemacs-hg @ 2002-10-14 19:20:12 by adrian]
adrian
parents: 1001
diff changeset
1495 Using compiler "$(CC) $(CFLAGS)".
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1496 !endif
1203
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
1497 !if $(CPLUSPLUS_COMPILE)
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
1498 Compiling as C++.
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
1499 !endif
1052
23dedeadeaad [xemacs-hg @ 2002-10-14 19:20:12 by adrian]
adrian
parents: 1001
diff changeset
1500 Installing XEmacs in "$(INSTALL_DIR:\=\\)".
23dedeadeaad [xemacs-hg @ 2002-10-14 19:20:12 by adrian]
adrian
parents: 1001
diff changeset
1501 Package path is $(PATH_PACKAGEPATH).
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1502 !if $(INFODOCK)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1503 Building InfoDock.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1504 !endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1505 !if $(HAVE_MS_WINDOWS)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1506 Compiling in support for Microsoft Windows native GUI.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1507 !endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1508 !if $(HAVE_X_WINDOWS)
814
a634e3b7acc8 [xemacs-hg @ 2002-04-14 12:41:59 by ben]
ben
parents: 812
diff changeset
1509 Compiling in support for X Windows.
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1510 !endif
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
1511 !if $(MULE)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
1512 Compiling in international (MULE) support.
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1513 !endif
488
1e7b510d04f6 [xemacs-hg @ 2001-04-28 21:04:49 by adrian]
adrian
parents: 462
diff changeset
1514 !if $(HAVE_GTK)
1e7b510d04f6 [xemacs-hg @ 2001-04-28 21:04:49 by adrian]
adrian
parents: 462
diff changeset
1515 --------------------------------------------------------------------
1315
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1516 NOTE: You specified HAVE_GTK=1, but we are compiling WITHOUT GTK support.
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1517 NOTE: gtk-xemacs is not currently supported on MS Windows (mingw or msvc).
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1518 NOTE: Yes, we know that gtk has been ported to native MS Windows, but
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1519 NOTE: XEmacs is not yet ready to use that port.
488
1e7b510d04f6 [xemacs-hg @ 2001-04-28 21:04:49 by adrian]
adrian
parents: 462
diff changeset
1520 --------------------------------------------------------------------
1e7b510d04f6 [xemacs-hg @ 2001-04-28 21:04:49 by adrian]
adrian
parents: 462
diff changeset
1521 !endif
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1522 !if $(HAVE_XPM)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1523 Compiling in support for XPM images.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1524 !else
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1525 --------------------------------------------------------------------
1315
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1526 NOTE: Compiling without XPM support.
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1527 NOTE: You should strongly consider installing XPM.
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1528 NOTE: Otherwise toolbars and other graphics will look suboptimal.
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1529 NOTE: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1530 --------------------------------------------------------------------
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1531 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1532 !if $(HAVE_GIF)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1533 Compiling in support for GIF images.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1534 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1535 !if $(HAVE_PNG)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1536 Compiling in support for PNG images.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1537 !else
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1538 --------------------------------------------------------------------
1315
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1539 NOTE: Compiling without PNG image support.
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1540 NOTE: You should strongly consider installing the PNG libraries.
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1541 NOTE: Otherwise certain images and glyphs may not display.
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1542 NOTE: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1543 --------------------------------------------------------------------
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1544 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1545 !if $(HAVE_TIFF)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1546 Compiling in support for TIFF images.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1547 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1548 !if $(HAVE_JPEG)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1549 Compiling in support for JPEG images.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1550 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1551 !if $(HAVE_XFACE)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1552 Compiling in support for X-Face message headers.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1553 !endif
771
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
1554 !if $(HAVE_ZLIB)
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
1555 Compiling in support for GZIP compression/decompression.
943eaba38521 [xemacs-hg @ 2002-03-13 08:51:24 by ben]
ben
parents: 669
diff changeset
1556 !endif
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1557 !if $(HAVE_TOOLBARS)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1558 Compiling in support for toolbars.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1559 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1560 !if $(HAVE_DIALOGS)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1561 Compiling in support for dialogs.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1562 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1563 !if $(HAVE_WIDGETS)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1564 Compiling in support for widgets.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1565 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1566 !if $(HAVE_NATIVE_SOUND)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1567 Compiling in support for native sounds.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1568 !endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1569 !if $(USE_UNION_TYPE)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1570 Using union type for Lisp object storage.
1315
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1571 NOTE: ---------------------------------------------------------
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1572 NOTE: This tends to trigger compiler bugs, especially when combined
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1573 NOTE: with MULE and ERROR_CHECKING. Crashes in pdump have recently
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1574 NOTE: been observed using Visual C++ in combination with union type,
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1575 NOTE: MULE, and ERROR_CHECKING.
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1576 NOTE: ---------------------------------------------------------
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1577 !endif
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 432
diff changeset
1578 !if $(USE_PORTABLE_DUMPER)
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 432
diff changeset
1579 Using portable dumper.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 432
diff changeset
1580 !endif
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
1581 !if $(USE_SYSTEM_MALLOC)
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
1582 Using system malloc.
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
1583 !endif
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
1584 !if $(USE_CRTDLL)
942
d90decf21e71 [xemacs-hg @ 2002-07-31 20:26:40 by adrian]
adrian
parents: 882
diff changeset
1585 Using DLL version of C runtime library.
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
1586 !endif
814
a634e3b7acc8 [xemacs-hg @ 2002-04-14 12:41:59 by ben]
ben
parents: 812
diff changeset
1587 !if $(ERROR_CHECK_ALL)
1203
5f2f8dcbfb3e [xemacs-hg @ 2003-01-12 11:04:30 by michaels]
michaels
parents: 1052
diff changeset
1588 Compiling in extra internal error-checking.
1315
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1589 NOTE: ---------------------------------------------------------
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1590 NOTE: Compiling in support for runtime error-checking.
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1591 NOTE: XEmacs will run noticeably more slowly as a result.
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1592 NOTE: Error-checking is on by default for XEmacs beta releases.
70921960b980 [xemacs-hg @ 2003-02-20 08:19:28 by ben]
ben
parents: 1303
diff changeset
1593 NOTE: ---------------------------------------------------------
814
a634e3b7acc8 [xemacs-hg @ 2002-04-14 12:41:59 by ben]
ben
parents: 812
diff changeset
1594 !endif
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1595 !if $(DEBUG_XEMACS)
814
a634e3b7acc8 [xemacs-hg @ 2002-04-14 12:41:59 by ben]
ben
parents: 812
diff changeset
1596 Compiling in debugging support (no slowdown).
a634e3b7acc8 [xemacs-hg @ 2002-04-14 12:41:59 by ben]
ben
parents: 812
diff changeset
1597 !endif
a634e3b7acc8 [xemacs-hg @ 2002-04-14 12:41:59 by ben]
ben
parents: 812
diff changeset
1598 !if $(OPTIMIZED_BUILD)
a634e3b7acc8 [xemacs-hg @ 2002-04-14 12:41:59 by ben]
ben
parents: 812
diff changeset
1599 Compiling with optimization.
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1600 !endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1601 !if $(QUICK_BUILD)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1602 Disabling non-essential build actions. Use with care!
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
1603 !endif
942
d90decf21e71 [xemacs-hg @ 2002-07-31 20:26:40 by adrian]
adrian
parents: 882
diff changeset
1604 !if $(USE_KKCC)
d90decf21e71 [xemacs-hg @ 2002-07-31 20:26:40 by adrian]
adrian
parents: 882
diff changeset
1605 Using new experimental GC algorithms.
d90decf21e71 [xemacs-hg @ 2002-07-31 20:26:40 by adrian]
adrian
parents: 882
diff changeset
1606 !endif
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1607 <<NOKEEP
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1608 @echo --------------------------------------------------------------------
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1609 @type $(XEMACS)\Installation
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1610 @echo --------------------------------------------------------------------
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1611
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1612 # DO NOT DELETE THIS LINE -- make depend depends on it.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1613