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