1 |
# |
# |
2 |
# Makefile definition file for building GNU Emacs on the Microsoft W32 API. |
# Makefile definition file for building GNU Emacs on the Microsoft W32 API. |
3 |
# Copyright (c) 2000-2001 Free Software Foundation, Inc. |
# Copyright (c) 2000-2001 Free Software Foundation, Inc. |
4 |
# |
# |
5 |
# GNU Emacs is free software; you can redistribute it and/or modify |
# 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 |
# 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) |
# the Free Software Foundation; either version 2, or (at your option) |
8 |
# any later version. |
# any later version. |
9 |
# |
# |
10 |
# GNU Emacs is distributed in the hope that it will be useful, |
# GNU Emacs is distributed in the hope that it will be useful, |
11 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 |
# GNU General Public License for more details. |
# GNU General Public License for more details. |
14 |
# |
# |
15 |
# You should have received a copy of the GNU General Public License |
# 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 |
# along with GNU Emacs; see the file COPYING. If not, write to |
17 |
# the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
# the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
64 |
!endif |
!endif |
65 |
|
|
66 |
# Determine the architecture we're running on. |
# Determine the architecture we're running on. |
67 |
# Define ARCH for our purposes; |
# Define ARCH for our purposes; |
68 |
# Define CPU for use by ntwin32.mak; |
# Define CPU for use by ntwin32.mak; |
69 |
# Define CONFIG_H to the appropriate config.h for the system; |
# Define CONFIG_H to the appropriate config.h for the system; |
70 |
# |
# |
110 |
RC_INCLUDE = -i |
RC_INCLUDE = -i |
111 |
|
|
112 |
libc = libc.lib |
libc = libc.lib |
113 |
baselibs = |
baselibs = |
114 |
O = obj |
O = obj |
115 |
A = lib |
A = lib |
116 |
|
|
123 |
SHELL32 = shell32.lib |
SHELL32 = shell32.lib |
124 |
USER32 = user32.lib |
USER32 = user32.lib |
125 |
WSOCK32 = wsock32.lib |
WSOCK32 = wsock32.lib |
126 |
|
WINMM = winmm.lib |
127 |
|
|
128 |
!ifdef NOOPT |
!ifdef NOOPT |
129 |
DEBUG_CFLAGS = -DEMACSDEBUG |
DEBUG_CFLAGS = -DEMACSDEBUG |
130 |
!else |
!else |
131 |
DEBUG_CFLAGS = |
DEBUG_CFLAGS = |
132 |
!endif |
!endif |
133 |
CFLAGS = -I. -DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=0x0400 $(ARCH_CFLAGS) -D$(ARCH) \ |
CFLAGS = -I. -DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=0x0400 $(ARCH_CFLAGS) -D$(ARCH) \ |
134 |
-D_CRTAPI1=_cdecl $(DEBUG_CFLAGS) $(USER_CFLAGS) $(LOCAL_FLAGS) |
-D_CRTAPI1=_cdecl $(DEBUG_CFLAGS) $(USER_CFLAGS) $(LOCAL_FLAGS) |
166 |
DEL_TREE = rm -r |
DEL_TREE = rm -r |
167 |
|
|
168 |
!ifdef NODEBUG |
!ifdef NODEBUG |
169 |
DEBUG_FLAG = |
DEBUG_FLAG = |
170 |
DEBUG_LINK = |
DEBUG_LINK = |
171 |
!else |
!else |
172 |
DEBUG_FLAG = -Zi |
DEBUG_FLAG = -Zi |
173 |
DEBUG_LINK = -debug:full -debugtype:both |
DEBUG_LINK = -debug:full -debugtype:both |