1#! make -f 2#---------------------------------------------------------------------------- 3# Project: TwlSDK - demos.TWL - nandApp - simple 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-26#$ 15# $Rev: 8694 $ 16# $Author: hatamoto_minoru $ 17#---------------------------------------------------------------------------- 18 19SUBDIRS = banner \ 20 $(ROOT)/build/demos/gx/UnitTours/DEMOLib 21 22#------------------------- 23#-- Specifies a NAND application build 24 25TWL_NANDAPP = TRUE 26 27 28#---------------------------------------------------------------------------- 29TARGET_PLATFORM := TWL 30TWL_ARCHGEN := LIMITED 31 32SRCS = main.c 33TARGET_BIN = nandAppSample.tad 34 35 36#------------------------- 37#-- A fixed RSF file is needed to specify several parameters for the NAND application 38 39ROM_SPEC = demo.rsf 40 41 42#------------------------- 43#--We can make the ROM-FS carry files in the same way as card applications 44 45MAKEROM_ROMROOT = ./rom_data 46MAKEROM_ROMFILES = *.* 47 48 49#------------------------- 50# All files within the ROM are autogenerated, so they can be deleted by 'clean' 51LDIRT_CLEAN = $(MAKEROM_ROMROOT) 52 53 54include $(TWLSDK_ROOT)/build/buildtools/commondefs 55include $(TWLSDK_ROOT)/build/buildtools/commondefs.gx.demolib 56 57#---------------------------------------------------------------------------- 58 59.PHONY: build_time 60 61do-build: $(TARGETS) 62 63 64#------------------------- 65#--Make it so that build_time.txt is created before the SRL is 66 67$(BINDIR)/$(TARGET_BIN_BASENAME).$(TWL_ELF_EXT): build_time 68 69 70#------------------------- 71#-- Create rom_data/build_time.txt 72 73build_time: 74 $(INSTALL) -d $(MAKEROM_ROMROOT) 75 echo -n "build at `date \"+%Y/%m/%d %H:%M:%S\"` on \"`hostname`\"" > $(MAKEROM_ROMROOT)/build_time.txt 76 77 78include $(TWLSDK_ROOT)/build/buildtools/modulerules 79 80 81#===== End of Makefile ===== 82