2 _bcl_CONFIGURE_FLAGS
= \
3 $(if
$(filter $(UNAME
),Windows
),--host
=$(HOST_ARCH_MINGW32
)-w64-mingw32
) \
7 --disable-support-build \
10 .stamp-bcl-configure
: $(TOP
)/configure
11 mkdir
-p
$(TOP
)/sdks
/builds
/bcl
12 .
/wrap-configure.sh
$(TOP
)/sdks
/builds
/bcl
$(abspath
$<) $(_bcl_CONFIGURE_FLAGS
)
16 build-bcl
: .stamp-bcl-configure
17 $(MAKE
) -C bcl
-C mono
21 rm -rf .stamp-bcl-configure
$(TOP
)/sdks
/builds
/bcl
26 # $(2): build profiles
30 .stamp-
$(1)-bcl-toolchain
:
33 .stamp-
$(1)-bcl-configure
: .stamp-bcl-configure
36 .PHONY
: setup-custom-
$(1)-bcl
37 setup-custom-
$(1)-bcl
:
38 mkdir
-p
$$(TOP
)/sdks
/out
/$(1)-bcl
$$(foreach profile
,$(2),$$(TOP
)/sdks
/out
/$(1)-bcl
/$$(profile
))
40 .PHONY
: build-
$(1)-bcl
41 build-
$(1)-bcl
: build-bcl
43 .PHONY
: build-custom-
$(1)-bcl
44 build-custom-
$(1)-bcl
:
45 $$(MAKE
) -C bcl
-C runtime all-mcs build_profiles
="$(2)" $$(_bcl_
$(1)_BUILD_FLAGS
)
46 $$(if
$(3),$$(MAKE
) -C bcl
-C runtime
test xunit-test test_profiles
="$(3)" $$(_bcl_
$(1)_BUILD_FLAGS
))
48 .PHONY
: package-
$(1)-bcl
50 $$(foreach profile
,$(2), \
51 cp
-R
$$(TOP
)/mcs
/class
/lib
/$$(profile
)/* $$(TOP
)/sdks
/out
/$(1)-bcl
/$$(profile
);)
53 .PHONY
: clean-
$(1)-bcl
54 clean-
$(1)-bcl
: clean-bcl
55 rm -rf
$$(TOP
)/sdks
/out
/$(1)-bcl
$$(foreach profile
,$(2),$$(TOP
)/sdks
/out
/$(1)-bcl
/$$(profile
))
57 $$(eval
$$(call TargetTemplate
,$(1),bcl
))
59 .PHONY
: configure-
$(1)
60 configure-
$(1): configure-
$(1)-bcl
63 build-
$(1): build-
$(1)-bcl
66 archive-
$(1): package-
$(1)-bcl
68 $(1)_ARCHIVE
+= $(1)-bcl