2020-11-14 20:35:51 +01:00
|
|
|
ATMOSPHERE_BUILD_CONFIGS :=
|
|
|
|
all: arm64-release arm-release
|
2020-05-05 08:33:16 +02:00
|
|
|
|
2020-11-14 20:35:51 +01:00
|
|
|
define ATMOSPHERE_ADD_TARGET
|
2020-05-05 08:33:16 +02:00
|
|
|
|
2020-11-14 20:35:51 +01:00
|
|
|
ATMOSPHERE_BUILD_CONFIGS += $(strip $1)
|
2020-05-05 08:33:16 +02:00
|
|
|
|
2020-11-14 20:35:51 +01:00
|
|
|
arm64-$(strip $1):
|
2020-11-14 21:17:38 +01:00
|
|
|
@$$(MAKE) -f arm64.mk $(strip $1)
|
2020-05-05 08:33:16 +02:00
|
|
|
|
2020-11-14 20:35:51 +01:00
|
|
|
arm-$(strip $1):
|
2020-11-14 21:17:38 +01:00
|
|
|
@$$(MAKE) -f arm.mk $(strip $1)
|
2020-05-05 08:33:16 +02:00
|
|
|
|
2020-11-14 20:35:51 +01:00
|
|
|
clean-arm64-$(strip $1):
|
2020-11-14 21:17:38 +01:00
|
|
|
@$$(MAKE) -f arm64.mk clean-$(strip $1)
|
2020-05-05 08:33:16 +02:00
|
|
|
|
2020-11-14 20:35:51 +01:00
|
|
|
clean-arm-$(strip $1):
|
2020-11-14 21:17:38 +01:00
|
|
|
@$$(MAKE) -f arm.mk clean-$(strip $1)
|
2020-11-14 20:35:51 +01: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 21:17:38 +01:00
|
|
|
@$(MAKE) -f arm64.mk clean
|
2020-05-05 08:33:16 +02:00
|
|
|
|
2020-11-14 20:35:51 +01:00
|
|
|
clean-arm:
|
2020-11-14 21:17:38 +01:00
|
|
|
@$(MAKE) -f arm.mk clean
|
2020-11-14 20:35:51 +01: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))
|