1#! make -f
2#----------------------------------------------------------------------------
3# Project:  TwlSDK
4# File:     commondefs.compat.post
5#
6# Copyright 2007-2009 Nintendo.  All rights reserved.
7#
8# These coded instructions, statements, and computer programs contain
9# proprietary information of Nintendo of America Inc. and/or Nintendo
10# Company Ltd., and are protected by Federal copyright law. They may
11# not be disclosed to third parties or copied or duplicated in any form,
12# in whole or in part, without the prior written consent of Nintendo.
13#
14# $Date:: 2009-06-04#$
15# $Rev: 10698 $
16# $Author: okubata_ryoma $
17#----------------------------------------------------------------------------
18
19ifneq ($(TWLSDK_LANG),)
20NITROSDK_LANG		:= $(TWLSDK_LANG)
21else
22TWLSDK_LANG			:= $(NITROSDK_LANG)
23endif
24
25ifneq ($(TWL_MAKEROM),)
26NITRO_MAKEROM		:= $(TWL_MAKEROM)
27else
28TWL_MAKEROM			:= $(NITRO_MAKEROM)
29endif
30
31ifneq ($(TWL_COMPRESS),)
32NITRO_COMPRESS		:= $(TWL_COMPRESS)
33else
34TWL_COMPRESS		:= $(NITRO_COMPRESS)
35endif
36
37ifneq ($(TWL_DIGEST),)
38NITRO_DIGEST		:= $(TWL_DIGEST)
39else
40TWL_DIGEST			:= $(NITRO_DIGEST)
41endif
42
43ifneq ($(TWL_PROFILE),)
44NITRO_PROFILE		:= $(TWL_PROFILE)
45else
46TWL_PROFILE			:= $(NITRO_PROFILE)
47endif
48
49ifneq ($(TWL_PROFILE_TYPE),)
50NITRO_PROFILE_TYPE	:= $(TWL_PROFILE_TYPE)
51else
52TWL_PROFILE_TYPE	:= $(NITRO_PROFILE_TYPE)
53endif
54
55ifneq ($(TWL_NO_OPT_G),)
56NITRO_NO_OPT_G		:= $(TWL_NO_OPT_G)
57else
58TWL_NO_OPT_G		:= $(NITRO_NO_OPT_G)
59endif
60
61ifneq ($(TWL_ROMSPEED),UNDEFINED)
62NITRO_ROMSPEED		:= $(TWL_ROMSPEED)
63else
64TWL_ROMSPEED		:= $(NITRO_ROMSPEED)
65endif
66
67ifneq ($(TWL_SVC_WAITVBLANK_COMPATIBLE),)
68NITRO_SVC_WAITVBLANK_COMPATIBLE		:= $(TWL_SVC_WAITVBLANK_COMPATIBLE)
69else
70TWL_SVC_WAITVBLANK_COMPATIBLE		:= $(NITRO_SVC_WAITVBLANK_COMPATIBLE)
71endif
72
73
74TARGET_CODEGEN_LIST	?= $(strip $(if $(filter ALL,$(TARGET_CODEGEN)),ARM THUMB,$(TARGET_CODEGEN)))
75
76
77# In the case of a nightly demo build, also build LIMITED ROMs that use the ferret component
78ifeq ($(SDK_NIGHTLY_BUILD),TRUE)
79ifneq ($(findstring demos,$(CURDIR)),)
80TWL_ARCHGEN_LIST	+= $(strip $(if $(filter ALL,$(TWL_ARCHGEN)),LIMITED HYBRID LIMITED_ferret,$(if $(filter LIMITED,$(TWL_ARCHGEN)),LIMITED LIMITED_ferret,$(TWL_ARCHGEN))))
81endif
82endif
83TWL_ARCHGEN_LIST	?= $(strip $(if $(filter ALL,$(TWL_ARCHGEN)),LIMITED HYBRID,$(TWL_ARCHGEN)))
84
85