1#! make -f
2#----------------------------------------------------------------------------
3# Project:  TwlSDK - libraries - mi/ARM9
4# File:     Makefile
5#
6# Copyright 2003-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:: 2008-06-20#$
15# $Rev: 6675 $
16# $Author: nishimoto_takashi $
17#----------------------------------------------------------------------------
18
19SUBDIRS			=
20
21#----------------------------------------------------------------------------
22override TARGET_PLATFORM = NITRO
23
24NITRO_CODEGEN		?= ALL
25NITRO_PROC		= ARM9
26
27SRCDIR			= ../common/src src
28INCDIR			= ../common/include
29
30SRCS			= mi_wram.c \
31			  mi_dma.c \
32			  mi_dma_hblank.c \
33			  mi_dma_vblank.c \
34			  mi_dma_mainmem.c \
35			  mi_dma_gxcommand.c \
36			  mi_memory.c \
37			  mi_swap.c \
38			  mi_uncompress.c \
39			  mi_byteAccess.c \
40			  mi_stream.c \
41			  mi_card.c \
42			  mi_dma_card.c \
43			  mi_uncomp_stream.c \
44			  mi_compress.c \
45			  mi_exMemory.c \
46			  mi_init.c \
47			  mi_cache.c \
48			  mi_secureuncompress.c
49
50TARGET_LIB		= libmi$(NITRO_LIBSUFFIX).a
51
52#----------------------------------------------------------------------------
53include	$(TWLSDK_ROOT)/build/buildtools/commondefs
54
55INSTALL_TARGETS		= $(TARGETS)
56INSTALL_DIR		= $(NITRO_INSTALL_LIBDIR)
57
58#----------------------------------------------------------------------------
59do-build:		$(TARGETS)
60
61include	$(TWLSDK_ROOT)/build/buildtools/modulerules
62
63#===== End of Makefile =====
64