#
# Sequoia: Database clustering technology.
# Copyright (C) 2005 Emic Networks
# Contact: sequoia@continuent.org
# 
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# 
# http://www.apache.org/licenses/LICENSE-2.0
# 
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Initial developer(s): Gilles Rayrat
# Contributor(s): 
#

# Makefile for the Carob C++ API example

# Put an absolute path in here to be able to run from any directory
CAROB_ROOT			= ../..

LIB_CAROB			= carob

INCDIR				= ${CAROB_ROOT}/include

# for GCC
CXXFLAGS			= -g3 -Wall -I${INCDIR}
LDFLAGS 			= -Wl,-rpath,${CAROB_ROOT} -L${CAROB_ROOT} -l${LIB_CAROB} -ldl -rdynamic

EXE					= read_example
OBJS				= read_example.o

${EXE}: ${OBJS}
	${CXX} $^ ${LDFLAGS} -o $@
# use this when compiling with mingw
static: ${OBJS} lib${LIB_CAROB}.a
	${CXX} $^ ${LDFLAGS} -o $@
clean:
	${RM} ${TESTOBJS} ${EXE}
