# $Id: Makefile,v 1.9 2002/05/15 01:26:25 sprajpat Exp $

# $Log: Makefile,v $
# Revision 1.9  2002/05/15 01:26:25  sprajpat
# Use USE_OSP=1 make argument to build the PolicyServer with OSP.
# By default it builds without it
#
# Revision 1.8  2002/05/02 02:51:10  jason
# added template repositories -frepo
# added support for gcc3 toolchain
# added support for shared libraries
#
# Revision 1.7  2001/01/20 01:33:55  wbreu
# remove OSPUsageInfo.cxx
#
# Revision 1.6  2000/07/20 23:47:06  surendra
# Provision Changes
#
# Revision 1.5  2000/07/17 16:49:38  wbreu
# Added OSPToken class to encode the binary token (received in
# the Auth. Response) in base 64 encoding format before forwarding
# the token to COPS; and to decode the base 64 token for token
# validation.
#
# Revision 1.4  2000/07/05 22:59:29  hyu
# Merging BRANCH_CURD into HEAD.
#
# Revision 1.3.16.1  2000/06/27 01:31:15  wbreu
# include OSPValInfo.cxx in the Makefile
#
# Revision 1.3  2000/05/18 01:23:56  wbreu
# make OSPCfg a singleton, and integrate with the new PolicyCfg
#
# Revision 1.2  2000/05/05 20:02:59  wbreu
#
# Implemented OSPCfg.cxx, use static data to set up OSPProvider for now
#
# Revision 1.1  2000/05/04 00:37:02  wbreu
#
# Checked in first draft.
#
#
# Revision 1.1  2000/04/14 00:00:00  wbreu
#
# Objects interfacing the COPS PDPLib and osplib
#

BUILD = ../../build


include $(BUILD)/Makefile.pre

# wbr: set include path to pick up OSP Toolkit's header files:
# CXXFLAGS += -I/mnt/home/OSP/src -I.
#CXXFLAGS += -D_REENTRANT -DOSP_SDK
#INCDIRS +=  . /mnt/home/OSP/src 
INCDIRS +=  . 

TARGET_LIBRARY=libOSP

ifeq ($(USE_OSP),1)
    HAS_OSP=1
    PACKAGES += OSPSDK COPS COPSCOMMON UTIL PSLIB PSUTILIB LIBXML
else
    HAS_OSP=
    PACKAGES += COPS COPSCOMMON UTIL PSLIB PSUTILIB LIBXML
endif


# name of all files to be compiled (don't include header files)
SRC = \
        PolicyTransaction.cxx 
ifeq ($(USE_OSP),1)
SRC += OSPCfg.cxx \
       PolicyTranslator.cxx \
        OSPIntf.cxx \
        OSPTrans.cxx \
        OSPValInfo.cxx \
        OSPAuthRespInfo.cxx \
        OSPAuthInfo.cxx \
        OSPErrStrings.cxx \
        OSPToken.cxx \
        OSPProvider.cxx  
endif

include $(BUILD)/Makefile.post
