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:: 2008-09-18#$ 15# $Rev: 8573 $ 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 33 34#---------------------------------------------------------------------------- 35 36.PHONY: rom_data 37 38do-build: $(TARGETS) 39 40 41$(BINDIR)/main.srl: rom_data 42 43rom_data: 44 $(PERL) aes-128-ccm.pl \ 45 $(MAKEROM_ROMROOT)/sample_adata.txt \ 46 $(MAKEROM_ROMROOT)/sample_pdata.txt \ 47 16 \ 48 $(MAKEROM_ROMROOT)/key.bin \ 49 $(MAKEROM_ROMROOT)/nonce.bin \ 50 $(MAKEROM_ROMROOT)/encrypted.bin 51 52 53include $(TWLSDK_ROOT)/build/buildtools/modulerules 54 55 56#===== End of Makefile ===== 57