mirror of
https://github.com/rvtr/TwlToolsRED.git
synced 2025-10-31 06:41:18 -04:00
99 lines
3.3 KiB
Makefile
99 lines
3.3 KiB
Makefile
#! make -f
|
||
#----------------------------------------------------------------------------
|
||
# Project: TwlSDK - demos - MI - ndma-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:: 2008-01-17#$
|
||
# $Rev: 3650 $
|
||
# $Author: okubata_ryoma $
|
||
#----------------------------------------------------------------------------
|
||
SUBDIRS = ./banner
|
||
|
||
TARGET_PLATFORM := TWL
|
||
TWL_ARCHGEN := LIMITED
|
||
|
||
SRCDIR = ../common/src ./src
|
||
|
||
SRCS = main.c mfiler.c key.c font.c text.c mprintf.c logprintf.c \
|
||
gfx.c hwi.c mynvram.c my_fs_util.c \
|
||
hatamotolib.cpp miya_mcu.c error_report.c \
|
||
sitedefs.c wcm_control.c netconnect.c mywlan.c \
|
||
mynuc.c nuc_error_msg.c stream.c myfilename.c menu_version.c
|
||
|
||
TARGET_BIN = copy_dst.srl
|
||
ROM_SPEC = copy_dst.rsf
|
||
TARGET_AUTOBOOT = ./bin/$(TWL_BUILDTYPE)/copy_dst_autoboot.srl
|
||
|
||
|
||
ES_DIR = $(ROOT)/add-ins/es
|
||
ES_LATEST = $(shell ls -d $(ES_DIR)/es-sdk-*|sort|tail -n 1)
|
||
ES_ROOT = $(ES_LATEST)
|
||
|
||
LINCLUDES = $(TWLSDK_ROOT)/build/libraries/lcfg/ARM9.TWL/include ../common/src \
|
||
$(ES_ROOT)/twl/include $(ES_ROOT)/common/lib/ec/include
|
||
|
||
LLIBRARY_DIRS += $(ES_ROOT)/twl/lib/$(TWL_BUILDTYPE) ../wifilib/$(TWL_BUILDTYPE)
|
||
# LLIBRARY_DIRS += $(ES_ROOT)/twl/lib/$(TWL_BUILDTYPE)
|
||
|
||
|
||
LLIBRARIES += libecx$(TWL_LIBSUFFIX).a \
|
||
liblcfg$(TWL_LIBSUFFIX).a \
|
||
libnhttp.nssl$(TWL_LIBSUFFIX).a \
|
||
libnssl$(TWL_LIBSUFFIX).a \
|
||
libshr$(TWL_LIBSUFFIX).a \
|
||
libnuc$(TWL_LIBSUFFIX).a \
|
||
libnup$(TWL_LIBSUFFIX).a \
|
||
libnam$(TWL_LIBSUFFIX).a \
|
||
libes$(TWL_LIBSUFFIX).a \
|
||
libsea$(TWL_LIBSUFFIX).a \
|
||
libboc$(TWL_LIBSUFFIX).a \
|
||
libsfs$(TWL_LIBSUFFIX).a \
|
||
libna$(TWL_LIBSUFFIX).a \
|
||
|
||
|
||
# libnhttp$(TWL_LIBSUFFIX).a \
|
||
|
||
|
||
MAKEROM_ROMROOT = ../files
|
||
MAKEROM_ROMFILES = fanfare.32.wav ok.wav ng.wav cursor.wav
|
||
|
||
MY_TWL_COMPONENTSDIR = ../my_armadillo.TWL/bin
|
||
COMPONENT_NAME = armadillo
|
||
|
||
# MAKEROM_ARM7_BASE = $(MY_TWL_COMPONENTSDIR)/$(COMPONENT_NAME)/$(TWL_BUILDTYPE_ARM7)/$(COMPONENT_NAME)
|
||
MAKEROM_ARM7_BASE = $(MY_TWL_COMPONENTSDIR)/$(TWL_BUILDTYPE_ARM7)/$(COMPONENT_NAME)
|
||
MAKEROM_ARM7 = $(MAKEROM_ARM7_BASE).$(TWL_ELF_EXT)
|
||
|
||
|
||
include $(TWLWIFI_ROOT)/build/buildtools/commondefs
|
||
include $(TWLSDK_ROOT)/build/buildtools/commondefs
|
||
|
||
|
||
#----------------------------------
|
||
# <20>Z<EFBFBD>L<EFBFBD><4C><EFBFBD>A<EFBFBD>A<EFBFBD>v<EFBFBD><76><EFBFBD>w<EFBFBD><77>
|
||
|
||
MAKEROM := $(TWL_TOOLSDIR)/bin/makerom.TWL.secure.exe
|
||
|
||
|
||
#----------------------------------------------------------------------------
|
||
|
||
#----------------------------------------------------------------------------
|
||
|
||
$(TARGET_AUTOBOOT): ./bin/$(TWL_BUILDTYPE)/$(TARGET_BIN)
|
||
../bin/FakeRomHeader.secure.exe -c -f $< $@
|
||
|
||
do-build: $(TARGETS) $(TARGET_AUTOBOOT)
|
||
|
||
#----------------------------------------------------------------------------
|
||
|
||
include $(TWLWIFI_ROOT)/build/buildtools/modulerules
|
||
include $(TWLSDK_ROOT)/build/buildtools/modulerules
|