#! make -f

# $Id: Makefile.nitro,v 1.8 2007/04/24 23:21:41 craig Exp $

LINCLUDES += $(NITROSDK_ROOT)/include/netcard/ds
LINCLUDES += $(NITROSDK_ROOT)/include/netcard

#----------------------------------------------------------------------------
# Project:  NitroSDK - libraries - EXT
# File:     Makefile
#
#----------------------------------------------------------------------------

MACRO_FLAGS	+= -DNITRO -DNITRO_SDK -DNO_COPY_ON_WRITE

# Define this to get printout of source, destination, length,
# and MD5 sum of ROM reads from card
#MACRO_FLAGS     += -DCARD_READ_DEBUG


# Define this to enable the import of running applications.
# This slows down ROM reads by a large amount
# MACRO_FLAGS     += -DIMPORT_RUNNING


SUBDIRS		=

#----------------------------------------------------------------------------

# build ARM & THUMB libraries
NITRO_CODEGEN_ALL 	?= True

SRCS = card-api.c card-backup-api.c

TARGET_LIB		= libcard-nc$(NITRO_LIBSUFFIX).a

include	$(NITROSDK_ROOT)/build/buildtools/commondefs

INSTALL_TARGETS		= $(TARGETS)
INSTALL_DIR		= $(NITRO_INSTALL_LIBDIR)

#----------------------------------------------------------------------------

do-build:		$(TARGETS)

include	$(NITROSDK_ROOT)/build/buildtools/modulerules

#===== End of Makefile =====
