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:: 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-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
34
35CCFLAGS += -DLIBSUFFIX="'$(TWL_LIBSUFFIX)'"
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
57
58#===== End of Makefile =====
59