1#! make -f
2#----------------------------------------------------------------------------
3# Project:  TwlSDK - libraries - camera
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:: 2008-09-18#$
15# $Rev: 8573 $
16# $Author: okubata_ryoma $
17#----------------------------------------------------------------------------
18
19SUBDIRS			 =
20
21#----------------------------------------------------------------------------
22override TARGET_PLATFORM = TWL
23
24TWL_CODEGEN 	?= ALL
25TWL_PROC		 = ARM9
26
27# Create libraries for both HYBRID and LIMITED
28TWL_ARCHGEN		?= ALL
29
30SRCDIR			 = src ../common/src ../ARM9/src
31INCDIR			 = ../common/include include
32
33SRCS			 = camera_api.c \
34				   camera.c \
35				   camera_util.c
36
37
38TARGET_LIB		 = libcamera$(TWL_LIBSUFFIX).a
39
40# Implemented DEBUG-version library so DEBUG builds are built like RELEASE-version builds
41#
42
43ifdef	TARGET_DEBUG
44TWL_BUILD_TYPE	 = RELEASE
45else
46ifdef	TWL_DEBUG
47TWL_BUILD_TYPE	 = RELEASE
48else
49ifdef	NITRO_DEBUG
50TWL_BUILD_TYPE	 = RELEASE
51endif
52endif
53endif
54
55#----------------------------------------------------------------------------
56include	$(TWLSDK_ROOT)/build/buildtools/commondefs
57
58
59INSTALL_TARGETS	 = $(TARGETS)
60
61INSTALL_DIR		 = $(TWL_INSTALL_LIBDIR)
62
63
64#----------------------------------------------------------------------------
65do-build:		$(TARGETS)
66
67include	$(TWLSDK_ROOT)/build/buildtools/modulerules
68
69
70#===== End of Makefile =====
71