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@239 b871894f-2f95-9b40-918c-086798483c85
79 lines
2.3 KiB
Makefile
79 lines
2.3 KiB
Makefile
#! make -f
|
|
#----------------------------------------------------------------------------
|
|
# Project: CtrFirm - 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.
|
|
#
|
|
# $Date:: $
|
|
# $Rev$
|
|
# $Author$
|
|
#----------------------------------------------------------------------------
|
|
|
|
SUBDIRS =
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
WORKDIR = ctr/hw/ARM11
|
|
TARGET = $(WORKDIR)/ioreg.h
|
|
|
|
CSVSRC = io_register_list.csv
|
|
SCRIPT = header_generator_ioreg.pl
|
|
|
|
NEWDIRS = $(WORKDIR)
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
TARGET_PREFIX = $(subst .h,,$(TARGET))
|
|
TARGET_SUBFILES = $(TARGET_PREFIX)_*.h
|
|
TARGET_TMPCSV = $(TARGET_PREFIX).csv
|
|
|
|
NE1_SUFFIX = _ne1patch
|
|
CSVSRC_PATCH = $(basename $(CSVSRC))$(NE1_SUFFIX)$(suffix $(CSVSRC))
|
|
TARGET_PATCH = $(basename $(TARGET))$(NE1_SUFFIX)$(suffix $(TARGET))
|
|
TARGET_PATCH_PREFIX = $(subst .h,,$(TARGET_PATCH))
|
|
TARGET_PATCH_SUBFILES = $(TARGET_PATCH_PREFIX)_*.h
|
|
TARGET_PATCH_TMPCSV = $(TARGET_PATCH_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 $(CTRFIRM_ROOT)/build/buildtools/commondefs
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
do-build: $(TARGET)
|
|
|
|
$(TARGET): $(CSVSRC) $(CSVSRC_PATCH) $(SCRIPT)
|
|
$(CP) $(CSVSRC) $(TARGET_TMPCSV)
|
|
$(PERL) $(SCRIPT) $(TARGET_TMPCSV)
|
|
ifeq ($(CTR_PLATFORM),NE1EMU)
|
|
$(CP) $(CSVSRC_PATCH) $(TARGET_PATCH_TMPCSV)
|
|
$(PERL) $(SCRIPT) $(TARGET_PATCH_TMPCSV)
|
|
endif
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
include $(CTRFIRM_ROOT)/build/buildtools/modulerules
|
|
|
|
|
|
#----- End of Makefile -----
|