[wasm] Fix several typos (#16760)
[mono-project.git] / sdks / builds / bcl.mk
blob6db964448cda7e076083acde5c8c0d83c309221a
2 _bcl_CONFIGURE_FLAGS = \
3 $(if $(filter $(UNAME),Windows),--host=$(HOST_ARCH_MINGW32)-w64-mingw32) \
4 --disable-boehm \
5 --disable-btls-lib \
6 --disable-nls \
7 --disable-support-build \
8 --with-mcs-docs=no
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)
13 touch $@
15 .PHONY: build-bcl
16 build-bcl: .stamp-bcl-configure
17 $(MAKE) -C bcl -C mono
19 .PHONY: clean-bcl
20 clean-bcl:
21 rm -rf .stamp-bcl-configure $(TOP)/sdks/builds/bcl
24 # Parameters
25 # $(1): product
26 # $(2): build profiles
27 # $(3): test profiles
28 define BclTemplate
30 .stamp-$(1)-bcl-toolchain:
31 touch $$@
33 .stamp-$(1)-bcl-configure: .stamp-bcl-configure
34 touch $$@
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
49 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
62 .PHONY: build-$(1)
63 build-$(1): build-$(1)-bcl
65 .PHONY: archive-$(1)
66 archive-$(1): package-$(1)-bcl
68 $(1)_ARCHIVE += $(1)-bcl
70 endef