#------------------------------------------------------------------------------
# persist.mak
#------------------------------------------------------------------------------

PROJECT	= persist

PROJECT_SRC	= \
		../../../shcommon/snprintf.c\
		../../../shcommon/njloop.c\
		../../../shcommon/sbinit.c\
		../../../shcommon/shcommon.c\
		../../../shcommon/netUtl.c\
		../../../nonport.c\
		../../../md5c.c\
		../../../darray.c\
		../../../hashtable.c\
		../../gbucket.c\
		../../gstats.c\
		../persisttest.c

SYSTEM_LIBS	= \
			dmcast\
		mdmapi\
		modem\
		netuu\
		nt_utl\
		tcp\
		ppp\
		dns\
		socket\
		dclan\

OPTIMIZE =	0

ifndef COMPILER
	COMPILER =	SHC
endif
GFXLIB =	NINJA
OUTPUT =	ELF

DEBUG  =	TRUE
LIST   =	FALSE

ifndef EXTRA_DEFS
	EXTRA_DEFS	= KGTRN_NEXGEN
endif
#EXTRA_DEFS	= KGTRN_PLANET_WEB
#EXTRA_DEFS	= KGTRN_ACCESS
#EXTRA_DEFS	= KGTRN_NEXGEN

#--- PlanetWeb libs/include ---#
ifeq ($(EXTRA_DEFS),KGTRN_PLANET_WEB)

SYSTEM_LIBS	= \
		mdmapi\
		modem\
		netuu\
		nt_utl\
		pwnet\

#--- Hitachi compiler options ---#
ifeq ($(COMPILER),SHC)
	SYSTEM_INCLUDE = $(DEF_INCLUDE)\pw, ..\..\..\, ..\..\, ..\, ..\..\..\shcommon 
endif

#--- GNU compiler options ---#
ifeq ($(COMPILER),GNU)
	SYSTEM_INCLUDE = $(DEF_INCLUDE)\pw -I../../../  -I../../ -I../
endif

#--- Metrowerks compiler options ---#
ifeq ($(COMPILER),MWERKS)
	SYSTEM_INCLUDE = $(DEF_INCLUDE)\pw ..\..\..\ ..\..\ ..\ ..\..\..\shcommon
endif
endif

#--- Access libs/include ---#
ifeq ($(EXTRA_DEFS),KGTRN_ACCESS)

SYSTEM_LIBS	= \
		dmcast\
		mdmapi\
		modem\
		netuu\
		nt_utl\
		tcp\
		ppp\
		dns\
		socket\
		dclan\
		
#--- Hitachi compiler options ---#
ifeq ($(COMPILER),SHC)
	SYSTEM_INCLUDE = $(DEF_INCLUDE)\Access, ..\..\..\, ..\..\, ..\, ..\..\..\shcommon 
endif

#--- GNU compiler options ---#
ifeq ($(COMPILER),GNU)
	SYSTEM_INCLUDE = $(DEF_INCLUDE)\Access -I../../../  -I../../ -I../
endif

#--- Metrowerks compiler options ---#
ifeq ($(COMPILER),MWERKS)
	SYSTEM_INCLUDE = $(DEF_INCLUDE)\Access ..\..\..\ ..\..\ ..\ ..\..\..\shcommon
endif
endif


#--- Nexgen libs/include ---#
ifeq ($(EXTRA_DEFS),KGTRN_NEXGEN)
# note -- you need to be careful about the include order as nexgen has an md5.h as well!
SYSTEM_LIBS	= \
		mdmapi\
		modem\
		netuu\
		nt_utl\
		ngdc\
		ngip\
		ngdns\
		ngppp

#--- Hitachi compiler options ---#
ifeq ($(COMPILER),SHC)
	SYSTEM_INCLUDE = ..\..\..\, $(DEF_INCLUDE)\nexgen, ..\..\, ..\, ..\..\..\shcommon 
endif

#--- GNU compiler options ---#
ifeq ($(COMPILER),GNU)
	SYSTEM_INCLUDE = ../../../ -I$(DEF_INCLUDE)\nexgen -I../../ -I../
endif

#--- Metrowerks compiler options ---#
ifeq ($(COMPILER),MWERKS)
	SYSTEM_INCLUDE = ..\..\..\ $(DEF_INCLUDE)\nexgen ..\..\ ..\ ..\..\..\shcommon
endif
endif

VPATH = $(addsuffix :,$(dir $(subst \,/,$(PROJECT_SRC))))


include $(KATANA_ROOT)\Sample\dc.inc

