mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@664 b08762b0-b915-fc4b-9d8c-17b2551a87ff
97 lines
2.8 KiB
Makefile
97 lines
2.8 KiB
Makefile
#! make -f
|
|
#----------------------------------------------------------------------------
|
|
# Project: TwlSDK - demos - simpleShoot-1
|
|
# File: Makefile
|
|
#
|
|
# Copyright 2007 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 = \
|
|
../../../libraries_sysmenu/sysmenu \
|
|
../../../libraries_sysmenu/hotsw \
|
|
../../../components/hyena.TWL
|
|
# ../../../libraries_sysmenu/reloc_info \
|
|
# ../../../libraries_sysmenu/boot \
|
|
# ../../../libraries_sysmenu/mcu \
|
|
# $(TWLSDK_ROOT)/build/libraries/reboot \
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
#FIRM_BUILD = TRUE
|
|
|
|
TARGET_FIRM = SYSTEMMENU
|
|
TARGET_PLATFORM = TWL
|
|
TWL_CODEGEN = ARM
|
|
TWL_ARCHGEN = LIMITED
|
|
|
|
TITLEID_LO = LNCJ
|
|
TARGET_TAD = $(BINDIR)/$(TITLEID_LO).$(TWL_BUILD_DIR)$(CODEGEN_ARCH).tad
|
|
|
|
TARGET_BIN = main.srl
|
|
|
|
LCFILE_SPEC = ARM9-TS.lsf
|
|
LCFILE_TEMPLATE = ARM9-TS.lcf.template
|
|
ROM_SPEC = main.rsf
|
|
|
|
LOGO_DIR = Logo
|
|
MISC_DIR = ../../misc
|
|
|
|
BG_DIR = ../../data
|
|
|
|
SRCS_LOGO = logoDemo.c logoData.c
|
|
SRCS = main.c launcher.c sound.c bannerCounter.c loadWlanFirm.c \
|
|
$(addprefix $(LOGO_DIR)/, $(SRCS_LOGO)) \
|
|
$(MISC_DIR)/src/misc.c $(MISC_DIR)/src/cmn.c \
|
|
$(BG_DIR)/BGData_Launcher.c
|
|
|
|
LINCLUDES = $(MISC_DIR)/include \
|
|
$(SRCDIR)/$(LOGO_DIR)
|
|
|
|
LLIBRARIES += libes$(TWL_LIBSUFFIX).a \
|
|
libboc$(TWL_LIBSUFFIX).a \
|
|
libnam$(TWL_LIBSUFFIX).a \
|
|
libreloc_info$(TWL_LIBSUFFIX).a
|
|
|
|
ADDRESS_DTCM = 0x0e000000
|
|
|
|
DEFAULT_COMP_ARM7 = hyena
|
|
|
|
MAKEROM_FLAGS += -F -DTITLEID_LO='$(TITLEID_LO)'
|
|
ifdef FIRM_BUILD
|
|
MAKEROM_FLAGS += -s \
|
|
-DSYS_PRIV_KEY=$(TWL_KEYSDIR)/rsa/private9_0.der \
|
|
-DSYS_PUB_KEY=$(TWL_KEYSDIR)/rsa/public9_0.der
|
|
endif
|
|
|
|
MAKETAD_FLAGS += -s
|
|
|
|
include $(TWL_IPL_RED_ROOT)/build/buildtools/commondefs
|
|
include $(TWLSDK_ROOT)/build/libraries/reboot/commondefs.reboot
|
|
|
|
MAKEROM = $(TWL_IPL_RED_ROOT)/tools/bin/makerom.TWL.sys.exe
|
|
|
|
LDIRT_CLEAN = $(TARGET_TAD)
|
|
INSTALL_TARGETS = $(TARGET_TAD)
|
|
INSTALL_DIR = $(SDK_NMENU_DATADIR)
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
do-build : $(TARGETS)
|
|
|
|
|
|
include $(TWL_IPL_RED_ROOT)/build/buildtools/modulerules
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
#===== End of Makefile =====
|