1#! make -f
2#----------------------------------------------------------------------------
3# Project:  TwlSDK - demos - spi - mic-4
4# File:     Makefile
5#
6# Copyright 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
21SRCS			 =   main.c
22TARGET_BIN		 =   main.srl
23
24#----------------------------------------------------------------------------
25
26include $(TWLSDK_ROOT)/build/buildtools/commondefs
27include	$(TWLSDK_ROOT)/build/buildtools/commondefs.gx.demolib
28
29#----------------------------------------------------------------------------
30
31do-build:		$(TARGETS)
32
33#----------------------------------------------------------------------------
34
35include $(TWLSDK_ROOT)/build/buildtools/modulerules
36
37#----------------------------------------------------------------------------
38# Convert sampling data to a WAV file
39capture:
40	rm -f *.wav
41	@echo "now capturing MIC..."
42	$(TWL_TOOLSDIR)/bin/loadrun.TWL.exe $(BINDIR)/$(TARGET_BIN) >./log.txt
43	$(TWL_TOOLSDIR)/bin/mic2wav.exe ./log.txt
44
45#===== End of Makefile =====
46