1#! make -f 2#---------------------------------------------------------------------------- 3# Project: TwlSDK - tools 4# File: Makefile 5# 6# Copyright 2007-2009 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-07-10#$ 15# $Rev: 10884 $ 16# $Author: okubata_ryoma $ 17#---------------------------------------------------------------------------- 18TARGET_PLATFORM := TWL NITRO 19 20include $(TWLSDK_ROOT)/build/buildtools/commondefs 21#---------------------------------------------------------------------------- 22 23SUBDIRS_P = ntexconv \ 24 bin2obj \ 25 makelst \ 26 ppmconv \ 27 stripdebug \ 28 mic2wav \ 29 30 31ifneq ($(filter TWL,$(TARGET_PLATFORM_LIST)),) 32SUBDIRS_P += buryarg.TWL \ 33 loadrun.TWL \ 34 makelcf.TWL \ 35 36ifeq ($(TWLSDK_HIDDEN),TRUE) 37SUBDIRS_P += makerom.TWL \ 38 maketad \ 39 cmptad \ 40 aesconv \ 41 compstatic.TWL \ 42 makebanner.TWL 43endif 44endif 45 46ifneq ($(filter NITRO,$(TARGET_PLATFORM_LIST)),) 47SUBDIRS_P += makelcf \ 48 loadrun \ 49 buryarg \ 50 51ifeq ($(TWLSDK_HIDDEN),TRUE) 52SUBDIRS += makebanner \ 53 defval \ 54 55SUBDIRS_P += makerom \ 56 compstatic \ 57 rc4conv \ 58 addbanner \ 59 attachsign \ 60 init2env \ 61 makebanner-default \ 62 showversion \ 63 tad2rom \ 64 xml2env \ 65 slicerom \ 66 emuchild \ 67 defval/test \ 68 chscope 69 70endif 71endif 72 73ifeq ($(TWLSDK_HIDDEN),TRUE) 74SUBDIRS_P += compBLZ 75endif 76 77ifeq ($(TWLSDK_PRIVATE),TRUE) 78SUBDIRS_P += sdkindent \ 79 ntrcomp 80endif 81 82#------------------------------------------------------------------ 83# After installation, change over CRLF to LF in the bash script in tools/bin 84# 85#------------------------------------------------------------------ 86ifeq ($(MAKECMDGOALS),install) 87INSTALL_TARGETS = TRUE 88override DO_INSTALL = $(REMAKE) changeD2U 89endif 90 91changeD2U: 92 for i in $(TWL_INSTALL_TOOLSDIR)/bin/*; do \ 93 if [ -f $$i ]; then \ 94 if [ "`sed '1!d;/^#!.*bash/!d' $$i | wc -l`" -eq "1" ]; then \ 95 tr -d '\r' < $$i > $$i.new; \ 96 mv $$i.new $$i; \ 97 fi \ 98 fi \ 99 done 100 101#---------------------------------------------------------------------------- 102 103include $(TWLSDK_ROOT)/build/buildtools/modulerules 104 105 106#===== End of Makefile ===== 107