mirror of
https://github.com/rvtr/TwlIPL_commit-99.git
synced 2025-10-31 06:21:11 -04:00
94 lines
2.8 KiB
Makefile
Executable File
94 lines
2.8 KiB
Makefile
Executable File
#! make -f
|
|
#----------------------------------------------------------------------------
|
|
# Project: NITRO-System - buildtools
|
|
# File: commondefs
|
|
#
|
|
# Copyright 2004-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.
|
|
#
|
|
# $Revision: 518 $
|
|
#----------------------------------------------------------------------------
|
|
|
|
ifndef NITROSYSTEM_COMMONDEFS_
|
|
NITROSYSTEM_COMMONDEFS_ := TRUE
|
|
|
|
#----------------------------------------------------------------------------
|
|
#
|
|
# NITRO-System Root directory
|
|
#
|
|
|
|
NITROSYSTEM_ROOT ?= C:/NitroSystem
|
|
TWLSYSTEM_ROOT ?= $(NITROSYSTEM_ROOT)
|
|
|
|
NNS_ALLLIBS := fnd mcs gfd g2d g3d snd
|
|
|
|
NNS_LIB_MODULES = LibFnd LibMcs LibGfd LibG2d LibG3d LibSnd
|
|
|
|
ROOT_MODULES := FND MCS GFD G2D G3D SND
|
|
|
|
#----------------------------------------------------------------------------
|
|
#
|
|
# import TWL-SDK commondefs
|
|
#
|
|
|
|
include $(TWLSDK_ROOT)/build/buildtools/commondefs
|
|
|
|
NITRO_BUILDTYPE ?= $(TWL_BUILDTYPE)
|
|
NITRO_LIBTYPE ?= $(TWL_LIBTYPE)
|
|
NITRO_CCTYPE ?= $(TWL_CCTYPE)
|
|
|
|
#----------------------------------------------------------------------------
|
|
#
|
|
# NITRO-System Path settings
|
|
#
|
|
|
|
NNS_ROOT := $(call eupath,$(NITROSYSTEM_ROOT))
|
|
|
|
NITROSYSTEM_BUILDTOOLSDIR := $(NNS_ROOT)/build/buildtools
|
|
NITROSYSTEM_TOOLSDIR := $(NNS_ROOT)/tools
|
|
|
|
# $(foreach module,$(ROOT_MODULES),$(eval NITROSYSTEM_$(module)_ROOT = $$(NNS_ROOT)))
|
|
|
|
NITROSYSTEM_FND_ROOT = $(NNS_ROOT)
|
|
NITROSYSTEM_MCS_ROOT = $(NNS_ROOT)
|
|
NITROSYSTEM_GFD_ROOT = $(NNS_ROOT)
|
|
NITROSYSTEM_G2D_ROOT = $(NNS_ROOT)
|
|
NITROSYSTEM_G3D_ROOT = $(NNS_ROOT)
|
|
NITROSYSTEM_SND_ROOT = $(NNS_ROOT)
|
|
|
|
#----------------------------------------------------------------------------
|
|
# PRIVATE FLAGS
|
|
#
|
|
-include $(NITROSYSTEM_BUILDTOOLSDIR)/private/commondefs
|
|
-include $(NITROSYSTEM_BUILDTOOLSDIR)/internal/commondefs
|
|
|
|
#----------------------------------------------------------------------------
|
|
#
|
|
# NITROSYSTEM_INSTALL_ROOT
|
|
#
|
|
|
|
ifdef NITROSYSTEM_INSTALL_ROOT
|
|
override NITROSYSTEM_INSTALL_ROOT := $(call eupath,$(NITROSYSTEM_INSTALL_ROOT))
|
|
endif
|
|
NITROSYSTEM_INSTALL_ROOT ?= $(NNS_ROOT)
|
|
|
|
NITROSYSTEM_INSTALL_INCDIR := $(NITROSYSTEM_INSTALL_ROOT)/include
|
|
NITROSYSTEM_INSTALL_TOOLSDIR := $(NITROSYSTEM_INSTALL_ROOT)/tools
|
|
NITROSYSTEM_INSTALL_LIBDIR := $(NITROSYSTEM_INSTALL_ROOT)/lib/$(NITRO_LIBTYPE)
|
|
|
|
#----------------------------------------------------------------------------
|
|
### Compiler settings
|
|
|
|
-include $(NITROSYSTEM_BUILDTOOLSDIR)/commondefs.cctype.$(NITRO_CCTYPE)
|
|
|
|
|
|
# NITROSYSTEM_COMMONDEFS_
|
|
endif
|
|
|
|
#----- End of commondefs -----
|