Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 210 lines (173 sloc) 5.364 kb
99d0354 Initial revision
matz authored
1 SHELL = /bin/sh
4056fb6 @nobu * Makefile.in, common.mk (NULLCMD): moved for platforms that empty
nobu authored
2 NULLCMD = :
99d0354 Initial revision
matz authored
3
4 #### Start of system configuration section. ####
5
6 srcdir = @srcdir@
8884ab5 matz - nakada win32 patch
matz authored
7 VPATH = $(srcdir):$(srcdir)/missing
99d0354 Initial revision
matz authored
8
9 CC = @CC@
10 YACC = @YACC@
11 PURIFY =
a2af08d This commit was generated by cvs2svn to compensate for changes in r372,
matz authored
12 AUTOCONF = autoconf
99d0354 Initial revision
matz authored
13 @SET_MAKE@
71d5fc5 @nobu * Makefile.in, */Makefile.sub, */configure.bat, cygwin/GNUmakefile.in,
nobu authored
14 MKFILES = @MAKEFILES@
99d0354 Initial revision
matz authored
15
a2af08d This commit was generated by cvs2svn to compensate for changes in r372,
matz authored
16 prefix = @prefix@
0243b2c @nobu * configure.in (XCFLAGS): CFLAGS to comile ruby itself.
nobu authored
17 exec_prefix = @exec_prefix@
18 bindir = @bindir@
19 sbindir = @sbindir@
20 libdir = @libdir@
21 libexecdir = @libexecdir@
976ac4d @nobu * Makefile.in, mkconfig.rb: catch-up for latest autoconf.
nobu authored
22 datarootdir = @datarootdir@
71d5fc5 @nobu * Makefile.in, */Makefile.sub, */configure.bat, cygwin/GNUmakefile.in,
nobu authored
23 datadir = @datadir@
0243b2c @nobu * configure.in (XCFLAGS): CFLAGS to comile ruby itself.
nobu authored
24 arch = @arch@
25 sitearch = @sitearch@
26 sitedir = @sitedir@
27
71d5fc5 @nobu * Makefile.in, */Makefile.sub, */configure.bat, cygwin/GNUmakefile.in,
nobu authored
28 TESTUI = console
29 TESTS =
30 RDOCTARGET = @RDOCTARGET@
31
32 EXTOUT = @EXTOUT@
33 RIDATADIR = $(DESTDIR)$(datadir)/ri/$(MAJOR).$(MINOR)/system
34
64cf936 @nobu * Makefile.in (OUTFLAG): keep trailing spaces. [ruby-dev:27666]
nobu authored
35 empty =
36 OUTFLAG = @OUTFLAG@$(empty)
c15d5ad @eban * Makefile.in: add ARCH_FLAG to CFLAGS.
eban authored
37 CFLAGS = @CFLAGS@ @XCFLAGS@ @ARCH_FLAG@
08df734 @knu Merge from ruby_1_8. Add files that have not been added yet.
knu authored
38 cflags = @cflags@
39 optflags = @optflags@
40 debugflags = @debugflags@
c15d5ad @eban * Makefile.in: add ARCH_FLAG to CFLAGS.
eban authored
41 CPPFLAGS = -I. -I$(srcdir) @CPPFLAGS@
99d0354 Initial revision
matz authored
42 LDFLAGS = @STATIC@ $(CFLAGS) @LDFLAGS@
0243b2c @nobu * configure.in (XCFLAGS): CFLAGS to comile ruby itself.
nobu authored
43 EXTLDFLAGS =
44 XLDFLAGS = @XLDFLAGS@ $(EXTLDFLAGS)
a2af08d This commit was generated by cvs2svn to compensate for changes in r372,
matz authored
45 EXTLIBS =
99d0354 Initial revision
matz authored
46 LIBS = @LIBS@ $(EXTLIBS)
47 MISSING = @LIBOBJS@ @ALLOCA@
07bb9f2 1.4.0
matz authored
48 LDSHARED = @LIBRUBY_LDSHARED@
106b79e @eban * Makefile.in: add ARCH_FLAG to DLDFLAGS.
eban authored
49 DLDFLAGS = @LIBRUBY_DLDFLAGS@ $(EXTLDFLAGS) @ARCH_FLAG@
a2af08d This commit was generated by cvs2svn to compensate for changes in r372,
matz authored
50 SOLIBS = @SOLIBS@
c7feda2 @knu * Makefile.in: Introduce MAINLIBS.
knu authored
51 MAINLIBS = @MAINLIBS@
7e1363a @nobu * Makefile.in, configure.in (MINIOBJS): miniruby on HP-UX can not load
nobu authored
52 MINIOBJS = @MINIOBJS@
99d0354 Initial revision
matz authored
53
07bb9f2 1.4.0
matz authored
54 RUBY_INSTALL_NAME=@RUBY_INSTALL_NAME@
ab206c8 @eban eban
eban authored
55 RUBY_SO_NAME=@RUBY_SO_NAME@
07bb9f2 1.4.0
matz authored
56 EXEEXT = @EXEEXT@
57 PROGRAM=$(RUBY_INSTALL_NAME)$(EXEEXT)
0243b2c @nobu * configure.in (XCFLAGS): CFLAGS to comile ruby itself.
nobu authored
58 RUBY = $(RUBY_INSTALL_NAME)
0865b21 @nobu * Makefile.in, win32/Makefile.sub (MINIRUBY): append MINIRUBYOPT.
nobu authored
59 MINIRUBY = @MINIRUBY@ $(MINIRUBYOPT)
09e0bee @nobu * Makefile.in (RUNRUBY): added RUNRUBYOPT.
nobu authored
60 RUNRUBY = @RUNRUBY@ $(RUNRUBYOPT) --
99d0354 Initial revision
matz authored
61
62 #### End of system configuration section. ####
63
07bb9f2 1.4.0
matz authored
64 MAJOR= @MAJOR@
65 MINOR= @MINOR@
66 TEENY= @TEENY@
99d0354 Initial revision
matz authored
67
07bb9f2 1.4.0
matz authored
68 LIBRUBY_A = @LIBRUBY_A@
69 LIBRUBY_SO = @LIBRUBY_SO@
70 LIBRUBY_ALIASES= @LIBRUBY_ALIASES@
a2af08d This commit was generated by cvs2svn to compensate for changes in r372,
matz authored
71 LIBRUBY = @LIBRUBY@
72 LIBRUBYARG = @LIBRUBYARG@
2432c5e @nobu * configure.in (LIBRUBY_A): append -static. [ruby-dev:18689]
nobu authored
73 LIBRUBYARG_STATIC = @LIBRUBYARG_STATIC@
74 LIBRUBYARG_SHARED = @LIBRUBYARG_SHARED@
99d0354 Initial revision
matz authored
75
71d5fc5 @nobu * Makefile.in, */Makefile.sub, */configure.bat, cygwin/GNUmakefile.in,
nobu authored
76 PREP = @PREP@
77 ARCHFILE = @ARCHFILE@
0243b2c @nobu * configure.in (XCFLAGS): CFLAGS to comile ruby itself.
nobu authored
78 SETUP =
d4094d0 @nobu * Makefile.in: static link libraries to LIBRUBY_SO with static linked
nobu authored
79 EXTSTATIC = @EXTSTATIC@
0243b2c @nobu * configure.in (XCFLAGS): CFLAGS to comile ruby itself.
nobu authored
80
71d5fc5 @nobu * Makefile.in, */Makefile.sub, */configure.bat, cygwin/GNUmakefile.in,
nobu authored
81 RM = rm -f
82 NM = @NM@
83 AR = @AR@
84 ARFLAGS = rcu
85 RANLIB = @RANLIB@
9900753 * configure.in: add support for as and ASFLAGS. [ruby-dev:29138]
matz authored
86 AS = @AS@
87 ASFLAGS = @ASFLAGS@
71d5fc5 @nobu * Makefile.in, */Makefile.sub, */configure.bat, cygwin/GNUmakefile.in,
nobu authored
88
89 OBJEXT = @OBJEXT@
6c80c88 @knu * configure.in (MANTYPE): Detect if the system's nroff(1) groks
knu authored
90 MANTYPE = @MANTYPE@
91
e0df26d @nobu * Makefile.in, common.in, instruby.rb, ext/extmk.rb, lib/mkmf.rb:
nobu authored
92 INSTALLED_LIST= .installed.list
71d5fc5 @nobu * Makefile.in, */Makefile.sub, */configure.bat, cygwin/GNUmakefile.in,
nobu authored
93 #### End of variables
94
95 all:
f010320 @knu * instruby.rb, ext/extmk.rb, Makefile.in, win32/Makefile.sub,
knu authored
96
71d5fc5 @nobu * Makefile.in, */Makefile.sub, */configure.bat, cygwin/GNUmakefile.in,
nobu authored
97 .DEFAULT: all
99d0354 Initial revision
matz authored
98
71d5fc5 @nobu * Makefile.in, */Makefile.sub, */configure.bat, cygwin/GNUmakefile.in,
nobu authored
99 # Prevent GNU make v3 from overflowing arg limit on SysV.
100 .NOEXPORT:
99d0354 Initial revision
matz authored
101
71d5fc5 @nobu * Makefile.in, */Makefile.sub, */configure.bat, cygwin/GNUmakefile.in,
nobu authored
102 miniruby$(EXEEXT):
103 @$(RM) $@
beffe75 @nobu * Makefile.in (miniruby): add XLDFLAGS.
nobu authored
104 $(PURIFY) $(CC) $(LDFLAGS) $(XLDFLAGS) $(MAINLIBS) $(MAINOBJ) $(MINIOBJS) $(LIBRUBY_A) $(LIBS) $(OUTFLAG)$@
71d5fc5 @nobu * Makefile.in, */Makefile.sub, */configure.bat, cygwin/GNUmakefile.in,
nobu authored
105
106 $(PROGRAM):
107 @$(RM) $@
108 $(PURIFY) $(CC) $(LDFLAGS) $(XLDFLAGS) $(MAINLIBS) $(MAINOBJ) $(EXTOBJS) $(LIBRUBYARG) $(LIBS) $(OUTFLAG)$@
99d0354 Initial revision
matz authored
109
a15c3f7 * gc.c (Init_stack): stack region is far smaller than usual if
matz authored
110 # We must `rm' the library each time this rule is invoked because "updating" a
111 # MAB library on Apple/NeXT (see --enable-fat-binary in configure) is not
112 # supported.
71d5fc5 @nobu * Makefile.in, */Makefile.sub, */configure.bat, cygwin/GNUmakefile.in,
nobu authored
113 $(LIBRUBY_A):
114 @$(RM) $@
115 $(AR) $(ARFLAGS) $@ $(OBJS) $(DMYEXT)
116 @-$(RANLIB) $@ 2> /dev/null || true
a2af08d This commit was generated by cvs2svn to compensate for changes in r372,
matz authored
117
71d5fc5 @nobu * Makefile.in, */Makefile.sub, */configure.bat, cygwin/GNUmakefile.in,
nobu authored
118 $(LIBRUBY_SO):
442301c @nobu * Makefile.in, common.mk, ext/extmk.rb, win{32,ce}/Makefile.in: keep
nobu authored
119 @-$(PRE_LIBRUBY_UPDATE)
71d5fc5 @nobu * Makefile.in, */Makefile.sub, */configure.bat, cygwin/GNUmakefile.in,
nobu authored
120 $(LDSHARED) $(DLDFLAGS) $(OBJS) $(DLDOBJS) $(SOLIBS) $(OUTFLAG)$@
0243b2c @nobu * configure.in (XCFLAGS): CFLAGS to comile ruby itself.
nobu authored
121 @-$(MINIRUBY) -e 'ARGV.each{|link| File.delete link if File.exist? link; \
07bb9f2 1.4.0
matz authored
122 File.symlink "$(LIBRUBY_SO)", link}' \
123 $(LIBRUBY_ALIASES) || true
99d0354 Initial revision
matz authored
124
71d5fc5 @nobu * Makefile.in, */Makefile.sub, */configure.bat, cygwin/GNUmakefile.in,
nobu authored
125 fake.rb: Makefile
cbe7e21 @eban see ChangeLog
eban authored
126 @echo ' \
127 class Object; \
0243b2c @nobu * configure.in (XCFLAGS): CFLAGS to comile ruby itself.
nobu authored
128 CROSS_COMPILING = RUBY_PLATFORM; \
cbe7e21 @eban see ChangeLog
eban authored
129 remove_const :RUBY_PLATFORM; \
7a5c195 @eban * ext/curses/extconf.rb: add dir_config.
eban authored
130 remove_const :RUBY_VERSION; \
cbe7e21 @eban see ChangeLog
eban authored
131 RUBY_PLATFORM = "@arch@"; \
7a5c195 @eban * ext/curses/extconf.rb: add dir_config.
eban authored
132 RUBY_VERSION = "@MAJOR@.@MINOR@.@TEENY@"; \
86077e1 @eban * lib/fileutils.rb (mkdir, mkdir_p): set mode to 0755.
eban authored
133 end; \
134 if RUBY_PLATFORM =~ /mswin|bccwin|mingw/; \
135 class File; \
136 remove_const :ALT_SEPARATOR; \
c50d64d @shyouhei merge revision(s) 28144:
shyouhei authored
137 ALT_SEPARATOR = "\\\\"; \
86077e1 @eban * lib/fileutils.rb (mkdir, mkdir_p): set mode to 0755.
eban authored
138 end; \
139 end; \
0f1db27 @shyouhei Fri, 19 Nov 2010 19:33:27 +0900 URABE, Shyouhei <shyouhei@ruby-lang.org...
shyouhei authored
140 prehook = proc do |e|; \
399122d @shyouhei * Makefile.in (fake.rb): need to expand the topdir in case of it
shyouhei authored
141 builddir = File.expand_path(File.dirname(__FILE__)); \
142 Config::MAKEFILE_CONFIG["top_srcdir"] = $$top_srcdir = \
143 File.expand_path("@top_srcdir@", builddir) unless e; \
0f1db27 @shyouhei Fri, 19 Nov 2010 19:33:27 +0900 URABE, Shyouhei <shyouhei@ruby-lang.org...
shyouhei authored
144 untrace_var(:$$extmk, prehook); \
145 end; \
146 trace_var(:$$extmk, prehook); \
cbe7e21 @eban see ChangeLog
eban authored
147 ' > $@
99d0354 Initial revision
matz authored
148
0243b2c @nobu * configure.in (XCFLAGS): CFLAGS to comile ruby itself.
nobu authored
149 Makefile: $(srcdir)/Makefile.in
150
71d5fc5 @nobu * Makefile.in, */Makefile.sub, */configure.bat, cygwin/GNUmakefile.in,
nobu authored
151 $(MKFILES): config.status $(srcdir)/common.mk
0243b2c @nobu * configure.in (XCFLAGS): CFLAGS to comile ruby itself.
nobu authored
152 MAKE=$(MAKE) $(SHELL) ./config.status
0e11cb0 @nobu * marshal.c (w_symbol, w_object): get rid of warnings.
nobu authored
153 @{ \
0243b2c @nobu * configure.in (XCFLAGS): CFLAGS to comile ruby itself.
nobu authored
154 echo "all:; -@rm -f conftest.mk"; \
155 echo "conftest.mk: .force; @echo AUTO_REMAKE"; \
156 echo ".force:"; \
0e11cb0 @nobu * marshal.c (w_symbol, w_object): get rid of warnings.
nobu authored
157 } > conftest.mk || exit 1; \
158 $(MAKE) -f conftest.mk | grep '^AUTO_REMAKE$$' >/dev/null 2>&1 || \
0243b2c @nobu * configure.in (XCFLAGS): CFLAGS to comile ruby itself.
nobu authored
159 { echo "Makefile updated, restart."; exit 1; }
160
a2af08d This commit was generated by cvs2svn to compensate for changes in r372,
matz authored
161 config.status: $(srcdir)/configure
2432c5e @nobu * configure.in (LIBRUBY_A): append -static. [ruby-dev:18689]
nobu authored
162 MINIRUBY="$(MINIRUBY)" $(SHELL) ./config.status --recheck
a2af08d This commit was generated by cvs2svn to compensate for changes in r372,
matz authored
163
6621fdc @eban eban
eban authored
164 $(srcdir)/configure: $(srcdir)/configure.in
a2af08d This commit was generated by cvs2svn to compensate for changes in r372,
matz authored
165 cd $(srcdir) && $(AUTOCONF)
166
d951f65 This commit was generated by cvs2svn to compensate for changes in r11,
matz authored
167 lex.c: keywords
5916a81 @akr * Makefile.in (lex.c): don't remove lex.c at first.
akr authored
168 ( gperf -C -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$$ $? > $@.tmp && mv $@.tmp $@ ) || \
169 if test -f $@; then \
170 touch $@ && echo $@ touched.; \
171 else \
172 cp $(srcdir)/lex.c $@ && echo $@ copied.; \
173 fi
d951f65 This commit was generated by cvs2svn to compensate for changes in r11,
matz authored
174
0243b2c @nobu * configure.in (XCFLAGS): CFLAGS to comile ruby itself.
nobu authored
175 .y.c:
99d0354 Initial revision
matz authored
176 $(YACC) $<
0243b2c @nobu * configure.in (XCFLAGS): CFLAGS to comile ruby itself.
nobu authored
177 sed '/^#/s|y\.tab\.c|$@|' y.tab.c > $@
178 rm -f y.tab.c
179
71d5fc5 @nobu * Makefile.in, */Makefile.sub, */configure.bat, cygwin/GNUmakefile.in,
nobu authored
180 .c.@OBJEXT@:
181 $(CC) $(CFLAGS) $(CPPFLAGS) -c $<
07bb9f2 1.4.0
matz authored
182
9900753 * configure.in: add support for as and ASFLAGS. [ruby-dev:29138]
matz authored
183 .s.@OBJEXT@:
184 $(AS) $(ASFLAGS) -o $@ $<
185
71d5fc5 @nobu * Makefile.in, */Makefile.sub, */configure.bat, cygwin/GNUmakefile.in,
nobu authored
186 clean-local::
187 @$(RM) ext/extinit.c ext/extinit.$(OBJEXT)
07bb9f2 1.4.0
matz authored
188
71d5fc5 @nobu * Makefile.in, */Makefile.sub, */configure.bat, cygwin/GNUmakefile.in,
nobu authored
189 distclean-local::
190 @$(RM) ext/config.cache $(RBCONFIG)
39ceadd @eban fix bug; support mingw32.
eban authored
191
71d5fc5 @nobu * Makefile.in, */Makefile.sub, */configure.bat, cygwin/GNUmakefile.in,
nobu authored
192 ext/extinit.$(OBJEXT): ext/extinit.c $(SETUP)
f3aa5ed @nobu * Makefile.in (ext/extinit.o): use $(OUTFLAG) as well as other
nobu authored
193 $(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(OUTFLAG)$@ -c ext/extinit.c
aa2c73f @knu Merge -r16241:16456 from ruby_1_8.
knu authored
194
195 update-rubyspec:
196 if [ -d $(srcdir)/rubyspec ]; then \
197 cd $(srcdir)/rubyspec/mspec; \
198 git pull; \
a7f533f @shyouhei merge revision(s) 22489:
shyouhei authored
199 cd ../spec; \
aa2c73f @knu Merge -r16241:16456 from ruby_1_8.
knu authored
200 git pull; \
201 else \
a7f533f @shyouhei merge revision(s) 22489:
shyouhei authored
202 mkdir $(srcdir)/rubyspec; \
aa2c73f @knu Merge -r16241:16456 from ruby_1_8.
knu authored
203 git clone $(MSPEC_GIT_URL) $(srcdir)/rubyspec/mspec; \
a7f533f @shyouhei merge revision(s) 22489:
shyouhei authored
204 git clone $(RUBYSPEC_GIT_URL) $(srcdir)/rubyspec/spec; \
aa2c73f @knu Merge -r16241:16456 from ruby_1_8.
knu authored
205 fi
206
207 test-rubyspec:
208 @if [ ! -d $(srcdir)/rubyspec ]; then echo No rubyspec here. make update-rubyspec first.; exit 1; fi
a7f533f @shyouhei merge revision(s) 22489:
shyouhei authored
209 RUBY_EXE="$(RUNRUBY)" $(RUNRUBY) $(srcdir)/rubyspec/mspec/bin/mspec-run --background --prefix $(srcdir)/rubyspec/spec -B $(srcdir)/rubyspec/spec/ruby.$(MAJOR).$(MINOR).mspec
Something went wrong with that request. Please try again.