#! make -f
#----------------------------------------------------------------------------
# Project:  NitroDWC - nup - libraries
# File:     Makefile
#
# $Log: Makefile.nitro,v $
# Revision 1.21  2007/12/12 02:54:41  achan
# - check in missing files
# - minor fixes
#
# Revision 1.20  2007/12/12 01:13:57  achan
# - a bunch of fixes after preliminary testing on DS and TWL
# - still a draft version since there are quite a few TODO's in the code that need to be resolved
#
# Revision 1.19  2007/11/30 02:27:02  achan
# - incremental NUP check-in
#
# Revision 1.18  2007/11/29 23:24:53  achan
# - incremental NUP check-in
#
# Revision 1.17  2007/11/29 22:38:53  achan
# - incremental NUP check-in
#
# Revision 1.16  2007/11/03 01:20:38  achan
# - incremental NUP check-in
#
# Revision 1.15  2007/11/02 00:17:05  achan
# - incremental nup check-in
#
# Revision 1.14  2007/10/31 01:13:02  achan
# - incremental NUP check-in
#
# Revision 1.13  2007/10/25 23:38:25  achan
# - renamed nup_async.* to nup_op.*
# - more incremental changes
#
# Revision 1.12  2007/10/24 23:57:18  achan
# - added more NUP code
# - fix a compilation problem in NHTTP_socket_NITRO.c
#
# Revision 1.11  2007/10/20 00:21:43  achan
# - Removed old NUP files
# - Added new NUP files
# - Build still disabled for NUP
#
# Revision 1.10  2007/06/08 23:37:55  achan
# - This check-in moved the NUP functionality to the NetCard side
# - By default, only the NUP shim layer is exported to the NitroDWC SDK now
# - The EC functionality on DS is temporarily broken (because of some API changes to add "mode" as an argument)
# - scanf: return 1 instead of 0
# - NHTTP: changed SetMode to become request-specific
# - NUP: added "mode", also changed status string to be a char array instead of a pointer so that the buffer resides in the caller side
# - devroot, elf-merge, addr_map: added address space for EC resource manager
# - ds-sdk, sdk, Makefiles: modified the list of files to be exported, added/removed build steps
#
# Revision 1.9  2007/05/11 01:42:08  achan
# - removed nup_vng.cpp from Makefile
# - use commondefs to get library dependencies for tests
# - modified nup_test to use USB mode
#
# Revision 1.8  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.7  2007/01/05 03:13:42  achan
# - Added ability to download DS viewer in the case of using VNG
# - Fixed nup_vng bug in error reporting
# - Removed _DS
#
# Revision 1.6  2006/12/29 00:22:37  achan
# - Added NUP over VNG
#
# Revision 1.5  2006/12/22 20:34:10  achan
# - Change to use the existing _NITRO and RVL_SDK instead of private NUP_NITRO and NUP_RVL
#
# Revision 1.4  2006/12/14 23:17:06  achan
# - Took away unnecessary lines from the Makefile
#
# Revision 1.3  2006/12/13 02:41:10  achan
# - Modified to compile in the Nitro environment
#
# Revision 1.2  2006/12/09 01:56:15  achan
# - fixed file names specified in Makefile
#
# Revision 1.1  2006/12/09 01:45:03  achan
# Set up NUP Makefile structure
#
#
#
# $NoKeywords: $
#----------------------------------------------------------------------------

SUBDIRS		=

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

SRCS	= nup.c nup_cache.c nup_download.c nup_log.c nup_mem.c \
          nup_op.c nup_soap.c nup_stdlib.c nup_system.c \
          nup_download_ds.c nup_http_ds.c nup_init_ds.c \
          nup_log_ds.c nup_stdlib_ds.c nup_system_ds.c

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

MACRO_FLAGS += -DNUP_NON_SHIM -DNUP_LOG_ENABLED
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

NITRODWC_INCDIR += $(NITROSDK_ROOT)/include/netcard
NITRODWC_INCDIR += $(NITROSDK_ROOT)/include/netcard/ds
NITRODWC_INCDIR += $(NITRODWC_ROOT)/include/netcard
NITRODWC_INCDIR += $(NITRODWC_ROOT)/include/netcard/ds

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

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