mirror of
https://github.com/rvtr/ctr_firmware.git
synced 2025-10-31 07:51:08 -04:00
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-09-30%20-%20paladin.7z/paladin/ctr_firmware@2 b871894f-2f95-9b40-918c-086798483c85
64 lines
1.8 KiB
Makefile
64 lines
1.8 KiB
Makefile
#! make -f
|
|
#----------------------------------------------------------------------------
|
|
# Project: CtrBrom - buildsetup - create register map
|
|
# File: Makefile
|
|
#
|
|
# Copyright 2008 Nintendo. All rights reserved.
|
|
#
|
|
# These coded instructions, statements, and computer programs contain
|
|
# proprietary information of Nintendo of America Inc. and/or Nintendo
|
|
# Company Ltd., and are protected by Federal copyright law. They may
|
|
# not be disclosed to third parties or copied or duplicated in any form,
|
|
# in whole or in part, without the prior written consent of Nintendo.
|
|
#
|
|
# $Log: $
|
|
# $NoKeywords:$
|
|
#----------------------------------------------------------------------------
|
|
|
|
WORKDIR = ctr/hw/ARM9
|
|
TARGET = $(WORKDIR)/ioreg.h
|
|
|
|
CSVSRC = io_register_list.csv
|
|
SCRIPT = ./header_generator_ioreg_sp.pl
|
|
|
|
NEWDIRS = $(WORKDIR)
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
TARGET_PREFIX = $(subst .h,,$(TARGET))
|
|
TARGET_SUBFILES = $(TARGET_PREFIX)_*.h
|
|
TARGET_TMPCSV = $(TARGET_PREFIX).csv
|
|
|
|
# build
|
|
TARGETS = $(TARGET) $(TARGET_SUBFILES)
|
|
|
|
# install
|
|
INSTALL_TARGETS = $(TARGETS)
|
|
INSTALL_DIR = $(CTR_INSTALL_INCDIR)/$(WORKDIR)
|
|
override DO_INSTALL = $(DO_INSTALL_WILDCARD)
|
|
|
|
# clean/clobber
|
|
LDIRT_CLEAN = $(TARGET_TMPCSV) $(TARGETS) \
|
|
$(firstword $(subst /, ,$(WORKDIR)))
|
|
LDIRT_CLOBBER =
|
|
|
|
|
|
include $(CTRSDK_ROOT)/build/buildtools/commondefs
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
do-build: $(TARGET)
|
|
|
|
|
|
$(TARGET): $(CSVSRC) $(SCRIPT)
|
|
$(CP) $(CSVSRC) $(TARGET_TMPCSV)
|
|
$(PERL) $(SCRIPT) $(TARGET_TMPCSV)
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
include $(CTRSDK_ROOT)/build/buildtools/modulerules
|
|
|
|
|
|
#----- End of Makefile -----
|