@@ -31,25 +31,30 @@ EXTCONF_DEPS := $(BASIC_EXTCONF_DEPS) sulongmock/sulongmock.o cext/ruby.o cext/r
31
31
32
32
IF_EXTCONF_FAIL := ( echo "` pwd ` /extconf.rb failed:" 1>&2 && cat mkmf.log && false )
33
33
34
- all : cext/ruby.su openssl/openssl.su zlib/zlib.su \
35
- psych/psych.su syslog/syslog.su nkf/nkf.su \
36
- etc/etc.su rbconfig-sizeof/sizeof.su
34
+ all : cext/ruby.su \
35
+ etc/etc.su \
36
+ nkf/nkf.su \
37
+ openssl/openssl.su \
38
+ psych/psych.su \
39
+ rbconfig-sizeof/sizeof.su \
40
+ syslog/syslog.su \
41
+ zlib/zlib.su
37
42
38
43
clean : clean_cexts clean_truffleposix
39
44
40
45
clean_truffleposix :
41
46
rm -f $(TRUFFLE_POSIX ) truffleposix/* .o
42
47
43
48
clean_cexts :
44
- rm -f sulongmock/sulongmock.o
45
49
rm -f cext/Makefile cext/* .bc cext/ruby.o cext/ruby.su
50
+ rm -f etc/Makefile etc/* .bc etc/etc.su etc/constdefs.h
51
+ rm -f nkf/Makefile nkf/* .bc nkf/nkf.su
46
52
rm -f openssl/Makefile openssl/* .bc openssl/openssl.su
47
- rm -f zlib/Makefile zlib/* .bc zlib/zlib.su
48
53
rm -f psych/Makefile psych/* .bc psych/yaml/* .bc psych/psych.su
49
- rm -f syslog/Makefile syslog/* .bc syslog/syslog.su
50
- rm -f nkf/Makefile nkf/* .bc nkf/nkf.su
51
- rm -f etc/Makefile etc/* .bc etc/etc.su etc/constdefs.h
52
54
rm -f rbconfig-sizeof/Makefile rbconfig-sizeof/* .bc rbconfig-sizeof/sizeof.su
55
+ rm -f sulongmock/sulongmock.o
56
+ rm -f syslog/Makefile syslog/* .bc syslog/syslog.su
57
+ rm -f zlib/Makefile zlib/* .bc zlib/zlib.su
53
58
54
59
# truffleposix
55
60
$(TRUFFLE_POSIX ) : truffleposix/Makefile truffleposix/truffleposix.c
@@ -73,26 +78,17 @@ cext/Makefile: cext/extconf.rb $(BASIC_EXTCONF_DEPS)
73
78
cext/ruby.su : cext/Makefile cext/* .c
74
79
cd cext && $(MAKE )
75
80
76
- # openssl.su
77
- openssl/Makefile : openssl/extconf.rb $(EXTCONF_DEPS )
78
- cd openssl && $(RUBY ) extconf.rb || $(IF_EXTCONF_FAIL )
79
-
80
- openssl/openssl.su : openssl/Makefile openssl/* .c openssl/* .h
81
- cd openssl && $(MAKE )
82
-
83
- # zlib.su
84
- zlib/Makefile : zlib/extconf.rb $(EXTCONF_DEPS )
85
- cd zlib && $(RUBY ) extconf.rb || $(IF_EXTCONF_FAIL )
81
+ # etc.su
82
+ etc/Makefile : etc/extconf.rb $(EXTCONF_DEPS )
83
+ cd etc && $(RUBY ) extconf.rb || $(IF_EXTCONF_FAIL )
86
84
87
- zlib/zlib .su : zlib /Makefile zlib/zlib .c
88
- cd zlib && $(MAKE )
85
+ etc/etc .su : etc /Makefile etc/etc .c
86
+ cd etc && $(MAKE )
89
87
90
- # syslog.su
91
- syslog/Makefile : syslog/extconf.rb $(EXTCONF_DEPS )
92
- cd syslog && $(RUBY ) extconf.rb || $(IF_EXTCONF_FAIL )
88
+ etc/etc.c : etc/constdefs.h
93
89
94
- syslog/syslog.su : syslog/Makefile syslog/syslog.c
95
- cd syslog && $( MAKE )
90
+ etc/constdefs.h : etc/mkconstants.rb
91
+ $( RUBY ) $< -o $@
96
92
97
93
# nkf.su
98
94
nkf/Makefile : nkf/extconf.rb $(EXTCONF_DEPS )
@@ -101,17 +97,20 @@ nkf/Makefile: nkf/extconf.rb $(EXTCONF_DEPS)
101
97
nkf/nkf.su : nkf/Makefile nkf/nkf.c nkf/nkf-utf8/* .c nkf/nkf-utf8/* .h
102
98
cd nkf && $(MAKE )
103
99
104
- # etc .su
105
- etc /Makefile : etc /extconf.rb $(EXTCONF_DEPS )
106
- cd etc && $(RUBY ) extconf.rb || $(IF_EXTCONF_FAIL )
100
+ # openssl .su
101
+ openssl /Makefile : openssl /extconf.rb $(EXTCONF_DEPS )
102
+ cd openssl && $(RUBY ) extconf.rb || $(IF_EXTCONF_FAIL )
107
103
108
- etc/etc .su : etc /Makefile etc/etc.c
109
- cd etc && $(MAKE )
104
+ openssl/openssl .su : openssl /Makefile openssl/ * .c openssl/ * .h
105
+ cd openssl && $(MAKE )
110
106
111
- etc/etc.c : etc/constdefs.h
107
+ # psych.su
108
+ # Always use the bundled libyaml, as we want it as bitcode and avoid extra handles
109
+ psych/Makefile : psych/extconf.rb $(EXTCONF_DEPS )
110
+ cd psych && $(RUBY ) extconf.rb --enable-bundled-libyaml || $(IF_EXTCONF_FAIL )
112
111
113
- etc/constdefs.h : etc/mkconstants.rb
114
- $( RUBY ) $< -o $@
112
+ psych/psych.su : psych/Makefile psych/ * .c psych/ * .h psych/yaml/ * .c psych/yaml/ * .h
113
+ cd psych && $( MAKE )
115
114
116
115
# rbconfig/sizeof.su
117
116
rbconfig-sizeof/Makefile : rbconfig-sizeof/extconf.rb $(EXTCONF_DEPS )
@@ -120,10 +119,16 @@ rbconfig-sizeof/Makefile: rbconfig-sizeof/extconf.rb $(EXTCONF_DEPS)
120
119
rbconfig-sizeof/sizeof.su : rbconfig-sizeof/Makefile rbconfig-sizeof/sizes.c
121
120
cd rbconfig-sizeof && $(MAKE )
122
121
123
- # psych.su
124
- # Always use the bundled libyaml, as we want it as bitcode and avoid extra handles
125
- psych/Makefile : psych/extconf.rb $(EXTCONF_DEPS )
126
- cd psych && $(RUBY ) extconf.rb --enable-bundled-libyaml || $(IF_EXTCONF_FAIL )
122
+ # syslog.su
123
+ syslog/Makefile : syslog/extconf.rb $(EXTCONF_DEPS )
124
+ cd syslog && $(RUBY ) extconf.rb || $(IF_EXTCONF_FAIL )
127
125
128
- psych/psych.su : psych/Makefile psych/* .c psych/* .h psych/yaml/* .c psych/yaml/* .h
129
- cd psych && $(MAKE )
126
+ syslog/syslog.su : syslog/Makefile syslog/syslog.c
127
+ cd syslog && $(MAKE )
128
+
129
+ # zlib.su
130
+ zlib/Makefile : zlib/extconf.rb $(EXTCONF_DEPS )
131
+ cd zlib && $(RUBY ) extconf.rb || $(IF_EXTCONF_FAIL )
132
+
133
+ zlib/zlib.su : zlib/Makefile zlib/zlib.c
134
+ cd zlib && $(MAKE )
0 commit comments