Mercurial > emacs
annotate nt/makefile.def @ 18309:bd8b521f5218
Provide XXX-util instead of
language/XXX-util. Delete local variable declartion.
Delete the code of calling register-input-method form
all files under this directory.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Wed, 18 Jun 1997 13:06:17 +0000 |
parents | edebdaa8e499 |
children | c0ff94156cb9 |
rev | line source |
---|---|
11766 | 1 # |
2 # Makefile definition file for building GNU Emacs on Windows NT | |
3 # | |
4 # GNU Emacs is free software; you can redistribute it and/or modify | |
5 # it under the terms of the GNU General Public License as published by | |
6 # the Free Software Foundation; either version 2, or (at your option) | |
7 # any later version. | |
8 # | |
9 # GNU Emacs is distributed in the hope that it will be useful, | |
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 # GNU General Public License for more details. | |
13 # | |
14 # You should have received a copy of the GNU General Public License | |
15 # along with GNU Emacs; see the file COPYING. If not, write to | |
14185
aba3b91c8b3d
Update FSF's ddress in preamble
Erik Naggum <erik@naggum.no>
parents:
13629
diff
changeset
|
16 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
aba3b91c8b3d
Update FSF's ddress in preamble
Erik Naggum <erik@naggum.no>
parents:
13629
diff
changeset
|
17 # Boston, MA 02111-1307, USA. |
11766 | 18 # |
19 # Geoff Voelker (voelker@cs.washington.edu) 9-6-94 | |
20 | |
21 # | |
22 # BEGIN CONFIGURATION | |
23 # | |
24 | |
13436
d464ad2ab385
(NTGUI): New macro.
Geoff Voelker <voelker@cs.washington.edu>
parents:
12237
diff
changeset
|
25 # Define the following to build the GUI version |
d464ad2ab385
(NTGUI): New macro.
Geoff Voelker <voelker@cs.washington.edu>
parents:
12237
diff
changeset
|
26 # |
d464ad2ab385
(NTGUI): New macro.
Geoff Voelker <voelker@cs.washington.edu>
parents:
12237
diff
changeset
|
27 NTGUI=1 |
d464ad2ab385
(NTGUI): New macro.
Geoff Voelker <voelker@cs.washington.edu>
parents:
12237
diff
changeset
|
28 |
11937
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
29 # Set INSTALL_DIR to be the directory into which you want emacs installed. |
11766 | 30 # |
11937
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
31 !ifndef INSTALL_DIR |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
32 INSTALL_DIR = C:\emacs |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
33 !endif |
11766 | 34 |
12237 | 35 # Define MSVCNT11 to be nonzero if you are using the MSVCNT 1.1 environment. |
36 # MSVCNT11 = 1 | |
37 MSVCNT11 = 0 | |
38 | |
11766 | 39 # |
40 # END CONFIGURATION | |
41 # | |
11937
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
42 |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
43 # Check that the INCLUDE and LIB environment variables are set. |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
44 # |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
45 !ifndef INCLUDE |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
46 !error The INCLUDE environment variable needs to be set. |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
47 !endif |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
48 !ifndef LIB |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
49 !error The LIB environment variable needs to be set. |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
50 !endif |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
51 |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
52 # Determine the architecture we're running on. |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
53 # Define ARCH for our purposes; |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
54 # Define CPU for use by ntwin32.mak; |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
55 # Define CONFIG_H to the appropriate config.h for the system; |
11766 | 56 # |
11937
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
57 !ifdef PROCESSOR_ARCHITECTURE |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
58 # We're on Windows NT |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
59 CPU = $(PROCESSOR_ARCHITECTURE) |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
60 CONFIG_H = config.nt |
16882
edebdaa8e499
Use windows95 and windowsnt instead
Geoff Voelker <voelker@cs.washington.edu>
parents:
15156
diff
changeset
|
61 OS_TYPE = windowsnt |
11937
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
62 ! if "$(PROCESSOR_ARCHITECTURE)" == "x86" |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
63 ARCH = i386 |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
64 CPU = i386 |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
65 ! else |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
66 ! if "$(PROCESSOR_ARCHITECTURE)" == "MIPS" |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
67 ARCH = mips |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
68 ! else |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
69 ! if "$(PROCESSOR_ARCHITECTURE)" == "ALPHA" |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
70 ARCH = alpha |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
71 ! else |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
72 ! if "$(PROCESSOR_ARCHITECTURE)" == "PPC" |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
73 ARCH = ppc |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
74 ! else |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
75 !error Unknown architecture type "$(PROCESSOR_ARCHITECTURE)" |
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 ! endif |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
80 !else |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
81 # We're on Windows 95 |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
82 ARCH = i386 |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
83 CPU = i386 |
15132
c89db56c289b
(CONFIG_H) [WIN95]: Use config.nt.
Geoff Voelker <voelker@cs.washington.edu>
parents:
14900
diff
changeset
|
84 CONFIG_H = config.nt |
16882
edebdaa8e499
Use windows95 and windowsnt instead
Geoff Voelker <voelker@cs.washington.edu>
parents:
15156
diff
changeset
|
85 OS_TYPE = windows95 |
11937
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
86 !endif |
11766 | 87 |
11937
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
88 # Include ntwin32.mak. So far, this file seems to be supported by every |
16882
edebdaa8e499
Use windows95 and windowsnt instead
Geoff Voelker <voelker@cs.washington.edu>
parents:
15156
diff
changeset
|
89 # Microsoft compiler on NT and Windows 95 and properly defines the executable |
11937
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
90 # 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
|
91 # 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
|
92 # file, too. For now I'll assume that they do. |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
93 # |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
94 !include <ntwin32.mak> |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
95 |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
96 # 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
|
97 CVTRES = cvtres.exe |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
98 AR = $(implib) |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
99 # 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
|
100 LINK_TMP = $(link) |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
101 LINK = $(LINK_TMP) |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
102 CC_TMP = $(cc) |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
103 CC = $(CC_TMP) |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
104 |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
105 # 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
|
106 !if "$(baselibs)" == "kernel32.lib " |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
107 ADVAPI32 = advapi32.lib |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
108 !else |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
109 ADVAPI32 = |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
110 !endif |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
111 |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
112 # 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
|
113 !ifndef libc |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
114 libc = libc.lib |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
115 !endif |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
116 |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
117 # 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
|
118 # include oldnames.lib. |
12237 | 119 !if $(MSVCNT11) |
120 BASE_LIBS = $(libc) $(baselibs) oldnames.lib | |
121 !else | |
11937
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
122 BASE_LIBS = $(libc) $(baselibs) |
12237 | 123 !endif |
11937
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
124 |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
125 # We want any debugging info in the executable. |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
126 !if "$(LINK)" == "link32" |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
127 SYS_LDFLAGS = |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
128 !else |
14900
a51ddd17cdc4
(DEL): Defined.
Geoff Voelker <voelker@cs.washington.edu>
parents:
14185
diff
changeset
|
129 SYS_LDFLAGS = -pdb:none -release -incremental:no -version:3.10 |
11937
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
130 !endif |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
131 |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
132 INC = -I. |
12237 | 133 CFLAGS_COMMON = -nologo $(INC) $(ARCH_CFLAGS) $(LOCAL_FLAGS) -DWIN32_LEAN_AND_MEAN -D$(ARCH) |
134 !if $(MSVCNT11) | |
135 CFLAGS = $(CFLAGS_COMMON) -D_CRTAPI1=_cdecl | |
136 !else | |
137 CFLAGS = $(CFLAGS_COMMON) | |
138 !endif | |
13436
d464ad2ab385
(NTGUI): New macro.
Geoff Voelker <voelker@cs.washington.edu>
parents:
12237
diff
changeset
|
139 !ifdef NTGUI |
d464ad2ab385
(NTGUI): New macro.
Geoff Voelker <voelker@cs.washington.edu>
parents:
12237
diff
changeset
|
140 CFLAGS = $(CFLAGS) -DHAVE_NTGUI=1 |
d464ad2ab385
(NTGUI): New macro.
Geoff Voelker <voelker@cs.washington.edu>
parents:
12237
diff
changeset
|
141 !endif |
11766 | 142 |
15156
69941576c244
[BUILD_TYPE]: Build optimized version in its own dir.
Geoff Voelker <voelker@cs.washington.edu>
parents:
15132
diff
changeset
|
143 !ifdef BUILD_TYPE |
69941576c244
[BUILD_TYPE]: Build optimized version in its own dir.
Geoff Voelker <voelker@cs.washington.edu>
parents:
15132
diff
changeset
|
144 OBJDIR = obj-$(BUILD_TYPE) |
69941576c244
[BUILD_TYPE]: Build optimized version in its own dir.
Geoff Voelker <voelker@cs.washington.edu>
parents:
15132
diff
changeset
|
145 !else |
11766 | 146 OBJDIR = obj |
15156
69941576c244
[BUILD_TYPE]: Build optimized version in its own dir.
Geoff Voelker <voelker@cs.washington.edu>
parents:
15132
diff
changeset
|
147 !endif |
11937
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
148 $(OBJDIR):; -mkdir $(OBJDIR) |
11766 | 149 BLD = $(OBJDIR)\$(ARCH) |
150 $(BLD): $(OBJDIR) | |
151 -mkdir $(BLD) | |
152 | |
153 CP = copy | |
13629
47dcb4f14efb
(CP_DIR): Use platform independent switches for xcopy.
Geoff Voelker <voelker@cs.washington.edu>
parents:
13436
diff
changeset
|
154 CP_DIR = xcopy /f/r/i/e/d |
11766 | 155 |
16882
edebdaa8e499
Use windows95 and windowsnt instead
Geoff Voelker <voelker@cs.washington.edu>
parents:
15156
diff
changeset
|
156 !if "$(OS_TYPE)" == "windows95" |
14900
a51ddd17cdc4
(DEL): Defined.
Geoff Voelker <voelker@cs.washington.edu>
parents:
14185
diff
changeset
|
157 DEL = deltree /y |
a51ddd17cdc4
(DEL): Defined.
Geoff Voelker <voelker@cs.washington.edu>
parents:
14185
diff
changeset
|
158 DEL_TREE = deltree /y |
a51ddd17cdc4
(DEL): Defined.
Geoff Voelker <voelker@cs.washington.edu>
parents:
14185
diff
changeset
|
159 !else |
a51ddd17cdc4
(DEL): Defined.
Geoff Voelker <voelker@cs.washington.edu>
parents:
14185
diff
changeset
|
160 DEL = del |
11766 | 161 # This is completely braindamaged, but it's the only routine known to be there |
162 DEL_TREE = echo y | rmdir /s | |
14900
a51ddd17cdc4
(DEL): Defined.
Geoff Voelker <voelker@cs.washington.edu>
parents:
14185
diff
changeset
|
163 !endif |
11766 | 164 |
12180
268be0c80ca2
makefile.def (EMACS_ICON_PATH,ADDPM): Defined.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11937
diff
changeset
|
165 # The location of the icon file |
268be0c80ca2
makefile.def (EMACS_ICON_PATH,ADDPM): Defined.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11937
diff
changeset
|
166 EMACS_ICON_PATH = ..\nt\emacs.ico |
268be0c80ca2
makefile.def (EMACS_ICON_PATH,ADDPM): Defined.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11937
diff
changeset
|
167 |
268be0c80ca2
makefile.def (EMACS_ICON_PATH,ADDPM): Defined.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11937
diff
changeset
|
168 # 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
|
169 ADDPM = ..\nt\$(BLD)\addpm.exe |
268be0c80ca2
makefile.def (EMACS_ICON_PATH,ADDPM): Defined.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11937
diff
changeset
|
170 |
11937
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
171 !if "$(ARCH)" == "i386" |
15156
69941576c244
[BUILD_TYPE]: Build optimized version in its own dir.
Geoff Voelker <voelker@cs.washington.edu>
parents:
15132
diff
changeset
|
172 !if "$(BUILD_TYPE)" == "spd" |
69941576c244
[BUILD_TYPE]: Build optimized version in its own dir.
Geoff Voelker <voelker@cs.washington.edu>
parents:
15132
diff
changeset
|
173 ARCH_CFLAGS = -nologo -D_X86_=1 -c -Zel -W2 -H63 -O2b2 -G5d -Zi |
69941576c244
[BUILD_TYPE]: Build optimized version in its own dir.
Geoff Voelker <voelker@cs.washington.edu>
parents:
15132
diff
changeset
|
174 !else |
11766 | 175 ARCH_CFLAGS = -nologo -D_X86_=1 -c -Zel -W2 -H63 -G3d -Zi -Od |
15156
69941576c244
[BUILD_TYPE]: Build optimized version in its own dir.
Geoff Voelker <voelker@cs.washington.edu>
parents:
15132
diff
changeset
|
176 !endif |
11937
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
177 ARCH_LDFLAGS = -align:0x1000 $(SYS_LDFLAGS) |
11766 | 178 |
11937
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
179 !else |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
180 !if "$(ARCH)" == "mips" |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
181 ARCH_CFLAGS = -D_MIPS_=1 -c -W2 -Zi -Od -Gt0 |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
182 ARCH_LDFLAGS = -align:0x1000 $(SYS_LDFLAGS) |
11766 | 183 |
11937
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
184 !else |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
185 !if "$(ARCH)" == "alpha" |
11766 | 186 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
|
187 ARCH_LDFLAGS = -align:0x2000 $(SYS_LDFLAGS) |
11766 | 188 |
11937
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
189 !else |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
190 !if "$(ARCH)" == "ppc" |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
191 # 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
|
192 ARCH_CFLAGS = -D_PPC_=1 -c -Ze -Zi -W2 -Od |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
193 ARCH_LDFLAGS = -align:0x1000 $(SYS_LDFLAGS) |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
194 |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
195 !else |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
196 !ERROR Unknown architecture type "$(ARCH)". |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
197 !endif |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
198 !endif |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
199 !endif |
51cb98d13316
(ARCH): New definition.
Geoff Voelker <voelker@cs.washington.edu>
parents:
11766
diff
changeset
|
200 !endif |