1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
|
#
# Scripts that we install
#
# Starting with Mono 2.0, the majority of the tools default to the
# 2.0 profile. Commands that support the 1.0 toolchain and must
# run under 1.0 have the number 1 appended to their command names
# (for example mcs1 is the C# 1.0 compiler) and are listed in the
# scripts_1_0 compat variable.
#
# To preserve compatibility with old Makefiles and tools we keep the
# command names that had the suffix 2 (like wsdl2)
#
if USE_BATCH_FILES
SCRIPT_IN=script.bat.in
SMCS_IN=smcs.bat.in
FILTER=sed -e 's,\.bat\.exe,\.exe,g' -e 's,/,\\,g'
SCRIPT_SUFFIX=.bat
else
SCRIPT_IN=script.in
SMCS_IN=smcs.in
FILTER=cat
SCRIPT_SUFFIX=
endif
COMPAT_1_0_SUFFIX=1$(SCRIPT_SUFFIX)
COMPAT_2_0_SUFFIX=2$(SCRIPT_SUFFIX)
bin_SCRIPTS = \
$(scripts_1_0) \
$(scripts_1_0_umask) \
$(scripts_1_0_compat) \
$(scripts_defaults) \
$(scripts_2_0) \
$(scripts_2_1) \
$(scripts_service) \
$(scripts_nunit) \
$(scripts_rpmhelpers) \
$(MDOC_SUBCOMMANDS) \
$(MDOC_COMPAT) \
mod \
mono-test-install
scripts_1_0_compat = \
al1$(SCRIPT_SUFFIX) \
genxs1$(SCRIPT_SUFFIX) \
ilasm1$(SCRIPT_SUFFIX) \
mcs1$(SCRIPT_SUFFIX) \
mkbundle1$(SCRIPT_SUFFIX) \
gacutil1$(SCRIPT_SUFFIX) \
monop1$(SCRIPT_SUFFIX) \
resgen1$(SCRIPT_SUFFIX) \
wsdl1$(SCRIPT_SUFFIX)
scripts_1_0 = \
caspol$(SCRIPT_SUFFIX) \
cert2spc$(SCRIPT_SUFFIX) \
certmgr$(SCRIPT_SUFFIX) \
chktrust$(SCRIPT_SUFFIX) \
cilc$(SCRIPT_SUFFIX) \
disco$(SCRIPT_SUFFIX) \
dtd2xsd$(SCRIPT_SUFFIX) \
dtd2rng$(SCRIPT_SUFFIX) \
installvst$(SCRIPT_SUFFIX) \
genxs$(SCRIPT_SUFFIX) \
macpack$(SCRIPT_SUFFIX) \
mcs$(SCRIPT_SUFFIX) \
mjs$(SCRIPT_SUFFIX) \
monolinker$(SCRIPT_SUFFIX) \
mono-cil-strip$(SCRIPT_SUFFIX) \
mozroots$(SCRIPT_SUFFIX) \
permview$(SCRIPT_SUFFIX) \
prj2make$(SCRIPT_SUFFIX) \
secutil$(SCRIPT_SUFFIX) \
setreg$(SCRIPT_SUFFIX) \
signcode$(SCRIPT_SUFFIX) \
soapsuds$(SCRIPT_SUFFIX) \
xsd$(SCRIPT_SUFFIX)
scripts_1_0_umask = \
makecert$(SCRIPT_SUFFIX) \
sn$(SCRIPT_SUFFIX)
scripts_2_0 = \
al2$(SCRIPT_SUFFIX) \
csharp$(SCRIPT_SUFFIX) \
gacutil2$(SCRIPT_SUFFIX) \
gmcs$(SCRIPT_SUFFIX) \
httpcfg$(SCRIPT_SUFFIX) \
ilasm2$(SCRIPT_SUFFIX) \
mconfig$(SCRIPT_SUFFIX) \
mkbundle2$(SCRIPT_SUFFIX) \
mdoc$(SCRIPT_SUFFIX) \
mono-api-info$(SCRIPT_SUFFIX) \
mono-shlib-cop$(SCRIPT_SUFFIX) \
monop2$(SCRIPT_SUFFIX) \
resgen2$(SCRIPT_SUFFIX) \
wsdl2$(SCRIPT_SUFFIX) \
xsd2$(SCRIPT_SUFFIX) \
mono-xmltool$(SCRIPT_SUFFIX) \
sgen$(SCRIPT_SUFFIX) \
sqlmetal$(SCRIPT_SUFFIX) \
sqlsharp$(SCRIPT_SUFFIX) \
svcutil$(SCRIPT_SUFFIX) \
xbuild$(SCRIPT_SUFFIX)
MDOC_SUBCOMMANDS = \
mdoc-assemble \
mdoc-export-html \
mdoc-export-msxdoc \
mdoc-update \
mdoc-validate
MDOC_COMPAT = \
mdassembler \
mdvalidater \
monodocer \
monodocs2html \
monodocs2slashdoc
#
# these are the new defaults, 2.0 profile-based commands
#
# we can move scripts_1_0 scripts here as we see fit, if we need to
# keep a 1.0 command available, we should additionally put it on
# the scripts_1_0_compat list
#
scripts_defaults = \
al$(SCRIPT_SUFFIX) \
ilasm$(SCRIPT_SUFFIX) \
gacutil$(SCRIPT_SUFFIX) \
mkbundle$(SCRIPT_SUFFIX) \
monop$(SCRIPT_SUFFIX) \
resgen$(SCRIPT_SUFFIX) \
wsdl$(SCRIPT_SUFFIX)
scripts_2_1 = smcs$(SCRIPT_SUFFIX)
scripts_service = mono-service mono-service2
scripts_nunit = nunit-console$(SCRIPT_SUFFIX) nunit-console2$(SCRIPT_SUFFIX)
scripts_rpmhelpers = mono-find-provides mono-find-requires
CLEANFILES = $(scripts_1_0) $(scripts_1_0_umask) $(scripts_2_0) $(scripts_2_1) $(scripts_defaults) $(scripts_1_0_compat) mono-service mono-service2 nunit-console nunit-console2 mono-find-provides mono-find-requires mod $(MDOC_SUBCOMMANDS)
DISTCLEANFILES = $(pkgconfig_DATA) $(scripts_rpmhelpers)
EXTRA_DIST = \
script.in \
script.bat.in \
script_umask.in \
script_umask.bat.in \
smcs.in \
smcs.bat.in \
mod.in \
mono-service.in \
mono-find-provides.in \
mono-find-requires.in \
mono-test-install \
$(MDOC_COMPAT) \
patch-quiet.sh
if USE_JIT
mono_interp = mono
else
mono_interp = mint
endif
if PLATFORM_WIN32
if CROSS_COMPILING
plat_bindir = $(bindir)
mono_instdir = $(prefix)/lib/mono
else
plat_bindir = $(shell cygpath -m $(libdir))
mono_instdir = $(shell cygpath -m $(libdir))/mono
endif
else
plat_bindir = $(bindir)
mono_instdir = $(prefix)/lib/mono
endif
REWRITE_COMMON = sed \
-e 's,@''bindir@,$(bindir),g' \
-e 's,@''plat_bindir@,$(plat_bindir),g' \
-e 's,@''mono_instdir@,$(mono_instdir),g' \
-e 's,@''gtkdir@,$(gtkdir),g'
REWRITE = $(REWRITE_COMMON) -e 's,@''mono_interp@,$(mono_interp),g'
REWRITE_DEBUG = $(REWRITE_COMMON) -e 's,@''mono_interp@,$(mono_interp) --debug,g'
REWRITE1 = $(REWRITE) -e 's,@''framework_version@,1.0,g'
REWRITE2 = $(REWRITE) -e 's,@''framework_version@,2.0,g'
REWRITE2_1 = $(REWRITE) -e 's,@''framework_version@,2.1,g'
REWRITE1_DEBUG = $(REWRITE_DEBUG) -e 's,@''framework_version@,1.0,g'
REWRITE2_DEBUG = $(REWRITE_DEBUG) -e 's,@''framework_version@,2.0,g'
mono-service: mono-service.in Makefile
$(REWRITE1) -e 's,@''exe_name@,$@,g' $(srcdir)/mono-service.in > $@.tmp
mv $@.tmp $@
mono-service2: mono-service.in Makefile
$(REWRITE2) -e 's,@''exe_name@,$@,g' $(srcdir)/mono-service.in > $@.tmp
mv $@.tmp $@
nunit-console$(SCRIPT_SUFFIX): $(SCRIPT_IN) Makefile
$(REWRITE1_DEBUG) -e 's,@''exe_name@,nunit-console,g' $(srcdir)/$(SCRIPT_IN) | $(FILTER) > $@.tmp
mv $@.tmp $@
nunit-console2$(SCRIPT_SUFFIX): $(SCRIPT_IN) Makefile
$(REWRITE2_DEBUG) -e 's,@''exe_name@,nunit-console,g' $(srcdir)/$(SCRIPT_IN) | $(FILTER) > $@.tmp
mv $@.tmp $@
smcs$(SCRIPT_SUFFIX): $(SMCS_IN) Makefile
$(REWRITE2_1) -e "s,@""exe_name@,smcs,g" $(srcdir)/$(SMCS_IN) | $(FILTER) > $@.tmp
mv $@.tmp $@
mod$(SCRIPT_SUFFIX): mod.in Makefile
$(REWRITE1) -e "s,@""exe_name@,mod,g" $(srcdir)/mod.in > $@.tmp
mv $@.tmp $@
$(scripts_1_0): $(SCRIPT_IN) Makefile
$(REWRITE1) -e 's,@''exe_name@,$@,g' $(srcdir)/$(SCRIPT_IN) | $(FILTER) > $@.tmp
mv $@.tmp $@
$(scripts_1_0_umask): script_umask.in Makefile
$(REWRITE1) -e 's,@''exe_name@,$@,g' $(srcdir)/script_umask.in > $@.tmp
mv $@.tmp $@
$(scripts_1_0_compat): $(SCRIPT_IN) Makefile
t=`basename $@ $(COMPAT_1_0_SUFFIX)`; $(REWRITE1) -e "s,@exe_name@,$$t,g" $(srcdir)/$(SCRIPT_IN) | $(FILTER) > $@.tmp
mv $@.tmp $@
$(scripts_defaults): $(SCRIPT_IN) Makefile
$(REWRITE2) -e "s,@exe_name@,$@,g" $(srcdir)/$(SCRIPT_IN) | $(FILTER) > $@.tmp
mv $@.tmp $@
$(scripts_2_0): $(SCRIPT_IN) Makefile
n=`echo $@ | sed 's,$(COMPAT_2_0_SUFFIX)$$,,'`; \
$(REWRITE2) -e "s,@""exe_name@,$$n,g" $(srcdir)/$(SCRIPT_IN) | $(FILTER) > $@.tmp
mv $@.tmp $@
$(MDOC_SUBCOMMANDS): Makefile
for script in $(MDOC_SUBCOMMANDS) ; do \
cmd=`echo $$script | sed 's/mdoc-//'` ; \
echo "#!/bin/sh" > $$script ; \
echo "exec mdoc $$cmd \"\$$@\"" >> $$script; \
done
|