comparison nt/gmake.defs @ 88155:d7ddb3e565de

sync with trunk
author Henrik Enberg <henrik.enberg@telia.com>
date Mon, 16 Jan 2006 00:03:54 +0000
parents 23a1cea22d13
children
comparison
equal deleted inserted replaced
88154:8ce476d3ba36 88155:d7ddb3e565de
1 # 1 # -*- Makefile -*- definition file for building GNU Emacs on Windows NT.
2 # Makefile definition file for building GNU Emacs on the Microsoft W32 API. 2 # Copyright (c) 2000, 2001, 2002, 2003, 2004,
3 # Copyright (c) 2000-2001 Free Software Foundation, Inc. 3 # 2005 Free Software Foundation, Inc.
4 # 4 #
5 # GNU Emacs is free software; you can redistribute it and/or modify 5 # GNU Emacs is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by 6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2, or (at your option) 7 # the Free Software Foundation; either version 2, or (at your option)
8 # any later version. 8 # any later version.
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details. 13 # GNU General Public License for more details.
14 # 14 #
15 # You should have received a copy of the GNU General Public License 15 # You should have received a copy of the GNU General Public License
16 # along with GNU Emacs; see the file COPYING. If not, write to 16 # along with GNU Emacs; see the file COPYING. If not, write to
17 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 17 # the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 # Boston, MA 02111-1307, USA. 18 # Boston, MA 02110-1301, USA.
19 19
20 # Ensure 'all' is the default target 20 # Ensure 'all' is the default target
21 all: 21 all:
22 22
23 # NOTES 23 # NOTES
175 MPR = -lmpr 175 MPR = -lmpr
176 SHELL32 = -lshell32 176 SHELL32 = -lshell32
177 USER32 = -luser32 177 USER32 = -luser32
178 WSOCK32 = -lwsock32 178 WSOCK32 = -lwsock32
179 WINMM = -lwinmm 179 WINMM = -lwinmm
180 WINSPOOL = -lwinspool
180 181
181 ifdef NOOPT 182 ifdef NOOPT
182 DEBUG_CFLAGS = -DEMACSDEBUG 183 DEBUG_CFLAGS = -DEMACSDEBUG
183 else 184 else
184 DEBUG_CFLAGS = 185 DEBUG_CFLAGS =
188 $(DEBUG_CFLAGS) $(USER_CFLAGS) $(LOCAL_FLAGS) 189 $(DEBUG_CFLAGS) $(USER_CFLAGS) $(LOCAL_FLAGS)
189 EMACS_EXTRA_C_FLAGS = -DUSE_CRT_DLL=1 190 EMACS_EXTRA_C_FLAGS = -DUSE_CRT_DLL=1
190 191
191 # see comments in allocate_heap in w32heap.c before changing any of the 192 # see comments in allocate_heap in w32heap.c before changing any of the
192 # -stack, -heap, or -image-base settings. 193 # -stack, -heap, or -image-base settings.
193 TEMACS_EXTRA_LINK = -Wl,-stack,0x00800000 -Wl,-heap,0x00100000 -Wl,-image-base,0x01000000 -g $(SUBSYSTEM_CONSOLE) -Wl,-entry,__start -Wl,-Map,$(BLD)/temacs.map 194 TEMACS_EXTRA_LINK = -Wl,-stack,0x00800000 -Wl,-heap,0x00100000 -Wl,-image-base,0x01000000 $(SUBSYSTEM_CONSOLE) -Wl,-entry,__start -Wl,-Map,$(BLD)/temacs.map
194 195
195 ifdef NOOPT 196 ifdef NOOPT
196 OBJDIR = oo 197 OBJDIR = oo
197 else 198 else
198 OBJDIR = oo-spd 199 OBJDIR = oo-spd
239 240
240 ifdef NODEBUG 241 ifdef NODEBUG
241 DEBUG_FLAG = 242 DEBUG_FLAG =
242 DEBUG_LINK = 243 DEBUG_LINK =
243 else 244 else
244 DEBUG_FLAG = -g 245 DEBUG_FLAG = -gstabs+ -g3
245 DEBUG_LINK = -g 246 DEBUG_LINK = -gstabs+ -g3
246 endif 247 endif
247 248
248 ifdef NOCYGWIN 249 ifdef NOCYGWIN
249 NOCYGWIN = -mno-cygwin 250 NOCYGWIN = -mno-cygwin
250 endif 251 endif
251 252
252 ifeq "$(ARCH)" "i386" 253 ifeq "$(ARCH)" "i386"
253 ifdef NOOPT 254 ifdef NOOPT
254 ARCH_CFLAGS = -D_X86_=1 -c $(DEBUG_FLAG) $(NOCYGWIN) 255 ARCH_CFLAGS = -D_X86_=1 -c $(DEBUG_FLAG) $(NOCYGWIN)
255 else 256 else
256 ARCH_CFLAGS = -D_X86_=1 -c $(DEBUG_FLAG) $(NOCYGWIN) -mcpu=i686 -O2 \ 257 ARCH_CFLAGS = -D_X86_=1 -c $(DEBUG_FLAG) $(NOCYGWIN) $(MCPU_FLAG) -O2 \
257 # -fbuiltin \ 258 # -fbuiltin \
258 # -finline-functions \ 259 # -finline-functions \
259 # -fomit-frame-pointer 260 # -fomit-frame-pointer
260 endif 261 endif
261 ARCH_LDFLAGS = $(SYS_LDFLAGS) 262 ARCH_LDFLAGS = $(SYS_LDFLAGS)
267 268
268 .DEFAULT: 269 .DEFAULT:
269 270
270 $(BLD)/%.o: %.c 271 $(BLD)/%.o: %.c
271 $(CC) $(CFLAGS) $(CC_OUT)$@ $< 272 $(CC) $(CFLAGS) $(CC_OUT)$@ $<
273
274 # arch-tag: 35eb9662-8534-4bcf-b891-0730a09d657f