Makefile.am 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. #
  2. # Scripts that we install
  3. #
  4. # Starting with Mono 2.0, the majority of the tools default to the
  5. # 2.0 profile. Commands that support the 1.0 toolchain and must
  6. # run under 1.0 have the number 1 appended to their command names
  7. # (for example mcs1 is the C# 1.0 compiler) and are listed in the
  8. # scripts_1_0 compat variable.
  9. #
  10. # To preserve compatibility with old Makefiles and tools we keep the
  11. # command names that had the suffix 2 (like wsdl2)
  12. #
  13. bin_SCRIPTS = \
  14. $(scripts_1_0) \
  15. $(scripts_1_0_umask) \
  16. $(scripts_1_0_compat) \
  17. $(scripts_defaults) \
  18. $(scripts_2_0) \
  19. $(scripts_2_1) \
  20. $(scripts_service) \
  21. $(scripts_nunit) \
  22. $(scripts_rpmhelpers) \
  23. mono-test-install
  24. scripts_1_0_compat = \
  25. al1 \
  26. genxs1 \
  27. ilasm1 \
  28. mcs1 \
  29. mkbundle1 \
  30. mono-api-info1 \
  31. monop1 \
  32. resgen1 \
  33. wsdl1
  34. scripts_1_0 = \
  35. caspol \
  36. cert2spc \
  37. certmgr \
  38. chktrust \
  39. cilc \
  40. disco \
  41. dtd2xsd \
  42. dtd2rng \
  43. gacutil \
  44. installvst \
  45. macpack \
  46. mcs \
  47. mjs \
  48. monolinker \
  49. mono-api-diff \
  50. mono-shlib-cop \
  51. mono-xmltool \
  52. mozroots \
  53. permview \
  54. prj2make \
  55. secutil \
  56. setreg \
  57. signcode \
  58. soapsuds \
  59. sqlsharp \
  60. xsd
  61. scripts_1_0_umask = \
  62. makecert \
  63. sn
  64. scripts_2_0 = \
  65. al2 \
  66. genxs2 \
  67. gmcs \
  68. httpcfg \
  69. ilasm2 \
  70. mconfig \
  71. mkbundle2 \
  72. mono-api-info2 \
  73. monop2 \
  74. resgen2 \
  75. wsdl2 \
  76. xsd2 \
  77. sgen \
  78. xbuild
  79. #
  80. # these are the new defaults, 2.0 profile-based commands
  81. #
  82. # we can move scripts_1_0 scripts here as we see fit, if we need to
  83. # keep a 1.0 command available, we should additionally put it on
  84. # the scripts_1_0_compat list
  85. #
  86. scripts_defaults = \
  87. al \
  88. genxs \
  89. ilasm \
  90. mkbundle \
  91. mono-api-info \
  92. monop \
  93. resgen \
  94. wsdl
  95. scripts_2_1 = smcs
  96. scripts_service = mono-service mono-service2
  97. scripts_nunit = nunit-console nunit-console2
  98. scripts_rpmhelpers = mono-find-provides mono-find-requires
  99. pkgconfigdir = $(libdir)/pkgconfig
  100. pkgconfig_DATA= mono-nunit.pc
  101. 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
  102. DISTCLEANFILES = $(pkgconfig_DATA) $(scripts_rpmhelpers)
  103. EXTRA_DIST = \
  104. script.in \
  105. script_umask.in \
  106. smcs.in \
  107. mono-service.in \
  108. mono-nunit.pc.in \
  109. mono-find-provides.in \
  110. mono-find-requires.in \
  111. mono-test-install
  112. if USE_JIT
  113. mono_interp = mono
  114. else
  115. mono_interp = mint
  116. endif
  117. if PLATFORM_WIN32
  118. plat_bindir = $(shell cygpath -m $(libdir))
  119. mono_instdir = $(shell cygpath -m $(libdir))/mono
  120. else
  121. plat_bindir = $(bindir)
  122. mono_instdir = $(prefix)/lib/mono
  123. endif
  124. REWRITE_COMMON = sed \
  125. -e 's,@''bindir@,$(bindir),g' \
  126. -e 's,@''plat_bindir@,$(plat_bindir),g' \
  127. -e 's,@''mono_instdir@,$(mono_instdir),g' \
  128. -e 's,@''gtkdir@,$(gtkdir),g'
  129. REWRITE = $(REWRITE_COMMON) -e 's,@''mono_interp@,$(mono_interp),g'
  130. REWRITE_DEBUG = $(REWRITE_COMMON) -e 's,@''mono_interp@,$(mono_interp) --debug,g'
  131. REWRITE1 = $(REWRITE) -e 's,@''framework_version@,1.0,g'
  132. REWRITE2 = $(REWRITE) -e 's,@''framework_version@,2.0,g'
  133. REWRITE2_1 = $(REWRITE) -e 's,@''framework_version@,2.1,g'
  134. REWRITE1_DEBUG = $(REWRITE_DEBUG) -e 's,@''framework_version@,1.0,g'
  135. REWRITE2_DEBUG = $(REWRITE_DEBUG) -e 's,@''framework_version@,2.0,g'
  136. mono-service: mono-service.in Makefile
  137. $(REWRITE1) -e 's,@''exe_name@,$@,g' $(srcdir)/mono-service.in > [email protected]
  138. mv [email protected] $@
  139. mono-service2: mono-service.in Makefile
  140. $(REWRITE2) -e 's,@''exe_name@,$@,g' $(srcdir)/mono-service.in > [email protected]
  141. mv [email protected] $@
  142. nunit-console: script.in Makefile
  143. $(REWRITE1_DEBUG) -e 's,@''exe_name@,nunit-console,g' $(srcdir)/script.in > [email protected]
  144. mv [email protected] $@
  145. nunit-console2: script.in Makefile
  146. $(REWRITE2_DEBUG) -e 's,@''exe_name@,nunit-console,g' $(srcdir)/script.in > [email protected]
  147. mv [email protected] $@
  148. smcs: smcs.in Makefile
  149. $(REWRITE2_1) -e "s,@""exe_name@,smcs,g" $(srcdir)/smcs.in > [email protected]
  150. mv [email protected] $@
  151. $(scripts_1_0): script.in Makefile
  152. $(REWRITE1) -e 's,@''exe_name@,$@,g' $(srcdir)/script.in > [email protected]
  153. mv [email protected] $@
  154. $(scripts_1_0_umask): script_umask.in Makefile
  155. $(REWRITE1) -e 's,@''exe_name@,$@,g' $(srcdir)/script_umask.in > [email protected]
  156. mv [email protected] $@
  157. $(scripts_1_0_compat): script.in Makefile
  158. t=`basename $@ 1`; $(REWRITE1) -e "s,@exe_name@,$$t,g" $(srcdir)/script.in > [email protected]
  159. mv [email protected] $@
  160. $(scripts_defaults): script.in Makefile
  161. $(REWRITE2) -e "s,@exe_name@,$@,g" $(srcdir)/script.in > [email protected]
  162. mv [email protected] $@
  163. $(scripts_2_0): script.in Makefile
  164. n=`echo $@ | sed 's,2$$,,'`; \
  165. $(REWRITE2) -e "s,@""exe_name@,$$n,g" $(srcdir)/script.in > [email protected]
  166. mv [email protected] $@