2020-11-14 19:35:51 +00:00
|
|
|
ATMOSPHERE_BUILD_CONFIGS :=
|
|
|
|
all: arm64-release arm-release
|
2020-05-05 06:33:16 +00:00
|
|
|
|
2020-11-14 19:35:51 +00:00
|
|
|
define ATMOSPHERE_ADD_TARGET
|
2020-05-05 06:33:16 +00:00
|
|
|
|
2020-11-14 19:35:51 +00:00
|
|
|
ATMOSPHERE_BUILD_CONFIGS += $(strip $1)
|
2020-05-05 06:33:16 +00:00
|
|
|
|
2020-11-14 19:35:51 +00:00
|
|
|
arm64-$(strip $1):
|
2020-11-14 20:17:38 +00:00
|
|
|
@$$(MAKE) -f arm64.mk $(strip $1)
|
2020-05-05 06:33:16 +00:00
|
|
|
|
2020-11-14 19:35:51 +00:00
|
|
|
arm-$(strip $1):
|
2020-11-14 20:17:38 +00:00
|
|
|
@$$(MAKE) -f arm.mk $(strip $1)
|
2020-05-05 06:33:16 +00:00
|
|
|
|
2020-11-14 19:35:51 +00:00
|
|
|
clean-arm64-$(strip $1):
|
2020-11-14 20:17:38 +00:00
|
|
|
@$$(MAKE) -f arm64.mk clean-$(strip $1)
|
2020-05-05 06:33:16 +00:00
|
|
|
|
2020-11-14 19:35:51 +00:00
|
|
|
clean-arm-$(strip $1):
|
2020-11-14 20:17:38 +00:00
|
|
|
@$$(MAKE) -f arm.mk clean-$(strip $1)
|
2020-11-14 19:35:51 +00:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call ATMOSPHERE_ADD_TARGET, release))
|
|
|
|
$(eval $(call ATMOSPHERE_ADD_TARGET, debug))
|
|
|
|
$(eval $(call ATMOSPHERE_ADD_TARGET, audit))
|
|
|
|
|
|
|
|
clean-arm64:
|
2020-11-14 20:17:38 +00:00
|
|
|
@$(MAKE) -f arm64.mk clean
|
2020-05-05 06:33:16 +00:00
|
|
|
|
2020-11-14 19:35:51 +00:00
|
|
|
clean-arm:
|
2020-11-14 20:17:38 +00:00
|
|
|
@$(MAKE) -f arm.mk clean
|
2020-11-14 19:35:51 +00:00
|
|
|
|
|
|
|
clean: clean-arm64 clean-arm
|
|
|
|
|
|
|
|
.PHONY: all clean clean-arm64 clean-arm $(foreach config,$(ATMOSPHERE_BUILD_CONFIGS),arm64-$(config) arm-$(config) clean-arm64-$(config) clean-arm-$(config))
|