mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@982 b08762b0-b915-fc4b-9d8c-17b2551a87ff
86 lines
2.5 KiB
Makefile
86 lines
2.5 KiB
Makefile
#! make -f
|
||
#----------------------------------------------------------------------------
|
||
# Project: TwlIPL
|
||
# 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:: $
|
||
# $Rev$
|
||
# $Author$
|
||
#----------------------------------------------------------------------------
|
||
|
||
SUBDIRS =
|
||
|
||
MYSUBDIRS = ./
|
||
|
||
#----------------------------------------------------------------------------
|
||
TARGET_FIRM = SYSTEMMENU
|
||
TARGET_PLATFORM = TWL
|
||
TWL_ARCHGEN = LIMITED
|
||
TWL_PROC = ARM9
|
||
|
||
REVISION_SRC = src/revision.c
|
||
|
||
SRCS = sysmenu_lib.c \
|
||
util.c \
|
||
ninLogoFunc.c \
|
||
device.c \
|
||
keys.c \
|
||
title.c \
|
||
banner.c \
|
||
../common/src/status.c \
|
||
../common/src/pxi.c \
|
||
../common/src/mountInfo.c \
|
||
$(REVISION_SRC)
|
||
|
||
|
||
TARGET_LIB = libsysmenu$(TWL_LIBSUFFIX).a
|
||
|
||
ifdef DO_NOT_SHOW_LAUNCHER
|
||
MACRO_FLAGS += -DDO_NOT_SHOW_LAUNCHER
|
||
endif
|
||
|
||
include $(TWL_IPL_RED_ROOT)/build/buildtools/commondefs
|
||
|
||
INSTALL_TARGETS = $(TARGETS)
|
||
INSTALL_DIR = $(SYSMENU_INSTALL_LIBDIR)
|
||
|
||
LINCLUDES = $(ROOT)/build/libraries/mb/common/include \
|
||
$(ROOT)/build/libraries/spi/ARM9/include \
|
||
$(SYSMENU_ROOT)/build/libraries_sysmenu/sysmenu/common/include
|
||
|
||
LDIRT_CLEAN = $(REVISION_SRC)
|
||
|
||
#----------------------------------------------------------------------------
|
||
|
||
do-build: $(REVISION_SRC) $(MYSUBDIRS) $(TARGETS)
|
||
|
||
include $(TWL_IPL_RED_ROOT)/build/buildtools/modulerules
|
||
|
||
|
||
#SVNƒŠƒrƒWƒ‡ƒ“–„‚ß<E2809A>ž‚Ý
|
||
$(REVISION_SRC) ::
|
||
@if test -e $(SYSMENU_ROOT)/.svn; then \
|
||
LANG=C svn info $(call empath,$(SYSMENU_ROOT)) | grep 'Revision' | sed "s|Revision: \(.*\)|const char *g_strIPLSvnRevision = \"\1\";|" > $(REVISION_SRC); \
|
||
else \
|
||
echo "const char *g_strIPLSvnRevision = \"-\"" > $(REVISION_SRC); \
|
||
fi
|
||
@if test -e $(ROOT)/.svn; then \
|
||
LANG=C svn info $(call empath,$(ROOT)) | grep 'Revision' | sed "s|Revision: \(.*\)|const char *g_strSDKSvnRevision = \"\1\";|" >> $(REVISION_SRC); \
|
||
else \
|
||
echo "const char *g_strSDKSvnRevision = \"-\"" >> $(REVISION_SRC); \
|
||
fi
|
||
|
||
|
||
$(MYSUBDIRS)::
|
||
# $(MAKE) -C $@ -f MakeCrt0
|
||
|
||
#===== End of Makefile =====
|