1#! make -f
2#----------------------------------------------------------------------------
3# Project:  TwlSDK - demos - el - simple-1
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-1_dllA/include
28
29LDIRT_CLEAN		 = data/dllA$(TWL_LIBSUFFIX).a data/dllA_debug$(TWL_LIBSUFFIX).a staticsymlist.c
30
31ROM_SPEC		 =	main.rsf
32
33include	$(TWLSDK_ROOT)/build/buildtools/commondefs
34include	$(TWLSDK_ROOT)/build/buildtools/commondefs.gx.demolib
35
36CCFLAGS += -DLIBSUFFIX="'$(TWL_LIBSUFFIX)'"
37
38GINCLUDES		+= \
39				$(ROOT)/include/twl		\
40				$(ROOT)/include/twl/el	\
41#----------------------------------------------------------------------------
42
43SUBDIRS			 =
44
45#----------------------------------------------------------------------------
46
47#SRCDIR			 =	# using default
48#LCFILE			 =	# using default
49
50#----------------------------------------------------------------------------
51
52do-build:		$(TARGETS)
53
54include	$(TWLSDK_ROOT)/build/buildtools/modulerules
55
56staticsymlist.c:		$(OBJDIR)/main.o
57	$(MAKELST) -o staticsymlist.c --static $(OBJDIR)/main.o $(call empath,$(TWL_LIBDIR)/libos$(TWL_LIBSUFFIX).a) --dll $(DATA_DIR)/dllA.a
58
59#===== End of Makefile =====
60