1#! make -f 2#---------------------------------------------------------------------------- 3# Project: TwlSDK - buildsetup - create register map of TWL 4# File: Makefile.TWL 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 19override TWLSDK_PLATFORM = TWL 20override TARGET_PLATFORM = TWL 21 22#---------------------------------------------------------------------------- 23 24WORKDIR = twl/hw/ARM9 25TARGET = $(WORKDIR)/ioreg.h 26 27CSVSRC = io_register_list.TWL.csv 28SCRIPT = ./header_generator_ioreg.TWL.pl 29 30NEWDIRS = $(WORKDIR) 31 32#---------------------------------------------------------------------------- 33 34TARGET_PREFIX = $(TARGET:.h=) 35TARGET_SUBFILES = $(TARGET_PREFIX)_*.h 36TARGET_TMPCSV = $(TARGET_PREFIX).csv 37 38# build 39TARGETS = $(TARGET) $(TARGET_SUBFILES) 40 41# install 42INSTALL_TARGETS = $(TARGETS) 43INSTALL_DIR = $(TWL_INSTALL_INCDIR)/$(WORKDIR) 44override DO_INSTALL = $(DO_INSTALL_WILDCARD) 45 46# clean/clobber 47LDIRT_CLEAN = $(firstword $(subst /, ,$(WORKDIR))) 48LDIRT_CLOBBER = 49 50include $(TWLSDK_ROOT)/build/buildtools/commondefs 51 52#---------------------------------------------------------------------------- 53 54do-build: $(TARGET) 55 56$(TARGET): $(CSVSRC) $(SCRIPT) $(MAKEFILE) 57 $(CP) $(CSVSRC) $(TARGET_TMPCSV) 58 $(PERL) $(SCRIPT) $(TARGET_TMPCSV) 59 60#---------------------------------------------------------------------------- 61 62include $(TWLSDK_ROOT)/build/buildtools/modulerules 63 64#----- End of Makefile ----- 65