annotate nt/makefile.def @ 14125:2f222e8b06f5

(init_display): Treat null string DISPLAY var like not set.
author Karl Heuer <kwzh@gnu.org>
date Tue, 09 Jan 1996 23:38:07 +0000
parents 47dcb4f14efb
children aba3b91c8b3d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11766
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
1 #
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
2 # Makefile definition file for building GNU Emacs on Windows NT
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
3 #
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
4 # GNU Emacs is free software; you can redistribute it and/or modify
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
5 # it under the terms of the GNU General Public License as published by
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
6 # the Free Software Foundation; either version 2, or (at your option)
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
7 # any later version.
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
8 #
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
9 # GNU Emacs is distributed in the hope that it will be useful,
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
12 # GNU General Public License for more details.
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
13 #
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
14 # You should have received a copy of the GNU General Public License
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
15 # along with GNU Emacs; see the file COPYING. If not, write to
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
16 # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
17 #
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
18 # Geoff Voelker (voelker@cs.washington.edu) 9-6-94
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
19
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
20 #
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
21 # BEGIN CONFIGURATION
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
22 #
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
23
13436
d464ad2ab385 (NTGUI): New macro.
Geoff Voelker <voelker@cs.washington.edu>
parents: 12237
diff changeset
24 # Define the following to build the GUI version
d464ad2ab385 (NTGUI): New macro.
Geoff Voelker <voelker@cs.washington.edu>
parents: 12237
diff changeset
25 #
d464ad2ab385 (NTGUI): New macro.
Geoff Voelker <voelker@cs.washington.edu>
parents: 12237
diff changeset
26 NTGUI=1
d464ad2ab385 (NTGUI): New macro.
Geoff Voelker <voelker@cs.washington.edu>
parents: 12237
diff changeset
27
11937
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
28 # Set INSTALL_DIR to be the directory into which you want emacs installed.
11766
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
29 #
11937
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
30 !ifndef INSTALL_DIR
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
31 INSTALL_DIR = C:\emacs
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
32 !endif
11766
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
33
12237
f5ad41d728d3 (MSVCNT11): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 12180
diff changeset
34 # Define MSVCNT11 to be nonzero if you are using the MSVCNT 1.1 environment.
f5ad41d728d3 (MSVCNT11): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 12180
diff changeset
35 # MSVCNT11 = 1
f5ad41d728d3 (MSVCNT11): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 12180
diff changeset
36 MSVCNT11 = 0
f5ad41d728d3 (MSVCNT11): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 12180
diff changeset
37
11766
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
38 #
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
39 # END CONFIGURATION
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
40 #
11937
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
41
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
42 # Check that the INCLUDE and LIB environment variables are set.
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
43 #
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
44 !ifndef INCLUDE
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
45 !error The INCLUDE environment variable needs to be set.
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
46 !endif
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
47 !ifndef LIB
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
48 !error The LIB environment variable needs to be set.
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
49 !endif
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
50
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
51 # Determine the architecture we're running on.
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
52 # Define ARCH for our purposes;
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
53 # Define CPU for use by ntwin32.mak;
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
54 # Define CONFIG_H to the appropriate config.h for the system;
11766
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
55 #
11937
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
56 !ifdef PROCESSOR_ARCHITECTURE
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
57 # We're on Windows NT
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
58 CPU = $(PROCESSOR_ARCHITECTURE)
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
59 CONFIG_H = config.nt
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
60 OS_TYPE = winnt
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
61 ! if "$(PROCESSOR_ARCHITECTURE)" == "x86"
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
62 ARCH = i386
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
63 CPU = i386
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
64 ! else
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
65 ! if "$(PROCESSOR_ARCHITECTURE)" == "MIPS"
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
66 ARCH = mips
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
67 ! else
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
68 ! if "$(PROCESSOR_ARCHITECTURE)" == "ALPHA"
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
69 ARCH = alpha
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
70 ! else
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
71 ! if "$(PROCESSOR_ARCHITECTURE)" == "PPC"
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
72 ARCH = ppc
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
73 ! else
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
74 !error Unknown architecture type "$(PROCESSOR_ARCHITECTURE)"
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
75 ! endif
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
76 ! endif
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
77 ! endif
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
78 ! endif
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
79 !else
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
80 # We're on Windows 95
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
81 ARCH = i386
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
82 CPU = i386
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
83 CONFIG_H = config.w95
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
84 OS_TYPE = win95
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
85 !endif
11766
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
86
11937
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
87 # Include ntwin32.mak. So far, this file seems to be supported by every
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
88 # Microsoft compiler on NT and Win95 and properly defines the executable
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
89 # names and libraries necessary to build Emacs. I do not have access
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
90 # to any other vendor compilers, so I do not know if they supply this
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
91 # file, too. For now I'll assume that they do.
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
92 #
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
93 !include <ntwin32.mak>
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
94
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
95 # Using cvtres is necessary on NT 3.10 and doesn't hurt on later platforms.
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
96 CVTRES = cvtres.exe
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
97 AR = $(implib)
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
98 # The assignment $(CC) = $(cc) fails even though variables are case sensitive.
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
99 LINK_TMP = $(link)
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
100 LINK = $(LINK_TMP)
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
101 CC_TMP = $(cc)
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
102 CC = $(CC_TMP)
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
103
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
104 # advapi32.lib is left off of $(baselibs) on NT 3.10
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
105 !if "$(baselibs)" == "kernel32.lib "
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
106 ADVAPI32 = advapi32.lib
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
107 !else
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
108 ADVAPI32 =
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
109 !endif
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
110
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
111 # Older ntwin32.mak files do not define libc; do it for them.
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
112 !ifndef libc
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
113 libc = libc.lib
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
114 !endif
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
115
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
116 # The base libraries for compiling Emacs on NT. With MSVC, this should
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
117 # include oldnames.lib.
12237
f5ad41d728d3 (MSVCNT11): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 12180
diff changeset
118 !if $(MSVCNT11)
f5ad41d728d3 (MSVCNT11): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 12180
diff changeset
119 BASE_LIBS = $(libc) $(baselibs) oldnames.lib
f5ad41d728d3 (MSVCNT11): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 12180
diff changeset
120 !else
11937
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
121 BASE_LIBS = $(libc) $(baselibs)
12237
f5ad41d728d3 (MSVCNT11): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 12180
diff changeset
122 !endif
11937
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
123
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
124 # We want any debugging info in the executable.
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
125 !if "$(LINK)" == "link32"
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
126 SYS_LDFLAGS =
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
127 !else
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
128 SYS_LDFLAGS = -pdb:none -release -incremental:no
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
129 !endif
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
130
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
131 INC = -I.
12237
f5ad41d728d3 (MSVCNT11): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 12180
diff changeset
132 CFLAGS_COMMON = -nologo $(INC) $(ARCH_CFLAGS) $(LOCAL_FLAGS) -DWIN32_LEAN_AND_MEAN -D$(ARCH)
f5ad41d728d3 (MSVCNT11): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 12180
diff changeset
133 !if $(MSVCNT11)
f5ad41d728d3 (MSVCNT11): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 12180
diff changeset
134 CFLAGS = $(CFLAGS_COMMON) -D_CRTAPI1=_cdecl
f5ad41d728d3 (MSVCNT11): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 12180
diff changeset
135 !else
f5ad41d728d3 (MSVCNT11): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 12180
diff changeset
136 CFLAGS = $(CFLAGS_COMMON)
f5ad41d728d3 (MSVCNT11): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 12180
diff changeset
137 !endif
13436
d464ad2ab385 (NTGUI): New macro.
Geoff Voelker <voelker@cs.washington.edu>
parents: 12237
diff changeset
138 !ifdef NTGUI
d464ad2ab385 (NTGUI): New macro.
Geoff Voelker <voelker@cs.washington.edu>
parents: 12237
diff changeset
139 CFLAGS = $(CFLAGS) -DHAVE_NTGUI=1
d464ad2ab385 (NTGUI): New macro.
Geoff Voelker <voelker@cs.washington.edu>
parents: 12237
diff changeset
140 !endif
11766
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
141
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
142 OBJDIR = obj
11937
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
143 $(OBJDIR):; -mkdir $(OBJDIR)
11766
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
144 BLD = $(OBJDIR)\$(ARCH)
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
145 $(BLD): $(OBJDIR)
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
146 -mkdir $(BLD)
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
147
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
148 CP = copy
13629
47dcb4f14efb (CP_DIR): Use platform independent switches for xcopy.
Geoff Voelker <voelker@cs.washington.edu>
parents: 13436
diff changeset
149 CP_DIR = xcopy /f/r/i/e/d
11766
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
150
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
151 # This is completely braindamaged, but it's the only routine known to be there
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
152 DEL_TREE = echo y | rmdir /s
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
153
12180
268be0c80ca2 makefile.def (EMACS_ICON_PATH,ADDPM): Defined.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11937
diff changeset
154 # The location of the icon file
268be0c80ca2 makefile.def (EMACS_ICON_PATH,ADDPM): Defined.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11937
diff changeset
155 EMACS_ICON_PATH = ..\nt\emacs.ico
268be0c80ca2 makefile.def (EMACS_ICON_PATH,ADDPM): Defined.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11937
diff changeset
156
268be0c80ca2 makefile.def (EMACS_ICON_PATH,ADDPM): Defined.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11937
diff changeset
157 # Lets us add icons to the GNU Emacs folder
268be0c80ca2 makefile.def (EMACS_ICON_PATH,ADDPM): Defined.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11937
diff changeset
158 ADDPM = ..\nt\$(BLD)\addpm.exe
268be0c80ca2 makefile.def (EMACS_ICON_PATH,ADDPM): Defined.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11937
diff changeset
159
11937
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
160 !if "$(ARCH)" == "i386"
11766
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
161 ARCH_CFLAGS = -nologo -D_X86_=1 -c -Zel -W2 -H63 -G3d -Zi -Od
11937
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
162 ARCH_LDFLAGS = -align:0x1000 $(SYS_LDFLAGS)
11766
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
163
11937
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
164 !else
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
165 !if "$(ARCH)" == "mips"
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
166 ARCH_CFLAGS = -D_MIPS_=1 -c -W2 -Zi -Od -Gt0
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
167 ARCH_LDFLAGS = -align:0x1000 $(SYS_LDFLAGS)
11766
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
168
11937
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
169 !else
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
170 !if "$(ARCH)" == "alpha"
11766
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
171 ARCH_CFLAGS = -D_ALPHA_=1 -c -Ze -Zi -W2 -D__stdcall= -D__cdecl=
11937
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
172 ARCH_LDFLAGS = -align:0x2000 $(SYS_LDFLAGS)
11766
1877e9736ea1 removed ^Ms
Geoff Voelker <voelker@cs.washington.edu>
parents: 11740
diff changeset
173
11937
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
174 !else
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
175 !if "$(ARCH)" == "ppc"
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
176 # These flags are a guess...if they don't work, please send me mail.
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
177 ARCH_CFLAGS = -D_PPC_=1 -c -Ze -Zi -W2 -Od
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
178 ARCH_LDFLAGS = -align:0x1000 $(SYS_LDFLAGS)
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
179
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
180 !else
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
181 !ERROR Unknown architecture type "$(ARCH)".
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
182 !endif
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
183 !endif
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
184 !endif
51cb98d13316 (ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents: 11766
diff changeset
185 !endif