1#! make -f
2#----------------------------------------------------------------------------
3# Project:  TwlSDK - libraries - ctrdg/ARM9
4# File:     Makefile
5#
6# Copyright 2007-2008 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:: 2007-11-07#$
15# $Rev: 2155 $
16# $Author: okubata_ryoma $
17#----------------------------------------------------------------------------
18
19SUBDIRS		=
20
21#----------------------------------------------------------------------------
22override TARGET_PLATFORM = NITRO
23
24NITRO_CODEGEN	?= ALL
25NITRO_PROC		 = ARM9
26
27# Create libraries for both HYBRID and LIMITED
28TWL_ARCHGEN		?= ALL
29
30SRCDIR			 = ../common/src src
31INCDIR			 = ../common/include
32
33SRCS			 =	ctrdg.c							\
34					ctrdg_proc.c					\
35					ctrdg_vib.c						\
36					ctrdg_backup.c					\
37					ctrdg_flash_common.c			\
38					ctrdg_flash_AT29LV512.c			\
39					ctrdg_flash_LE26FV10N1TS-10.c	\
40					ctrdg_flash_LE39FW512.c			\
41					ctrdg_flash_MX29L010.c			\
42					ctrdg_flash_MX29L512.c			\
43					ctrdg_sram.c					\
44					ctrdg_task.c
45
46TARGET_LIB		 = libctrdg$(NITRO_LIBSUFFIX).a
47
48#----------------------------------------------------------------------------
49include	$(TWLSDK_ROOT)/build/buildtools/commondefs
50
51INSTALL_TARGETS	 = $(TARGETS)
52INSTALL_DIR		 = $(NITRO_INSTALL_LIBDIR)
53
54#----------------------------------------------------------------------------
55do-build:		$(TARGETS)
56
57include	$(TWLSDK_ROOT)/build/buildtools/modulerules
58
59#===== End of Makefile =====
60