1#! make -f
2#----------------------------------------------------------------------------
3# Project:  TwlSDK - demos - el - simple-2
4# File:     Makefile
5#
6# Copyright 2007-2008 Nintendo.  All rights reserved.
7#
8# These coded instructions, statements, and computer programs contain
9# proprietary information of Nintendo of America Inc. and/or Nintendo
10# Company Ltd., and are protected by Federal copyright law.  They may
11# not be disclosed to third parties or copied or duplicated in any form,
12# in whole or in part, without the prior written consent of Nintendo.
13#
14# $Date:: 2009-09-24#$
15# $Rev: 11063 $
16# $Author: okubata_ryoma $
17#----------------------------------------------------------------------------
18
19TARGET_PLATFORM	:= TWL
20
21TARGET_BIN		 = main.srl
22TARGET_NEF		 = main.tef
23
24SRCS			 = main.c staticsymlist.c
25DATA_DIR		 = ./data
26
27LINCLUDES		 =	../simple-2_dllA/include	\
28					../simple-2_dllB/include
29
30LDIRT_CLEAN		 = *.a staticsymlist.c $(wildcard $(DATA_DIR)/*.a)
31
32ROM_SPEC		 =	main.rsf
33
34include	$(TWLSDK_ROOT)/build/buildtools/commondefs
35include	$(TWLSDK_ROOT)/build/buildtools/commondefs.gx.demolib
36
37GINCLUDES		+=	\
38				$(ROOT)/include/twl		\
39				$(ROOT)/include/twl/el	\
40#----------------------------------------------------------------------------
41
42SUBDIRS			 =
43
44#----------------------------------------------------------------------------
45
46#SRCDIR			 =	# using default
47#LCFILE			 =	# using default
48
49#----------------------------------------------------------------------------
50
51do-build:		$(TARGETS)
52
53include	$(TWLSDK_ROOT)/build/buildtools/modulerules
54
55staticsymlist.c:		$(OBJDIR)/main.o
56	$(MAKELST) -o staticsymlist.c --static $(OBJDIR)/main.o $(call empath,$(TWL_LIBDIR)/libos$(TWL_LIBSUFFIX).a) --dll $(DATA_DIR)/dllA.a $(DATA_DIR)/dllB.a
57
58#===== End of Makefile =====
59