#============================================================================ # Project: RevolutionSDK Extensions - buildtools # File: commondefs.rex # # Global common definitions for RevolutionNET build system # # Copyright 2006 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: commondefs.rex,v $ # Revision 1.60 2007/11/16 02:53:24 seiki_masashi # Small fix # # Revision 1.59 2007/11/15 07:22:16 seiki_masashi # Added the ssl library to the link targets # # Revision 1.58 2007/11/15 06:31:05 tokunaga_yasuhiro # Changed so that each target refers to NdevRun.ddf by default # # Revision 1.57 2007/10/25 02:49:08 okubata_ryoma # Changes for the release of RevoEX 2.1 PR. # # Revision 1.56 2007/10/10 08:37:53 seiki_masashi # Added the MPDS library # # Revision 1.55 2007/08/09 09:03:02 okubata_ryoma # Updates to generate RevoEX release version with support for RevoSDK 3.1 RC2. # # Revision 1.54 2007/07/20 04:09:50 okubata_ryoma # Changed TitleID to 33. # # Revision 1.53 2007/06/15 05:45:04 hirose_kazuki # Support for NWC24 script build. # # Revision 1.52 2007/05/11 03:15:31 okubata_ryoma # Changed TitleID to 31. # # Revision 1.51 2007/04/10 02:04:57 hirose_kazuki # Changed TitleID to 30. # # Revision 1.50 2007/03/01 13:59:50 seiki_masashi # TITLEID 17->21 # # Revision 1.49 2007/02/09 04:19:53 yosizaki # added ntr.a mpfs.a # # Revision 1.48 2006/12/05 07:30:32 yasu # TITLEID 14->17 # # Revision 1.47 2006/11/10 09:15:13 yasu # Set default TITLEID to 14. # # Revision 1.46 2006/11/08 02:31:36 yasu # Set default firmware to 13 series. # # Revision 1.45 2006/10/27 12:32:30 yasu # Changed default firmware ID from 8 to 12. # # Revision 1.44 2006/10/18 13:09:54 yasu # Changed the default firmware to 8 series. # # Revision 1.43 2006/10/13 07:02:37 yasu # Revised the rvl.bin selection. # # Revision 1.42 2006/09/29 07:03:34 yasu # Set default firmware to 10 series. # # Revision 1.41 2006/09/29 02:12:56 yasu # Revised the apploader install process. # # Revision 1.40 2006/09/28 10:02:04 yasu # Revised so apploader will be generated as well. # # Revision 1.39 2006/09/19 06:29:56 yasu # Set noFW version. # # Revision 1.38 2006/09/15 02:32:26 yasu # Revised the DIP_INET6* flag process. # # Revision 1.37 2006/09/08 06:11:03 yosizaki # Added nhttp, vf. # # Revision 1.36 2006/09/06 07:09:01 yasu # Changed the default firmware to 8 series. # # Revision 1.35 2006/09/05 10:58:51 yosizaki # Removed rexdemo. # # Revision 1.34 2006/08/30 09:02:01 yosizaki # Added rexdemo. # # Revision 1.33 2006/08/25 14:49:53 yasu # Made additions related to REX_TOOL. # # Revision 1.32 2006/08/24 04:29:43 adachi_hiroaki # Added settings for building tools using NW4R. # # Revision 1.31 2006/08/22 09:59:43 yasu # Revised makefile determination when using SHOW_CURDIR. # # Revision 1.30 2006/08/21 11:01:12 adachi_hiroaki # Changed specifications so that socket.a or so.a can be specified. # # Revision 1.29 2006/08/17 03:30:12 yasu # Suppressed TITLEID specification. # # Revision 1.28 2006/08/09 00:29:40 yasu # Added net. # # Revision 1.27 2006/08/08 10:04:10 terui # Added 'so' to REX_LIBNAMES. # # Revision 1.26 2006/08/08 06:27:14 yasu # Set REX_TITLEID to 7. # # Revision 1.25 2006/08/08 05:02:55 yoshioka_yasuhiro # Deleted the enc library. Moved it to RevolutionSDK. # # Revision 1.24 2006/08/08 02:48:34 seiki_masashi # Support for binary data link. # # Revision 1.23 2006/08/02 13:33:34 yasu # Added REX_BUILD_TYPE. # # Revision 1.22 2006/08/02 13:08:39 yasu # Added the enc library. # # Revision 1.21 2006/07/31 06:12:00 yasu # Moved overwrite of do-setup command to commondefs. # # Revision 1.20 2006/07/31 04:24:51 yasu # Added ddf for switching firmware. # # Revision 1.19 2006/07/24 09:32:28 yasu # Set installation destination for ports. # # Revision 1.18 2006/07/24 01:53:54 yasu # @Keyword@ Rule support # # Revision 1.17 2006/07/21 06:32:46 yasu # Implemented the installer creation feature. # # Revision 1.16 2006/07/20 02:03:05 yasu # Added definition of echo. # # Revision 1.15 2006/07/20 01:02:31 yasu # The current directory display settings. # # Revision 1.14 2006/07/19 12:39:13 yasu # Added bin file setting. # # Revision 1.13 2006/07/19 11:47:48 yasu # Revised method of setting initial value for REVOLUTION_EXT_ROOT. # # Revision 1.12 2006/07/19 08:43:17 yasu # SILENT flag handling. # # Revision 1.11 2006/07/15 12:47:21 terui # Added nwc24 to REX_LIBNAMES. # # Revision 1.10 2006/07/10 04:07:31 yasu # Temporarily changed library name from nitro to wdp. # # Revision 1.9 2006/07/09 13:10:10 yasu # PPC make tree connection completed. # # Revision 1.8 2006/07/09 11:25:55 yasu # moving process intermediate save 2. # # Revision 1.7 2006/07/09 08:16:10 yasu # moving process intermediate save 1. # # Revision 1.6 2006/07/05 09:19:41 seiki_masashi # Cleaned up library for linking. # # Revision 1.5 2006/07/03 08:39:25 yosizaki # Added nitro and mpdl. # # Revision 1.4 2006/06/30 04:32:13 terui # Added socket.a to REVOLUTION_LIBS. # # Revision 1.3 2006/06/21 02:44:26 seiki_masashi # Added wd and mp to LIBS. # # Revision 1.2 2006/06/16 04:21:12 terui # Added the TEST_ROOT definition. # # Revision 1.1 2006/05/30 07:09:57 terui # Initial upload. # # # $NoKeywords: $ # #============================================================================ EMPTY := SPACE := $(EMPTY) $(EMPTY) # # Tree Root # REVOLUTION_EXT_ROOT ?= C:/RevoEX REVOLUTION_EXT_INSTALL_ROOT ?= $(REVOLUTION_EXT_ROOT) NITROSDK_ROOT ?= C:/NitroSDK # Pathname Translation REX_DIR ?= $(subst $(SPACE),\$(SPACE),$(subst \,/,$(REVOLUTION_EXT_ROOT))) REX_INSTALL_DIR ?= $(subst $(SPACE),\$(SPACE),$(subst \,/,$(REVOLUTION_EXT_INSTALL_ROOT))) NITROSDK_DIR ?= $(subst $(SPACE),\$(SPACE),$(subst \,/,$(NITROSDK_ROOT))) NW4R_DIR ?= $(subst $(SPACE),\$(SPACE),$(subst \,/,$(NW4R_ROOT))) # # Debug/NDebug # ifeq ($(REX_DEBUG)$(REX_NDEBUG),) ifndef NDEBUG DEBUG = TRUE REX_DEBUG = TRUE REX_BUILD_TYPE = DEBUG else REX_NDEBUG = TRUE REX_BUILD_TYPE = RELEASE endif endif # # Firmware Default TitleID # # REX_TITLEID ?= 35 REX_TITLEID ?= 0 REX_TITLEFW ?= noFW # REX_TITLEFW ?= FW # # For Local Setting # -include $(REX_DIR)/build/buildtools/@*private -include $(REX_DIR)/build/buildtools/_confidential # # Directory shortcuts # REX_INCDIR := $(REX_DIR)/include REX_BUILDDIR := $(REX_DIR)/build REX_PORTSDIR := $(REX_DIR)/ports REX_BOOTDIR := $(REX_DIR)/$(ARCH_TARGET)/boot REX_DEMODIR := $(REX_BUILDDIR)/demos REX_TESTDIR := $(REX_BUILDDIR)/tests REX_DDFTMPLTDIR := $(REX_BUILDDIR)/buildtools/ddf override BUILD_ROOT = $(REX_BUILDDIR) # # Library List and Build Setting # REX_LIBNAME_SOCKET ?= so REX_LIBNAMES = ncd wd mp ntr mpdl mpfs mpds nwc24 net nhttp ssl vf $(REX_LIBNAME_SOCKET) REX_LIBTYPE = $(ARCH_TARGET)/lib REX_LIBDIR = $(REX_DIR)/$(REX_LIBTYPE) REX_LIBSUFFIX = $(if $(REX_DEBUG),D,) REX_LIBFILES = $(addsuffix $(REX_LIBSUFFIX).a,$(REX_LIBNAMES)) REX_LIBS = $(addprefix $(REX_LIBDIR)/,$(REX_LIBFILES)) REX_NW4R_LIBDIR = $(NW4R_DIR)/Library/lib/$(ARCH_TARGET)/$(if $(REX_DEBUG),Debug,Release) REX_NW4R_LIBNAMES = mcs ut db ef math snd g3d REX_NW4R_LIBFILES = $(addsuffix .a,$(addprefix libnw4r_,$(REX_NW4R_LIBNAMES))) REX_NW4R_LIBS = $(addprefix $(REX_NW4R_LIBDIR)/,$(REX_NW4R_LIBFILES)) REX_BINTYPE = $(ARCH_TARGET)/bin REX_BINDIR = $(REX_DIR)/$(REX_BINTYPE) REX_BOOTDIR = $(REX_DIR)/$(ARCH_TARGET)/boot GINCLUDES += -I$(REX_INCDIR) # # Install Target Directories # REX_INSTALL_INCDIR := $(REX_INSTALL_DIR)/include REX_INSTALL_LIBDIR := $(REX_INSTALL_DIR)/$(REX_LIBTYPE) REX_INSTALL_BINDIR := $(REX_INSTALL_DIR)/$(REX_BINTYPE) REX_INSTALL_TOOLSDIR := $(REX_INSTALL_DIR)/tools REX_INSTALL_DVDDATADIR := $(REX_INSTALL_DIR)/dvddata REX_INSTALL_PORTSDIR := $(REX_INSTALL_DIR)/ports # # WORK AROUND # # Reject IPv6 code [TRUE/FALSE] REX_IP_INET4_ONLY ?= FALSE # Ignore IPv6 packet [TRUE/FALSE] REX_IP_INET6_IGNORED ?= TRUE # # Target for "setup" hacks # override SETUP_ROOTS = do-setup # # Dirty Files # REX_DISTCLEAN = # # Binary Data # REX_LOCAL_DATDIR = data #---------------------------------------------------------------------------- # MAKE COMMAND SETTINGS # # --no-print-directory: No print directory when 'change directory' # -r no built-in rules # -R no built-in variables # -j do make with multi-thread (not used now) # ECHO = echo MAKEFILE = $(firstword $(MAKEFILE_LIST)) REMAKE = $(MAKE) -f $(MAKEFILE) INSTALL = install MAKEO = makeo MAKEO_FLAGS = -a 64 MAKEFLAGS_SHORT = $(filter -%,$(filter-out --%,$(MAKEFLAGS))) MAKEFLAGS += -R -r # Check -w option ifeq (,$(findstring w,$(MAKEFLAGS_SHORT))) MAKEFLAGS += --no-print-directory endif # Check -k option ifeq (,$(findstring k,$(MAKEFLAGS_SHORT))) AND = && else AND = ; endif # Check -s option ifneq (,$(findstring s,$(MAKEFLAGS_SHORT))) SILENT = TRUE RVLIOP_STDOUT = > /dev/null else REX_SHOW_CURDIR = TRUE endif ifneq (Makefile,$(MAKEFILE)) ifneq (makefile,$(MAKEFILE)) MAKEFILE_NAME = /$(MAKEFILE) endif endif # NWC24 script stuff NWC24CC = $(REVOLUTION_EXT_ROOT)/X86/bin/NWC24/nwc24cc.sh ifdef REX_SHOW_CURDIR define ECHO_CURDIR @$(ECHO) "==== $(CURDIR)$(MAKEFILE_NAME)" endef endif #======== End of commondefs.rex ========#