4 WIN32DIR
= $(srcdir)/win32
5 !elseif
"$(WIN32DIR)" == "win32"
7 !elseif
"$(WIN32DIR)" == "$(WIN32DIR:/win32=)/win32"
8 srcdir = $(WIN32DIR
:/win32
=)
10 srcdir = $(WIN32DIR
)/..
18 APPEND
= echo
>>$(MAKEFILE
)
20 MAKE
= $(MAKE
) -f
$(MAKEFILE
)
24 ARCH
= PROCESSOR_ARCHITECTURE
28 all: -prologue-
-generic-
-epilogue-
29 i386-
$(OS
): -prologue-
-i386-
-epilogue-
30 i486-
$(OS
): -prologue-
-i486-
-epilogue-
31 i586-
$(OS
): -prologue-
-i586-
-epilogue-
32 i686-
$(OS
): -prologue-
-i686-
-epilogue-
33 alpha-
$(OS
): -prologue-
-alpha-
-epilogue-
36 mips-hpc2k-wince
: -prologue-
-mips-
-hpc2k-
-epilogue-
37 mips-ppc-wince
: -prologue-
-mips-
-ppc-
-epilogue-
38 mips-hpcpro-wince
: -prologue-
-mips-
-hpcpro-
-epilogue-
39 arm-hpc2k-wince
: -prologue-
-arm-
-hpc2k-
-epilogue-
40 arm-ppc-wince
: -prologue-
-arm-
-ppc-
-epilogue-
41 arm-hpcpro-wince
: -prologue-
-arm-
-hpcpro-
-epilogue-
42 sh3-ppc-wince
: -prologue-
-sh3-
-ppc-
-epilogue-
43 sh3-hpcpro-wince
: -prologue-
-sh3-
-hpcpro-
-epilogue-
44 sh4-hpcpro-wince
: -prologue-
-sh4-
-hpcpro-
-epilogue-
45 armv4-.net41-wince
: -prologue-
-armv4-
-.net41-
-epilogue-
46 armv4t-.net41-wince
: -prologue-
-armv4t-
-.net41-
-epilogue-
47 armv4i-sig3-wince
: -prologue-
-armv4i-
-sig3-
-epilogue-
50 @type
<< > $(MAKEFILE
)
51 ### Makefile for ruby $(OS) ###
52 srcdir = $(srcdir:\
=/)
53 prefix = $(prefix:\
=/)
54 EXTSTATIC
= $(EXTSTATIC
)
55 !if defined
(RDOCTARGET
)
56 RDOCTARGET
= $(RDOCTARGET
)
62 BASERUBY
= $(BASERUBY
)
65 @
$(CPP
) -I
$(srcdir) <<"Creating $(MAKEFILE)" >> $(MAKEFILE
)
66 #define RUBY_REVISION 0
68 MAJOR
= RUBY_VERSION_MAJOR
69 MINOR
= RUBY_VERSION_MINOR
70 TEENY
= RUBY_VERSION_TEENY
75 !if defined
($(ARCH
)) || defined
($(CPU
))
76 @type
<< >>$(MAKEFILE
)
78 $(ARCH
) = $(PROCESSOR_ARCHITECTURE
)
81 $(CPU
) = $(PROCESSOR_LEVEL
)
88 @
$(APPEND
) $(ARCH
) = alpha
90 @
$(APPEND
) $(ARCH
) = x86
102 -mips-
-arm-
-sh3-
-sh4-
::
103 @
$(APPEND
) $(ARCH
) = $(@
:-=)
105 @
$(APPEND
) CC
= cl
$(@
:-=)
109 @
$(APPEND
) CC
= clarm
110 @
$(APPEND
) ARCHFOLDER
= $(@
:-=)
112 @
$(APPEND
) CC
= clthumb
113 @
$(APPEND
) ARCHFOLDER
= $(@
:-=)
116 @
$(APPEND
) CECPUDEF
= -DARM
-D_ARM_
118 @
$(APPEND
) CECPUDEF
= -DMIPS
-D_MIPS_
120 @
$(APPEND
) CECPUDEF
= -DSHx
-DSH3
-D_SH3_
122 @
$(APPEND
) CECPUDEF
= -DSHx
-DSH4
-D_SH4_
123 @
$(APPEND
) QSH4
= -Qsh4
125 @
$(APPEND
) CECPUDEF
= -DARM
-D_ARM_
-DARMV4
126 @
$(APPEND
) $(ARCH
) = ARM
128 @
$(APPEND
) CECPUDEF
= -DARM
-D_ARM_
-DARMV4T
-DTHUMB
-D_THUMB_
129 @
$(APPEND
) $(ARCH
) = THUMB
133 -ppc-
: "-MS Pocket PC-"
134 -hpcpro2-
: "-MS HPC Pro-"
135 -hpcpro-
: "-MS HPC Pro--"
138 @type
<< >>$(MAKEFILE
)
144 @type
<< >>$(MAKEFILE
)
146 CE_TOOLS_DIR
= $(CE_TOOLS_DIR
)
148 !ifdef EMBEDDED_TOOLS_DIR
149 EMBEDDED_TOOLS_DIR
= $(EMBEDDED_TOOLS_DIR
)
157 @type
<< >>$(MAKEFILE
)
159 CE_TOOLS4_DIR
= $(CE_TOOLS4_DIR
)
161 !ifdef EMBEDDED_TOOLS4_DIR
162 EMBEDDED_TOOLS4_DIR
= $(EMBEDDED_TOOLS4_DIR
)
170 -mswince-3.00
-mswince-2.11
: -mswince-
171 @type
<< >>$(MAKEFILE
)
172 SUBSYSVERSION
= $(@
:-mswince-
=)
173 PATH
= $$(EMBEDDED_TOOLS_DIR
)/common
/evc
/bin
;$$(EMBEDDED_TOOLS_DIR
)/EVC
/WCE
$$(SUBSYSVERSION
:.
=)/bin
176 -mswince-4.10
: -mswince4-
177 @type
<< >>$(MAKEFILE
)
178 SUBSYSVERSION
= $(@
:-mswince-
=)
180 PATH
= $$(EMBEDDED_TOOLS4_DIR
)/common
/evc
/bin
;$$(EMBEDDED_TOOLS4_DIR
)/EVC
/WCE
$$(SUBSYSVERSION
:.
=)/bin
183 -hpc2000-
"-MS Pocket PC-": -mswince-3.00
184 "-MS HPC Pro-" "-MS HPC Pro--": -mswince-2.11
185 -.net41-
-sig3-
: -mswince-4.10
188 @type
<< >>$(MAKEFILE
)
189 SUBSYSTEM
= windowsce
,3.0
190 INCLUDE
= $$(CE_TOOLS_DIR
)/wce
$$(SUBSYSVERSION
:.
=)/$(@
:-=)/include
191 LIB
= $$(CE_TOOLS_DIR
)/wce
$$(SUBSYSVERSION
:.
=)/$(@
:-=)/lib
/$$(PROCESSOR_ARCHITECTURE
)
195 @type
<< >>$(MAKEFILE
)
196 SUBSYSTEM
= windowsce
,3.0
197 INCLUDE
= $$(CE_TOOLS_DIR
)/wce
$$(SUBSYSVERSION
:.
=)/MS Pocket PC
/include
198 LIB
= $$(CE_TOOLS_DIR
)/wce
$$(SUBSYSVERSION
:.
=)/MS Pocket PC
/lib
/$$(PROCESSOR_ARCHITECTURE
)
203 @type
<< >>$(MAKEFILE
)
204 SUBSYSTEM
= windowsce
,2.11
205 INCLUDE
= $$(CE_TOOLS_DIR
)/wce
$$(SUBSYSVERSION
:.
=)/MS HPC Pro
/include
206 LIB
= $$(CE_TOOLS_DIR
)/wce
$$(SUBSYSVERSION
:.
=)/MS HPC Pro
/lib
/$$(PROCESSOR_ARCHITECTURE
)
210 @type
<< >>$(MAKEFILE
)
211 SUBSYSTEM
= windowsce
,4.1
212 INCLUDE
= $$(CE_TOOLS4_DIR
)/wce400
/STANDARDSDK
/include/$$(ARCHFOLDER
)
213 LIB
= $$(CE_TOOLS4_DIR
)/wce400
/STANDARDSDK
/lib
/$$(ARCHFOLDER
)
217 @type
<< >>$(MAKEFILE
)
218 SUBSYSTEM
= windowsce
,4.1
219 INCLUDE
= $$(CE_TOOLS4_DIR
)/wce410
/sigmarionIII SDK
/include/$$(ARCHFOLDER
)
220 LIB
= $$(CE_TOOLS4_DIR
)/wce410
/sigmarionIII SDK
/lib
/$$(ARCHFOLDER
)
226 @
$(MAKE
) -l
-f
$(srcdir)/win32
/enc-setup.mak
srcdir="$(srcdir)" MAKEFILE
=$(MAKEFILE
)
229 @type
<< >>$(MAKEFILE
)
230 !ifdef RUBY_INSTALL_NAME
231 RUBY_INSTALL_NAME
= $(RUBY_INSTALL_NAME
)
232 !else ifdef RUBY_SUFFIX
233 RUBY_INSTALL_NAME
= ruby
$(RUBY_SUFFIX
)
236 RUBY_SO_NAME
= $(RUBY_SO_NAME
)
238 # RUBY_SO_NAME = $$(RT)-$$(RUBY_INSTALL_NAME)$$(MAJOR)$$(MINOR)
240 # CFLAGS = -nologo $$(DEBUGFLAGS) $$(OPTFLAGS) $$(PROCESSOR_FLAG)
241 CPPFLAGS
= -I.
-I
$$(srcdir) -I
$$(srcdir)/missing
-I
$$(srcdir)/wince \
242 $$(CECPUDEF
) -DUNDER_CE
-D_WIN32_WCE
=$$(SUBSYSVERSION
:.
=) \
243 -DFILENAME_MAX
=MAX_PATH
-DTLS_OUT_OF_INDEXES
=0xFFFFFFFF \
244 -DBUFSIZ
=512 -D_UNICODE
-DUNICODE
$$(QSH4
)
245 # STACK = 0x10000,0x1000
246 # LDFLAGS = $$(CFLAGS) -Fm
251 $(INCLUDE
) $$(srcdir)/wince
/Makefile.sub
253 @
$(srcdir:/=\
)\win32
\rm.bat config.h config.status
254 @echo type
`$(MAKE)' to make ruby for $(OS).