1#! make -f 2#---------------------------------------------------------------------------- 3# Project: TwlSDK - demos.TWL - ccm-compatible - build 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 19SUBDIRS = 20 21#---------------------------------------------------------------------------- 22TARGET_PLATFORM := TWL 23 24SRCS = main.c 25TARGET_BIN = main.srl 26 27MAKEROM_ROMROOT = ./rom_data 28MAKEROM_ROMFILES = *.* 29 30LDIRT_CLEAN = $(MAKEROM_ROMROOT)/nonce.bin $(MAKEROM_ROMROOT)/encrypted.bin 31 32include $(TWLSDK_ROOT)/build/buildtools/commondefs 33include $(TWLSDK_ROOT)/build/buildtools/commondefs.gx.demolib 34 35#---------------------------------------------------------------------------- 36 37.PHONY: rom_data 38 39do-build: $(TARGETS) 40 41 42$(BINDIR)/main.srl: rom_data 43 44rom_data: 45 $(PERL) aes-128-ccm.pl \ 46 $(MAKEROM_ROMROOT)/sample_adata.txt \ 47 $(MAKEROM_ROMROOT)/sample_pdata.txt \ 48 16 \ 49 $(MAKEROM_ROMROOT)/key.bin \ 50 $(MAKEROM_ROMROOT)/nonce.bin \ 51 $(MAKEROM_ROMROOT)/encrypted.bin 52 53 54include $(TWLSDK_ROOT)/build/buildtools/modulerules 55 56 57#===== End of Makefile ===== 58