1#! make -f 2#---------------------------------------------------------------------------- 3# Project: TwlSDK - demos.TWL - ctr-compatible - build 4# File: Makefile 5# 6# Copyright 2007 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)/counter.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-ctr.pl \ 46 $(MAKEROM_ROMROOT)/sample16.txt \ 47 $(MAKEROM_ROMROOT)/key.bin \ 48 $(MAKEROM_ROMROOT)/counter.bin \ 49 $(MAKEROM_ROMROOT)/encrypted.bin 50 51 52include $(TWLSDK_ROOT)/build/buildtools/modulerules 53 54 55#===== End of Makefile ===== 56