1############################################################################### 2# Revolution Shared Object demo 3# 4# Copyright (C) 2001-2006 Nintendo All rights reserved. 5# 6# These coded instructions, statements, and computer programs contain 7# proprietary information of Nintendo of America Inc. and/or Nintendo 8# Company Ltd., and are protected by Federal copyright law. They may 9# not be disclosed to third parties or copied or duplicated in any form, 10# in whole or in part, without the prior written consent of Nintendo. 11# 12############################################################################### 13 14### Targets directory name 15TARGET_DIRS = LinkList LinkListFixed0 LinkMem2 LinkFar MakeInc Manually LinkJump 16 17 18### Macro for execting sub dirs 19define EXECUTE_SUBDIRS 20 @$(foreach SUBDIR, $(TARGET_DIRS), \ 21 (cd $(SUBDIR) && $(MAKE) $(1));\ 22 ) exit 23endef 24 25 26### Targets 27all: 28 $(call EXECUTE_SUBDIRS,$(@)) 29 30%: 31 $(call EXECUTE_SUBDIRS,$(@)) 32