1#! make -f 2#---------------------------------------------------------------------------- 3# Project: TwlSDK - CARD - libraries 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 23TWL_CODEGEN ?= ALL 24TWL_PROC = ARM9 25 26# Create libraries for both HYBRID and LIMITED 27TWL_ARCHGEN ?= ALL 28 29SRCDIR = ../ARM9/src ../common/src 30INCDIR = ../ARM9/include ../common/include 31 32SRCS = \ 33 card_api.c \ 34 card_common.c \ 35 card_hook.c \ 36 card_task.c \ 37 card_utility.c \ 38 card_spi.c \ 39 card_backup.c \ 40 card_rom.c \ 41 card_hash.c \ 42 card_pullOut.c \ 43 44TARGET_LIB = libcard$(TWL_LIBSUFFIX).a 45 46#---------------------------------------------------------------------------- 47include $(TWLSDK_ROOT)/build/buildtools/commondefs 48 49INSTALL_TARGETS = $(TARGETS) 50INSTALL_DIR = $(TWL_INSTALL_LIBDIR) 51 52#---------------------------------------------------------------------------- 53do-build: $(TARGETS) 54 55include $(TWLSDK_ROOT)/build/buildtools/modulerules 56 57#===== End of Makefile ===== 58