1#! make -f
2#----------------------------------------------------------------------------
3# Project:  TwlSDK - dsp - demo - Scaling
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:: #$
15# $Rev: 8573 $
16# $Author: okubata_ryoma $
17#----------------------------------------------------------------------------
18
19SUBDIRS		=
20
21
22#----------------------------------------------------------------------------
23TARGET_PLATFORM		:= TWL
24
25TARGET_BIN	=	main.srl
26
27SRCDIR		=	./src
28
29SRCS		=	main.c
30
31DATA_DIR	=	./data
32EXT_OBJS	+= $(patsubst $(DATA_DIR)/%.dat,$(OBJDIR)/%.o,$(wildcard $(DATA_DIR)/*.dat))
33
34#----------------------------------------------------------------------------
35
36include	$(TWLSDK_ROOT)/build/buildtools/commondefs
37include	$(TWLSDK_ROOT)/build/buildtools/commondefs.gx.demolib
38
39#----------------------------------------------------------------------------
40
41do-build:		$(TARGETS)
42
43include	$(TWLSDK_ROOT)/build/buildtools/modulerules
44
45$(OBJDIR)/%.o : $(DATA_DIR)/%.dat
46	$(BIN2OBJ) --compatible $< $@ >/dev/null
47
48#----------------------------------------------------------------------------
49
50#===== End of Makefile =====