
# This makefile includes all variables used to configure AWS. You can update
# variables here and should not have do change the main makefile.
#
# IMPORTANT: each time you change the definitions here make sure you run
#            $ make setup


##############################################################################
# AWS will be installed under $(INSTALL). Update this variable to point to
# the install directory. You probably want to set this to the GNAT root
# directory to have AWS project files automatically available.
INSTALL	 = $(HOME)

##############################################################################
# Set to true if AWS must be built as a shared library. If SHARED is set to
# false AWS is built as a static library.
#
SHARED	= false

##############################################################################
# XMLADA optional, needed if you want to build SOAP's AWS support. Uncomment
# line above to activate XML/Ada support, you must also set ADA_PROJECT_PATH
# to point to the XML/Ada project files if not installed in the standard
# location.
#
#XMLADA	= true

##############################################################################
# ASIS optional, needed if you want to build ada2wsdl tool. This tool can be
# used to create a WSDL document from an Ada spec. Uncomment line above to
# activate ASIS support. you must also set ADA_PROJECT_PATH to point to the
# ASIS project files if not installed in the standard location.
#
# If you activate ASIS you also need to activate XMLADA above.
#
#ASIS	= true

##############################################################################
# Adasockets, optional. AWS use GNAT.Sockets as the default socket package. If
# you want to use AdaSockets just uncomment the ADASOCKETS variable below and
# set it to point to the AdaSockets install directory.
#
#ADASOCKETS = /opt/adasockets

##############################################################################
# IPv6, optional. If you want to use IPv6 sockets just uncomment the IPv6
# variable below. Don't use ADASOCKETS together with IPv6 option.
#
#IPv6 = true

##############################################################################
# POSIX optional, needed if you want to build AWS using the POSIX version of
# AWS.OS_Lib.
#
#POSIX	 = /opt/POSIX

##############################################################################
# AWS supports SSL (Secure Socket Layer). The SSL support is always built-in
# AWS. To build AWS's demos will SSL support you need to set SOCKET to ssl, in
# this case you must have installed OpenSSL on you computer. OpenSSL libraries
# are distributed on Windows platforms therefore the SSL mode is the default
# on this platform. (note that below ssl and openssl are aliases).
# SOCKET = [std/ssl/openssl/gnutls]
#
ifeq (${OS}, Windows_NT)
SOCKET=ssl
else
SOCKET=std
endif

##############################################################################
# The OS_Lib implementation. There is three, one based on GNAT library, one
# which is Win32 specific and one based on POSIX binding.
# OSLIB = [GNAT/Win32/POSIX]
OSLIB = GNAT

##############################################################################
# Whether AWS must use the integrated AI302 components or should use an
# external copy of them. If External is set be sure to set ADA_PROJECT_PATH to
# point to the AI302 project file.
# AI302 = [Internal/External]
AI302=Internal

##############################################################################
# AWS provides a binding to the LDAP API. This binding will use the standard
# LDAP DLL provided with Windows OS. On GNU/Linux you need to install OpenLDAP
# if it is not already installed. If LDAP is installed on your system you can
# set LDAP=1 below.
ifeq (${OS}, Windows_NT)
LDAP=1
else
LDAP=0
endif

##############################################################################
# To activate the debug mode just uncomment the variable below. This will
# build AWS with debug information and will output more build information.
#
#DEBUG	= 1

##############################################################################
# To run regression tests with GDB, uncomment the line below.
#
#GDB_REGTESTS = 1

##############################################################################
# Tools used by AWS
AR 		  = ar
AWK               = awk
CHMOD	 	  = chmod
CP	 	  = cp -p
DIFF	 	  = diff
DLLTOOL	 	  = dlltool
GCC               = gcc
GCC_FOR_HOST      = gcc
GNATMAKE	  = gnatmake
GNATMAKE_FOR_HOST = gnatmake
GREP		  = grep
GZIP	 	  = gzip
MKDIR	 	  = mkdir -p
MV	 	  = mv
RM	 	  = rm
SED	 	  = sed
TAR	 	  = tar
WINDRES	 	  = windres
CAT		  = cat
STRIP		  = strip
