@@ -7,9 +7,6 @@ VPATH = @srcdir@:@srcdir@/missing
7
7
8
8
CC = @CC@
9
9
YACC = @YACC@
10
- INSTALL = @INSTALL@
11
- INSTALL_PROGRAM = @INSTALL_PROGRAM@
12
- INSTALL_DATA = @INSTALL_DATA@
13
10
PURIFY =
14
11
@SET_MAKE@
15
12
@@ -18,22 +15,14 @@ LDFLAGS = @STATIC@ $(CFLAGS) @LDFLAGS@
18
15
LIBS = @LIBS@ $(EXTLIBS )
19
16
MISSING = @LIBOBJS@ @ALLOCA@
20
17
21
- program_transform_name = -e @program_transform_name@
22
- RUBY_INSTALL_NAME = ` t=' $(program_transform_name)' ; echo ruby | sed $$ t `
23
-
24
- prefix = @prefix@
25
- exec_prefix = @exec_prefix@
26
- bindir = @bindir@
27
- libdir = @libdir@/$(RUBY_INSTALL_NAME )
28
-
29
18
binsuffix = @binsuffix@
30
19
31
20
# ### End of system configuration section. ####
32
21
33
22
34
23
LIBRUBY = libruby.a
35
24
36
- EXTOBJS = dmyext.o
25
+ EXTOBJS =
37
26
38
27
MAINOBJ = main.o
39
28
@@ -54,6 +43,7 @@ OBJS = array.o \
54
43
inits.o \
55
44
io.o \
56
45
math.o \
46
+ marshal.o \
57
47
numeric.o \
58
48
object.o \
59
49
pack.o \
@@ -75,15 +65,12 @@ OBJS = array.o \
75
65
version.o \
76
66
$(MISSING )
77
67
78
- all : miniruby$(binsuffix ) @srcdir@/ext/Setup
79
- @if test -z " $$ UNDER_EXTMAKE_RB" ; \
80
- then echo " Compiling ext modules" ; \
81
- UNDER_EXTMAKE_RB=yes; export UNDER_EXTMAKE_RB; \
82
- cd ext; ../miniruby ./extmk.rb @EXTSTATIC@; fi
68
+ all : miniruby$(binsuffix ) rbconfig.rb
69
+ @cd ext; ../miniruby$(binsuffix ) ./extmk.rb @EXTSTATIC@
83
70
84
- miniruby$(binsuffix ) : $(OBJS ) $(MAINOBJ ) $( EXTOBJS )
71
+ miniruby$(binsuffix ) : $(OBJS ) $(MAINOBJ ) dmyext.o
85
72
@rm -f $@
86
- $(PURIFY ) $(CC ) $(LDFLAGS ) $(MAINOBJ ) $(OBJS ) $( EXTOBJS ) $(LIBS ) -o miniruby
73
+ $(PURIFY ) $(CC ) $(LDFLAGS ) $(MAINOBJ ) $(OBJS ) dmyext.o $(LIBS ) -o miniruby
87
74
88
75
ruby$(binsuffix ) : $(LIBRUBY ) $(MAINOBJ ) $(EXTOBJS )
89
76
@rm -f $@
@@ -93,36 +80,31 @@ $(LIBRUBY): $(OBJS) dmyext.o
93
80
@AR@ rcu $(LIBRUBY ) $(OBJS ) dmyext.o
94
81
@-@RANLIB@ $(LIBRUBY ) 2> /dev/null || true
95
82
96
- install :; $(INSTALL_PROGRAM ) ruby$(binsuffix ) $(bindir ) /$(RUBY_INSTALL_NAME )$(binsuffix )
97
- @-@STRIP@ $(bindir ) /$(RUBY_INSTALL_NAME )$(binsuffix )
98
- @test -d $(libdir ) || mkdir $(libdir )
99
- cd ext; ../miniruby ./extmk.rb install
100
- @for rb in ` grep ' ^lib/' @srcdir@/MANIFEST` ; do \
101
- $(INSTALL_DATA ) @srcdir@/$$ rb $(libdir ) ; \
102
- done
83
+ install : rbconfig.rb
84
+ ./miniruby$(binsuffix ) $(srcdir ) /instruby.rb
103
85
104
- clean :; @rm -f $(OBJS ) $(LIBRUBY ) $(MAINOBJ )
86
+ clean :; @rm -f $(OBJS ) $(LIBRUBY ) $(MAINOBJ ) rbconfig.rb
105
87
@rm -f ext/extinit.c ext/extinit.o dmyext.o
106
- cd ext; ../miniruby ./extmk.rb clean
88
+ @if test -f ./miniruby ; then cd ext; ../miniruby ./extmk.rb clean; fi
107
89
108
90
realclean : clean
109
- @rm -f Makefile ext/extmk.rb ext/config.cache parse.c
91
+ @rm -f Makefile ext/extmk.rb ext/config.cache
110
92
@rm -f config.cache config.h config.log config.status
111
- @rm -f core ruby$(binsuffix ) miniruby$(binsuffix ) parse.c * ~ * .core gmon.out
112
-
113
- test :; @-./ruby @srcdir@/sample/test.rb > ./ruby_test 2>&1; \
114
- if grep ' ^end of test' ./ruby_test > /dev/null; then \
115
- echo " test succeeded" ; \
116
- else \
117
- grep ' ^sample/test.rb' ./ruby_test; \
118
- grep ' ^not' ./ruby_test; \
119
- echo " test failed" ; \
120
- fi ; \
121
- rm -f ./ruby_test
93
+ @rm -f parse.c lex.c * ~ core * .core gmon.out
94
+ @rm -f ruby$(binsuffix ) miniruby$(binsuffix )
95
+
96
+ test : miniruby$(binsuffix )
97
+ @./miniruby$(binsuffix ) $(srcdir ) /rubytest.rb
98
+
99
+ rbconfig.rb : config.status miniruby$(binsuffix )
100
+ @./miniruby$(binsuffix ) $(srcdir ) /mkconfig.rb rbconfig.rb
122
101
123
102
.c.o :
124
103
$(CC ) $(CFLAGS ) $(CPPFLAGS ) -c $<
125
104
105
+ lex.c : keywords
106
+ gperf -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$$ keywords > lex.c
107
+
126
108
parse.c : parse.y
127
109
$(YACC ) $<
128
110
mv -f y.tab.c parse.c
@@ -178,42 +160,40 @@ x68.o: @srcdir@/missing/x68.c
178
160
# Prevent GNU make v3 from overflowing arg limit on SysV.
179
161
.NOEXPORT :
180
162
# ##
181
- parse.o : parse.y ruby.h defines.h config.h env.h node.h st.h regex.h
163
+ parse.o : parse.y ruby.h defines.h config.h intern.h env.h node.h st.h regex.h lex.c
182
164
# ##
183
- array.o : array.c ruby.h config.h defines.h
184
- bignum.o : bignum.c ruby.h config.h defines.h
185
- class.o : class.c ruby.h config.h defines.h node.h st.h
186
- compar.o : compar.c ruby.h config.h defines.h
187
- dir.o : dir.c ruby.h config.h defines.h
165
+ array.o : array.c ruby.h config.h defines.h intern.h
166
+ bignum.o : bignum.c ruby.h config.h defines.h intern.h
167
+ class.o : class.c ruby.h config.h defines.h intern.h node.h st.h
168
+ compar.o : compar.c ruby.h config.h defines.h intern.h
169
+ dir.o : dir.c ruby.h config.h defines.h intern.h
188
170
dln.o : dln.c config.h defines.h dln.h st.h
189
171
dmyext.o : dmyext.c
190
- enum.o : enum.c ruby.h config.h defines.h
191
- error.o : error.c ruby.h config.h defines.h env.h
192
- eval.o : eval.c ruby.h config.h defines.h env.h node.h sig.h st.h dln.h
193
- file.o : file.c ruby.h config.h defines.h io.h sig.h
194
- fnmatch.o : fnmatch.c config.h fnmatch.h
195
- gc.o : gc.c ruby.h config.h defines.h env.h sig.h st.h node.h re.h regex.h
196
- glob.o : glob.c config.h fnmatch.h
197
- hash.o : hash.c ruby.h config.h defines.h st.h
198
- inits.o : inits.c ruby.h config.h defines.h
199
- io.o : io.c ruby.h config.h defines.h io.h sig.h
172
+ enum.o : enum.c ruby.h config.h defines.h intern.h
173
+ error.o : error.c ruby.h config.h defines.h intern.h env.h
174
+ eval.o : eval.c ruby.h config.h defines.h intern.h env.h node.h sig.h st.h dln.h
175
+ file.o : file.c ruby.h config.h defines.h intern.h io.h sig.h
176
+ gc.o : gc.c ruby.h config.h defines.h intern.h env.h sig.h st.h node.h re.h regex.h
177
+ hash.o : hash.c ruby.h config.h defines.h intern.h st.h
178
+ inits.o : inits.c ruby.h config.h defines.h intern.h
179
+ io.o : io.c ruby.h config.h defines.h intern.h io.h sig.h
200
180
main.o : main.c
201
- math .o : math .c ruby.h config.h defines.h
202
- numeric .o : numeric .c ruby.h config.h defines.h
203
- object .o : object .c ruby.h config.h defines.h st .h
204
- pack .o : pack .c ruby.h config.h defines.h
205
- process .o : process .c ruby.h config.h defines.h sig.h st .h
206
- random .o : random .c ruby.h config.h defines.h
207
- range .o : range .c ruby.h config.h defines.h
208
- re .o : re .c ruby.h config.h defines.h re.h regex .h
209
- regex .o : regex .c config.h defines.h regex .h util .h
210
- ruby.o : ruby.c ruby.h config.h defines.h re.h regex.h dln.h
211
- signal.o : signal.c ruby.h config.h defines.h sig.h
212
- sprintf.o : sprintf.c ruby.h config.h defines.h
181
+ marshal .o : marshal .c ruby.h config.h defines.h intern.h io.h sig.h st .h
182
+ math .o : math .c ruby.h config.h defines.h intern .h
183
+ numeric .o : numeric .c ruby.h config.h defines.h intern .h
184
+ object .o : object .c ruby.h config.h defines.h intern.h st .h
185
+ pack .o : pack .c ruby.h config.h defines.h intern .h
186
+ process .o : process .c ruby.h config.h defines.h intern.h sig.h st .h
187
+ random .o : random .c ruby.h config.h defines.h intern .h
188
+ range .o : range .c ruby.h config.h defines.h intern .h
189
+ re .o : re .c ruby.h config.h defines.h intern .h re.h regex .h
190
+ ruby.o : ruby.c ruby.h config.h defines.h intern.h re.h regex.h dln.h
191
+ signal.o : signal.c ruby.h config.h defines.h intern.h sig.h
192
+ sprintf.o : sprintf.c ruby.h config.h defines.h intern.h
213
193
st.o : st.c config.h st.h
214
- string.o : string.c ruby.h config.h defines.h re.h regex.h
215
- struct.o : struct.c ruby.h config.h defines.h
216
- time.o : time.c ruby.h config.h defines.h
217
- util.o : util.c defines.h config.h util.h
218
- variable.o : variable.c ruby.h config.h defines.h env.h st.h
219
- version.o : version.c ruby.h config.h defines.h version.h
194
+ string.o : string.c ruby.h config.h defines.h intern.h re.h regex.h
195
+ struct.o : struct.c ruby.h config.h defines.h intern.h
196
+ time.o : time.c ruby.h config.h defines.h intern.h
197
+ util.o : util.c defines.h intern.h config.h util.h
198
+ variable.o : variable.c ruby.h config.h defines.h intern.h env.h st.h
199
+ version.o : version.c ruby.h config.h defines.h intern.h version.h
0 commit comments