#! make -f
#----------------------------------------------------------------------------
# Project:  NitroDWC - nhttp - libraries
# File:     Makefile
#
# Copyright 2005 Nintendo.  All rights reserved.
#
# These coded instructions, statements, and computer programs contain
# proprietary information of Nintendo of America Inc. and/or Nintendo
# Company Ltd., and are protected by Federal copyright law.  They may
# not be disclosed to third parties or copied or duplicated in any form,
# in whole or in part, without the prior written consent of Nintendo.
#
# $Log: Makefile.nitro,v $
# Revision 1.6  2007/10/17 00:05:06  achan
# Disabled old NHTTP, NUP, and EC for NetCard.  Imported new NHTTP based on the Wii version:
# - common/Makefile: added tests subdir
# - common/lib/Makefile: removed nup for now
# - common/lib/nhttp/*: added new version of NHTTP
# - common/tests/Makefile: removed nup for now
# - common/tests/ec/*: modified EC tests to suit the new EC APIs
# - ds/lib/Makefile: removed nup for now, added NHTTP
# - ds/lib/nhttp/*: new version of NHTTP
# - ds/lib/p2p/Makefile: added shared subdir
# - ds/test/Makefile: removed nup for now
# - ds/test/ec/Makefile.nitro: added NON_SHIM for now
# - ds/test/nhttp/*: new version of NHTTP
# - gba/lib, gba/tests, sc/lib's Makefiles - removed nup, ec
# - tools/*: removed nup, added shared, nhttp
#
# Revision 1.5  2007/05/18 19:06:32  achan
# - moved the source of sktp from ds/lib to common/lib
# - added nc build of sktp
# - adjustments to Makefiles to make things build for nc
#
# Revision 1.4  2007/05/04 22:11:39  achan
# - Modified commondefs to include sktp
# - Modified Makefile.libraries to build sktp
# - Added SKTP calls into the NHTTP library
# - SKTP calls not well-tested yet, but the original DS sockets is verified to work fine
# - Modified test Makefiles to include the new libraries (need to be modified again later when vec is removed, since the library names can be retrieved from the commondefs directly)
#
# Revision 1.3  2007/01/19 01:42:05  achan
# - Minor changes to makefiles
# - Changed to EC test to use ec_api.h
# - Added some typedefs to NHTTP.h
#
# Revision 1.2  2006/12/01 21:57:39  achan
# - Ported NHTTP_AddPostDataRaw() and NHTTP_CreateRequestEx() from the Wii version of NHTTP
#
# Revision 1.1  2006/04/20 01:02:11  nakata
# NHTTP関連のファイルを追加
#
#
# $NoKeywords: $
#----------------------------------------------------------------------------

SUBDIRS		=

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

SRCS	=						\
		NHTTP_bgnend.c				\
		NHTTP_control.c				\
		NHTTP_list.c				\
		NHTTP_recvbuf.c				\
		NHTTP_request.c				\
		NHTTP_response.c			\
		NHTTP_thread.c				\
		d_nhttp.c				\
		d_nhttp_common.c				\
		d_nhttp_private.c				\
		NHTTP_os_NITRO.c			\
		NHTTP_socket_NITRO.c			\
		NHTTP_stdlib_NITRO.c			\

NITRODWC_MODULE_NAME :=   nhttp
TARGET_LIB	=	lib$(NITRODWC_LIB_PREFIX)$(NITRODWC_MODULE_NAME)$(NITRODWC_LIBSUFFIX).a

CCFLAGS_MSGSTYLE = -msgstyle gcc

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

include	$(NITRODWC_ROOT)/build/buildtools/commondefs

INSTALL_TARGETS	=	$(TARGETS)
INSTALL_DIR		=	$(NITRODWC_INSTALL_LIBDIR)

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

do-build:		$(TARGETS)

include	$(NITRODWC_ROOT)/build/buildtools/modulerules

# [nakata]
NITRODWC_INCDIR += $(NITROSDK_ROOT)/include/netcard
NITRODWC_INCDIR += $(NITRODWC_ROOT)/include/netcard
NITRODWC_INCDIR += $(NITRODWC_ROOT)/include/nhttp

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

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