TwlIPL/build/tests/WirelessChecker/libraries/nwm/ARM7/Makefile
yosiokat bb1732d800 ・デフォルトでREDランチャー、RED本体設定、NandInitializerなどのARM9側をTHUMBにするよう変更。
(nandfirmなどのファーム系はARM9もARMのまま)
・ビルドオプションの整理。問題がないところは、基本TARGET_CODEGENを使用するよう変更。
・NitroSystemをLTD,HYB両方でARM,THUMBビルドするよう変更。


git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2167 b08762b0-b915-fc4b-9d8c-17b2551a87ff
2008-08-15 12:09:14 +00:00

127 lines
3.7 KiB
Makefile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#! make -f
#----------------------------------------------------------------------------
# Project: TwlSDK - WM - libraries
# File: Makefile
#
# Copyright 2003 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 =
#----------------------------------------------------------------------------
override TARGET_PLATFORM = TWL
# Codegen for sub processer
TWL_PROC = ARM7
# build ARM & THUMB libraries
TARGET_CODEGEN ?= ALL
MACRO_FLAGS = -DNWM_WRACK_FIRMWARE
NWM_SRCDIR = $(ROOT)/build/libraries/wm/ARM7.TWL/nwm
#----------------------------------------------------------------------------
# INCDIR <>ˆÓ“_<E2809C>F
INCDIR = $(NWM_SRCDIR)/inc $(NWM_SRCDIR)/../../inc \
$(NWM_SRCDIR)/../../ARM7/inc $(NWM_SRCDIR)/../../common.TWL/inc \
$(NWM_SRCDIR)/../common/inc \
$(NWM_SRCDIR)/../../../wpa/include \
$(TWLWIRELESS_ROOT)/include \
$(TWLWIRELESS_ROOT)/host/include \
$(TWLWIRELESS_ROOT)/host/wlan/include \
$(TWLWIRELESS_ROOT)/host/os/twl/include \
$(TWLWIRELESS_ROOT)/host/os/twl/library/athioctl/include \
$(TWLWIRELESS_ROOT)/host/os/nitro/include \
$(TWLWIRELESS_ROOT)/host/os/nitro/library/athioctl/include \
$(ROOT)/build/libraries/spi/ARM7/include
SRCDIR_ = ../../ARM7/src src ../../common.TWL/src
SRCDIR = $(addprefix $(NWM_SRCDIR)/, $(SRCDIR_))
SRCS_ARM7 = nwmsp_system.c \
nwmsp_cmd.c \
nwmsp_event.c \
nwmsp_wlan_handler.c \
nwmsp_event_handler.c \
nwmsp_beaconinfo.c
SRCS_COMMON = nwm_loaddev.c \
nwm_unloaddev.c \
nwm_open.c \
nwm_close.c \
nwm_startscan.c \
nwm_connect.c \
nwm_disconnect.c \
nwm_sendframe.c \
nwm_recvframe.c \
nwm_setwepkey.c \
nwm_setpowersave.c \
nwm_wpa.c \
nwm_qos.c \
nwm_reset.c
SRCS = $(addprefix $(NWM_SRCDIR)/src/, $(SRCS_ARM7)) \
$(addprefix $(NWM_SRCDIR)/../../common.TWL/src/, $(SRCS_COMMON)) \
../src/nwm_installfirm_autogen.c
TARGET_LIB = libnwm_sp.WCKR$(TWL_LIBSUFFIX).a
#----------------------------------------------------------------------------
# DEBUG”ŃrƒƒhÌ<E2809A>ê<EFBFBD><EFBFBD>ARELEASE”ÅŃrƒƒhµÄ
# DEBUG”Å̃‰ƒCƒuƒ‰ƒŠð¢Ü·<E2809A>B
ifdef TARGET_DEBUG
TWL_BUILD_TYPE = RELEASE
else
ifdef TWL_DEBUG
TWL_BUILD_TYPE = RELEASE
CCFLAGS += -DNWM_DEBUG
else
ifdef NITRO_DEBUG
TWL_BUILD_TYPE = RELEASE
endif
endif
endif
#----------------------------------------------------------------------------
# Default ‚Å‚Í LIMITED ̃‰ƒCƒuƒ‰ƒŠð<E2809A>ì<EFBFBD>¬µÜ·
TWL_ARCHGEN ?= LIMITED
#----------------------------------------------------------------------------
# <20>V³<E28093>ü—p̃fƒoƒbƒOƒtƒ‰ƒOÈÇ
ifdef NWM_DEBUG
CCFLAGS += -DNWM_DEBUG
endif
include $(TWLSDK_ROOT)/build/buildtools/commondefs
#INSTALL_TARGETS = $(TARGETS)
#INSTALL_DIR = $(SYSMENU_INSTALL_LIBDIR)
#GDIRT_INSTALLED = $(addprefix $(INSTALL_DIR)/,$(notdir $(INSTALL_TARGETS)))
#----------------------------------------------------------------------------
do-build: $(TARGETS)
include $(TWLSDK_ROOT)/build/buildtools/modulerules
#===== End of Makefile =====