4 bcc32dir
= $(srcdir)/bcc32
5 !elseif
"$(bcc32dir)" == "bcc32/"
7 !elseif
"$(bcc32dir:/bcc32/=)/bcc32/" == "$(bcc32dir)"
8 srcdir = $(bcc32dir
:/bcc32
/=)
10 srcdir = $(bcc32dir
)/..
18 APPEND
= echo.
>>$(MAKEFILE
)
20 MAKE
= $(MAKE
) -f
$(MAKEFILE
)
26 Makefile
: -prologue-
-generic-
-epilogue-
27 i386-
$(OS
): -prologue-
-i386-
-epilogue-
28 i486-
$(OS
): -prologue-
-i486-
-epilogue-
29 i586-
$(OS
): -prologue-
-i586-
-epilogue-
30 i686-
$(OS
): -prologue-
-i686-
-epilogue-
31 alpha-
$(OS
): -prologue-
-alpha-
-epilogue-
33 -prologue-
: -basic-vars-
-version-
-system-vars-
36 @echo Creating
$(MAKEFILE
)
37 @type
> $(MAKEFILE
) &&|
38 \
#\#\# Makefile for ruby $(OS) \#\#\#
40 srcdir = $(srcdir:\
=/)
43 prefix = $(prefix:\
=/)
45 $(BANG
)if
!defined
(BASERUBY
)
47 BASERUBY
= $(BASERUBY
)
50 !if
!defined
(BASERUBY
)
51 @for
%I in
(ruby.exe
) do @echo BASERUBY
= "%~$$PATH:I" >> $(MAKEFILE
)
53 @type
>> $(MAKEFILE
) &&|
56 !if exist
(confargs.mk
)
57 @type confargs.mk
>> $(MAKEFILE
)
61 -system-vars-
: -runtime-
-bormm-
64 @
-ilink32
-q
-Gn
-x usebormm.lib
> nul
65 @
-if exist usebormm.tds
$(APPEND
) MEMLIB
= usebormm.lib
66 @if exist usebormm.
* del usebormm.
*
69 @echo OS
= >>$(MAKEFILE
)
74 int main
(){printf
("");return
0;}
76 bcc32 conftest.c cw32i.lib
> nul
77 tdump conftest.exe
< nul
> conftest.i
78 grep
"^Imports from CC" conftest.i
> conftest.c
79 cpp32
-P-
-DFile
=\
# -DImports=RTNAME -Dfrom== conftest.c > nul
80 $(MAKE
) > nul
-DBANG
=$(BANG
) -f
&&|
82 $(BANG
)include conftest.i
87 $(BANG
)if
"$$(OS)" == "50"
88 echo OS
= bccwin32
>> $(MAKEFILE
)
90 echo OS
= bccwin32_
$$(OS
) >> $(MAKEFILE
)
93 @echo RT
= $$(OS
) >> $(MAKEFILE
)
96 @cpp32
-I
$(srcdir) -P-
-o
$(MAKEFILE
) > nul
&&|
97 \
#define RUBY_REVISION 0
99 MAJOR
= RUBY_VERSION_MAJOR
100 MINOR
= RUBY_VERSION_MINOR
101 TEENY
= RUBY_VERSION_TEENY
103 BORLANDC
= __BORLANDC__
105 @
$(MAKE
) > nul
-DBANG
=$(BANG
) -f
&&,
107 $(BANG
)include $(MAKEFILE
)
108 $(BANG
)include $(MAKEFILE
).i
111 @type
>> $(MAKEFILE
) &&|
115 BORLANDC
= $$(BORLANDC
)
120 !if defined
(PROCESSOR_ARCHITECTURE
) || defined
(PROCESSOR_LEVEL
)
121 @type
>> $(MAKEFILE
) &&|
122 !if defined
(PROCESSOR_ARCHITECTURE
)
123 $(BANG
)ifndef PROCESSOR_ARCHITECTURE
124 PROCESSOR_ARCHITECTURE
= $(PROCESSOR_ARCHITECTURE
)
127 !if defined
(PROCESSOR_LEVEL
)
128 $(BANG
)ifndef PROCESSOR_LEVEL
129 PROCESSOR_LEVEL
= $(PROCESSOR_LEVEL
)
136 @
$(APPEND
) !ifndef PROCESSOR_ARCHITECTURE
137 @
$(APPEND
) PROCESSOR_ARCHITECTURE
= alpha
140 @
$(APPEND
) !ifndef PROCESSOR_ARCHITECTURE
141 @
$(APPEND
) PROCESSOR_ARCHITECTURE
= x86
145 @
$(APPEND
) !ifndef PROCESSOR_LEVEL
146 @
$(APPEND
) PROCESSOR_LEVEL
= 3
149 @
$(APPEND
) !ifndef PROCESSOR_LEVEL
150 @
$(APPEND
) PROCESSOR_LEVEL
= 4
153 @
$(APPEND
) !ifndef PROCESSOR_LEVEL
154 @
$(APPEND
) PROCESSOR_LEVEL
= 5
157 @
$(APPEND
) !ifndef PROCESSOR_LEVEL
158 @
$(APPEND
) PROCESSOR_LEVEL
= 6
164 @
$(MAKE
) -f
$(srcdir)/win32
/enc-setup.mak
srcdir="$(srcdir)" MAKEFILE
=$(MAKEFILE
)
167 @type
>> $(MAKEFILE
) &&|
169 \
# RUBY_INSTALL_NAME = ruby
170 \
# RUBY_SO_NAME = $$(RT)-$$(RUBY_INSTALL_NAME)$$(MAJOR)$$(MINOR)
171 \
# CFLAGS = -q $$(DEBUGFLAGS) $$(OPTFLAGS) $$(PROCESSOR_FLAG) -w- -wsus -wcpt -wdup -wext -wrng -wrpt -wzdi
172 \
# CPPFLAGS = -I. -I$$(srcdir) -I$$(srcdir)/missing -DLIBRUBY_SO=\"$$(LIBRUBY_SO)\"
174 \
# LDFLAGS = -S:$$(STACK)
175 \
# RFLAGS = $$(iconinc)
176 \
# EXTLIBS = cw32.lib import32.lib user32.lib kernel32.lib
177 $(BANG
)include $$(srcdir)/bcc32
/Makefile.sub
179 @echo type
"`$(MAKE)'" to make ruby for
$(OS
).