# Mode (Release or snapshot?)
SNAPSHOT=@OPENCHANGE_VERSION_IS_SVN_SNAPSHOT@

# Binary
CC=@CC@
CXX=@CXX@
BISON=@BISON@
FLEX=@FLEX@
PIDL=@PIDL@
PERL=@PERL@
DOXYGEN=@DOXYGEN@
INSTALL=@INSTALL@
SED=sed -i 's/"\(.*\)\/\(.*\)\.h"/<\1\/\2.h>/g'
PYTHON=@PYTHON@
PYTHON_CONFIG=@PYTHON_CONFIG@
PYTHON_CFLAGS=@PYTHON_CFLAGS@
PYTHON_LIBS=@PYTHON_LIBS@

prefix=@prefix@
exec_prefix=@exec_prefix@
bindir=@bindir@
sbindir=@sbindir@
libdir=@libdir@
modulesdir=@modulesdir@
datarootdir=@datarootdir@
datadir=@datadir@
includedir=@includedir@
mandir=@mandir@
top_builddir=@builddir@
pythondir=@pythondir@

sambaprefix=@sambaprefix@

DSOOPT=-shared -fPIC
CFLAGS=@CFLAGS@ @COMPILER_OPTIONS_C@ @ASSERT_DEFINITION@ @SUBUNIT_CFLAGS@ \
       -DDEFAULT_LDIF=\"$(datadir)/setup/profiles\"						\
       -DMAPISTORE_LDIF=\"$(datadir)/setup/mapistore\"						\
       -DMAPISTORE_BACKEND_INSTALLDIR=\"$(libdir)/mapistore_backends\"				\
       -DLZXPRESS_DATADIR=\"$(datadir)/mapitest/lzxpress\"					\
       -DLZFU_DATADIR=\"$(datadir)/mapitest/lzfu\"						\
       -DHAVE_ICAL_0_46=@have_libical_0_46@

# This value should be determined by configure at some point
SHLIBEXT=so
PACKAGE_VERSION=@PACKAGE_VERSION@

SAMBA_CFLAGS=@SAMBA_CFLAGS@
SAMBA_LIBS=@SAMBA_LIBS@

LDB_CFLAGS=@LDB_CFLAGS@
LDB_LIBS=@LDB_LIBS@

TDB_CFLAGS=@TDB_CFLAGS@
TDB_LIBS=@TDB_LIBS@

TALLOC_CFLAGS=@TALLOC_CFLAGS@
TALLOC_LIBS=@TALLOC_LIBS@

CFLAGS+=$(SAMBA_CFLAGS) $(LDB_CFLAGS) $(TALLOC_CFLAGS) $(TDB_CFLAGS) $(THREAD_CFLAGS)
LIBS+=$(SAMBA_LIBS) $(LDB_LIBS) $(TALLOC_LIBS) $(THREAD_LIBS) $(RT_LIBS)
LDFLAGS+=@LDFLAGS@

THREAD_LIBS=@THREAD_LIBS@
THREAD_CFLAGS=@THREAD_CFLAGS@

SAMBASERVER_CFLAGS=@SAMBASERVER_CFLAGS@
SAMBASERVER_LIBS=@SAMBASERVER_LIBS@

DL_LIBS=@DL_LIBS@
RT_LIBS=@RT_LIBS@

# Assign CFLAGS to CXXFLAGS
CXXFLAGS=@CFLAGS@ @COMPILER_OPTIONS_CXX@ $(SAMBA_CFLAGS) $(LDB_CFLAGS) $(TALLOC_CFLAGS) $(TDB_CFLAGS) $(THREAD_CFLAGS)

# OPENCHANGE LIBRARIES
OC_IDL=@OC_IDL@
OC_LIBS=@OC_LIBS@
OC_LIBS_INSTALL=@OC_LIBS_INSTALL@
OC_LIBS_UNINSTALL=@OC_LIBS_UNINSTALL@
OC_LIBS_INSTALLPC=@OC_LIBS_INSTALLPC@
OC_LIBS_INSTALLHEADER=@OC_LIBS_INSTALLHEADER@
OC_LIBS_INSTALLLIB=@OC_LIBS_INSTALLLIB@
LIBMAPIADMIN_LIBS+=@SAMR_LIBS@
LIBMAPIADMIN_CFLAGS=@SAMR_CFLAGS@


# TORTURE
DCERPC_SERVER_MODULESDIR=@DCERPC_SERVER_MODULESDIR@

# TOOLS
OC_TOOLS=@OC_TOOLS@
OC_TOOLS_INSTALL=@OC_TOOLS_INSTALL@
OC_TOOLS_UNINSTALL=@OC_TOOLS_UNINSTALL@
MAGIC_LIBS=@MAGIC_LIBS@
ICAL_CFLAGS=@ICAL_CFLAGS@
ICAL_LIBS=@ICAL_LIBS@

# SERVER
OC_SERVER=@OC_SERVER@
OC_SERVER_INSTALL=@OC_SERVER_INSTALL@
OC_SERVER_UNINSTALL=@OC_SERVER_UNINSTALL@

# MAPISTORE BACKENDS
OC_MAPISTORE=@OC_MAPISTORE@
OC_MAPISTORE_CLEAN=@OC_MAPISTORE_CLEAN@
OC_MAPISTORE_INSTALL=@OC_MAPISTORE_INSTALL@
OC_MAPISTORE_UNINSTALL=@OC_MAPISTORE_UNINSTALL@

MAPISTORE_TEST=@MAPISTORE_TEST@

SUBUNIT_LIBS=@SUBUNIT_LIBS@

# Python
PYMAPIALL=@PYMAPIALL@
PYMAPIINSTALL=@PYMAPIINSTALL@
PYMAPIUNINSTALL=@PYMAPIUNINSTALL@

PYCDIR=@PYCDIR@

# Coverage
COVERAGE_INIT=@COVERAGE_INIT@

MANUALLY_CREATE_SYMLINKS=@MANUALLY_CREATE_SYMLINKS@

# Qt support
QT4_CXXFLAGS=@Qt4_CFLAGS@
QT4_LIBS=@Qt4_LIBS@
MOC=@MOC@
OPENCHANGE_QT4=@OPENCHANGE_QT4@
