
# Cg src/GNUmakefile

# This make files quietly makes any specified target for all SUBDIRS

include ../../src/build_tools/cg/getprofile.mk

# Only Windows supports Direct3D9.
# Other platforms should not build these subdirectories.
ifeq ($(OS), win32)
SUBDIRS = basic advanced
endif

define SPAWN_MAKE
	$(MAKE) -C $(1) $@

endef

$(PROFILE):
	$(foreach dir,$(SUBDIRS),$(call SPAWN_MAKE,$(dir)))

.DEFAULT:
	$(foreach dir,$(SUBDIRS),$(call SPAWN_MAKE,$(dir)))

ifndef VERBOSE
.SILENT:
endif
