#This file is included in src/Makefile and src/manhat-lib/Makefile
#
# Manhattan requires the ClearSilver template library available from:
#  http://www.clearsilver.net
#
# The INSTALL instructions for Manhattan explain how to compile ClearSilver 
# using source code provided with the Manhattan distribution.  You are then
# expected to install ClearSilver as a *shared* library by copying a file
# named libneo.so to the /usr/lib directory of your Linux server.
#
# Bob McKay wrote to point out that the ClearSilver library is available
# as a *static* library for the Fedora distribution.  (It seems to also be
# available for Ubuntu, and probably other Linux distributions.)  He suggested
# a change to the Makefile that would allow users who prefer to link ClearSilver
# as a *static* library, using the "official" version of ClearSilver packaged
# specifically for Fedora (or Ubuntu, or maybe others).
#
# If you want to try using the ClearSilver static library provided with your
# version of Linux, change the 'n' to 'y' in the line:
# USE_STATIC_CLEARSILVER=n
# below.  Then recompile Manhattan with: make clean; make install
#
# Note that using a ClearSilver as a static library will consume more memory
# than the default shared library method, but the programs should also be
# a little faster.
#


# change n to y to link with a static ClearSilver library
USE_STATIC_CLEARSILVER=n

#IF you are trying the static ClearSilver library
# change the next line to the location of your distribution's
# ClearSilver.h file

CLEARSILVER_LOCATION=/usr/include/ClearSilver


#### YOU SHOULD NOT HAVE TO TOUCH ANYTHING BELOW THIS LINE
#### (but what do I know?)


#location of the source code for the ClearSilver library
CS_DIR = ClearSilver



ifeq ($(USE_STATIC_CLEARSILVER), y)
CS_LIB = -lneo_cgi -lneo_cs -lneo_utl -lz
MANHAT_LIB_CFLAGS= -Wall -I${CLEARSILVER_LOCATION}
CSFLAGS = -I${CLEARSILVER_LOCATION}
endif
ifeq ($(USE_STATIC_CLEARSILVER), n)
CS_LIB = -lneo
CSFLAGS =  -I$(CS_DIR)
MANHAT_LIB_CFLAGS= -Wall  -I../ClearSilver 
endif

