comparison nt/xemacs.mak @ 274:ca9a9ec9c1c1 r21-0b35

Import from CVS: tag r21-0b35
author cvs
date Mon, 13 Aug 2007 10:29:42 +0200
parents b2472a1930f2
children 6330739388db
comparison
equal deleted inserted replaced
273:411aac7253ef 274:ca9a9ec9c1c1
1 # Makefile for Microsoft NMAKE
2 # Copyright (C) 1995 Board of Trustees, University of Illinois.
3 # Copyright (C) 1995, 1996 Ben Wing.
4 # Copyright (C) 1995 Sun Microsystems, Inc.
5 # Copyright (C) 1998 Free Software Foundation, Inc.
6 #
7 # This file is part of XEmacs.
8 #
9 # XEmacs is free software; you can redistribute it and/or modify it
10 # under the terms of the GNU General Public License as published by the
11 # Free Software Foundation; either version 2, or (at your option) any
12 # later version.
13 #
14 # XEmacs is distributed in the hope that it will be useful, but WITHOUT
15 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 # for more details.
18 #
19 # You should have received a copy of the GNU General Public License
20 # along with XEmacs; see the file COPYING. If not, write to
21 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
22 # Boston, MA 02111-1307, USA.
23 #
24 # Synched up with: Not in FSF.
25 #
26
1 XEMACS=.. 27 XEMACS=..
2 LISP=$(XEMACS)\lisp 28 LISP=$(XEMACS)\lisp
3 PATH_PACKAGEPATH="~/.xemacs;;d:/src/xemacs/packages" 29
30 #
31 # Command line options defaults
32 #
33 !if !defined(PATH_PACKAGEPATH)
34 PATH_PACKAGEPATH="~/.xemacs"
35 !endif
36 !if !defined(HAVE_MSW)
37 HAVE_MSW=0
38 !endif
39 !if !defined(HAVE_X)
4 HAVE_X=0 40 HAVE_X=0
5 HAVE_MSW=1 41 !endif
6 42 !if !defined(HAVE_MULE)
7 HAVE_MULE=0 43 HAVE_MULE=0
8 HAVE_IMAGEMAGICK=0 44 !endif
9 45 !if !defined(HAVE_MSW_C_DIRED)
46 HAVE_MSW_C_DIRED=1
47 !endif
48 !if !defined(DEBUG_XEMACS)
10 DEBUG_XEMACS=1 49 DEBUG_XEMACS=1
11 50 !endif
51 !if !defined(USE_UNION_TYPE)
52 USE_UNION_TYPE=0
53 !endif
54 !if !defined(USE_MINIMAL_TAGBITS)
55 USE_MINIMAL_TAGBITS=0
56 !endif
57 !if !defined(USE_INDEXED_LRECORD_IMPLEMENTATION)
58 USE_INDEXED_LRECORD_IMPLEMENTATION=0
59 !endif
60
61 #
62 # Conf error checks
63 #
64 !if !$(HAVE_MSW) && !$(HAVE_X)
65 !error Please specify at least one HAVE_MSW=1 and/or HAVE_X=1
66 !endif
67 !if $(HAVE_X) && !defined(X11_DIR)
68 !error Please specify root directory for your X11 installation: X11_DIR=path
69 !endif
70
71 #
72 # Handle GUNG_HO
73 #
74 !if defined(GUNG_HO)
75 USE_MINIMAL_TAGBITS=$(GUNG_HO)
76 USE_INDEXED_LRECORD_IMPLEMENTATION=$(GUNG_HO)
77 !endif
78
79 #
80 # Small configuration report
81 #
82 !if !defined(CONF_REPORT_ALREADY_PRINTED)
83 !if [set CONF_REPORT_ALREADY_PRINTED=1]
84 !endif
85 !message ------------------------------------------------
86 !if $(HAVE_MSW)
87 !message Compiling in support for native GUI.
88 !endif
89 !if $(HAVE_X)
90 !message Compiling in support for X-Windows.
91 !endif
92 !if $(HAVE_MULE)
93 !message Compiling in MULE.
94 !endif
95 !if $(HAVE_MSW_C_DIRED)
12 # Define HAVE_MSW_C_DIRED to be non-zero if you want Xemacs to use C 96 # Define HAVE_MSW_C_DIRED to be non-zero if you want Xemacs to use C
13 # primitives to significantly speed up dired, at the expense of an 97 # primitives to significantly speed up dired, at the expense of an
14 # additional ~4KB of code. 98 # additional ~4KB of code.
15 HAVE_MSW_C_DIRED=1 99 !message Compiling in fast dired implementation.
100 !endif
101 !if $(USE_MINIMAL_TAGBITS)
102 !message Using minimal tagbits.
103 !endif
104 !if $(USE_INDEXED_LRECORD_IMPLEMENTATION)
105 !message Using indexed lrecord implementation.
106 !endif
107 !if $(USE_UNION_TYPE)
108 !message Using union type for Lisp object storage.
109 !endif
110 !if $(DEBUG_XEMACS)
111 !message Compiling in extra debug checks. XEmacs will be slow!
112 !endif
113 !message ------------------------------------------------
114 !message
115 !endif # !defined(CONF_REPORT_ALREADY_PRINTED)
16 116
17 !if $(DEBUG_XEMACS) 117 !if $(DEBUG_XEMACS)
18 OPT=-Od -Zi 118 OPT=-Od -Zi
19 !else 119 !else
20 OPT=-O2 -G5 -Zi 120 OPT=-O2 -G5 -Zi
21 !endif 121 !endif
22 122
23 WARN_CPP_FLAGS = -W3 123 WARN_CPP_FLAGS = -W3
24 124
25 #------------------------------------------------------------------------------
26
27 !if $(HAVE_X) 125 !if $(HAVE_X)
28
29 X11R6=h:\utils\X11R6
30
31 !if $(HAVE_IMAGEMAGICK)
32 MAGICK=e:\utils\ImageMagick
33
34 MAGICK_INCLUDES=-I$(MAGICK)\Magick
35 MAGICK_LIBS=Magick.dll.lib
36 !endif
37
38 X_DEFINES=-DHAVE_X_WINDOWS 126 X_DEFINES=-DHAVE_X_WINDOWS
39 X_INCLUDES=-I$(X11R6)\include $(MAGICK_INCLUDES) 127 X_INCLUDES=-I$(X11_DIR)\include
40 X_LIBS=$(MAGICK_LIBS) Xaw.lib Xmu.lib Xt.lib SM.lib ICE.lib Xext.lib X11.lib 128 X_LIBS=-libpath:$(X11_DIR)\lib Xaw.lib Xmu.lib Xt.lib SM.lib ICE.lib Xext.lib X11.lib
41 !endif 129 !endif
42 130
43 !if $(HAVE_MSW) 131 !if $(HAVE_MSW)
44 MSW_DEFINES=-DHAVE_MS_WINDOWS -DHAVE_SCROLLBARS -DHAVE_MENUBARS 132 MSW_DEFINES=-DHAVE_MS_WINDOWS -DHAVE_SCROLLBARS -DHAVE_MENUBARS
45 !if $(HAVE_MSW_C_DIRED) 133 !if $(HAVE_MSW_C_DIRED)
57 DEBUG_DEFINES=-DDEBUG_XEMACS 145 DEBUG_DEFINES=-DDEBUG_XEMACS
58 DEBUG_FLAGS= -debugtype:both -debug:full 146 DEBUG_FLAGS= -debugtype:both -debug:full
59 !endif 147 !endif
60 148
61 !include "..\version.sh" 149 !include "..\version.sh"
62
63 # Nothing should need to be edited below this point.
64 #------------------------------------------------------------------------------
65 150
66 # Generic variables 151 # Generic variables
67 152
68 INCLUDES=$(X_INCLUDES) -I$(XEMACS)\nt\inc -I$(XEMACS)\src -I$(XEMACS)\lwlib -I"$(MSVCDIR)\include" 153 INCLUDES=$(X_INCLUDES) -I$(XEMACS)\nt\inc -I$(XEMACS)\src -I$(XEMACS)\lwlib -I"$(MSVCDIR)\include"
69 154
240 $(XEMACS)\src\ntproc.c \ 325 $(XEMACS)\src\ntproc.c \
241 $(XEMACS)\src\objects.c \ 326 $(XEMACS)\src\objects.c \
242 $(XEMACS)\src\opaque.c \ 327 $(XEMACS)\src\opaque.c \
243 $(XEMACS)\src\print.c \ 328 $(XEMACS)\src\print.c \
244 $(XEMACS)\src\process.c \ 329 $(XEMACS)\src\process.c \
330 $(XEMACS)\src\process-nt.c \
245 $(XEMACS)\src\profile.c \ 331 $(XEMACS)\src\profile.c \
246 $(XEMACS)\src\pure.c \ 332 $(XEMACS)\src\pure.c \
247 $(XEMACS)\src\rangetab.c \ 333 $(XEMACS)\src\rangetab.c \
248 $(XEMACS)\src\realpath.c \ 334 $(XEMACS)\src\realpath.c \
249 $(XEMACS)\src\redisplay-output.c \ 335 $(XEMACS)\src\redisplay-output.c \
495 $(OUTDIR)\ntproc.obj \ 581 $(OUTDIR)\ntproc.obj \
496 $(OUTDIR)\objects.obj \ 582 $(OUTDIR)\objects.obj \
497 $(OUTDIR)\opaque.obj \ 583 $(OUTDIR)\opaque.obj \
498 $(OUTDIR)\print.obj \ 584 $(OUTDIR)\print.obj \
499 $(OUTDIR)\process.obj \ 585 $(OUTDIR)\process.obj \
586 $(OUTDIR)\process-nt.obj \
500 $(OUTDIR)\profile.obj \ 587 $(OUTDIR)\profile.obj \
501 $(OUTDIR)\pure.obj \ 588 $(OUTDIR)\pure.obj \
502 $(OUTDIR)\rangetab.obj \ 589 $(OUTDIR)\rangetab.obj \
503 $(OUTDIR)\realpath.obj \ 590 $(OUTDIR)\realpath.obj \
504 $(OUTDIR)\redisplay-output.obj \ 591 $(OUTDIR)\redisplay-output.obj \
605 692
606 temacs: $(TEMACS) 693 temacs: $(TEMACS)
607 694
608 # use this rule to install the system 695 # use this rule to install the system
609 install: 696 install:
610 697 echo Not yet implemented.
611 # The last line demands that you have a semi-decent shell 698
612 distclean: 699 distclean:
613 -mkdepend -f xemacs.mak
614 del *.bak 700 del *.bak
615 del *.orig 701 del *.orig
616 del *.rej 702 del *.rej
617 del *.pdb 703 del *.pdb
618 del *.tmp 704 del *.tmp