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:: 2008-09-18#$
15# $Rev: 8573 $
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
35
36GINCLUDES		+=	\
37				$(ROOT)/include/twl		\
38				$(ROOT)/include/twl/el	\
39#----------------------------------------------------------------------------
40
41SUBDIRS			 =
42
43#----------------------------------------------------------------------------
44
45#SRCDIR			 =	# using default
46#LCFILE			 =	# using default
47
48#----------------------------------------------------------------------------
49
50do-build:		$(TARGETS)
51
52include	$(TWLSDK_ROOT)/build/buildtools/modulerules
53
54staticsymlist.c:		$(OBJDIR)/main.o
55	$(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
56
57#===== End of Makefile =====
58