#
# Configuration for the Ada bindings to Motif/X
#
# IMPORTANT!!!
#

# set IS_X11R6 or IS_X11R63 to whatever you want if you want to configure the
# bindings to X11R6 (you need X11R6 libraries then!) or X11R6.3, resp.
# if you don't set one of these variables, X11R5 is assumed
IS_X11R6 =
IS_X11R63 = 1

# set IS_MOTIF20 and IS_MOTIF21 to whatever you want if you want to configure
# the bindings to Motif2.0 or Motif2.1 (you need the appropriate Motif OR
# lesstif libraries then!)
# if you don't set any of these variables, Motif 1.2.* is assumed
IS_MOTIF21 = 1
IS_MOTIF20 =

# Motif is really Lesstif
# set this variable if you use Lesstif
IS_LESSTIF =

# set IS_64BIT to whatever you want if you want to configure the bindings
# to a 64 bit server (if you don't set this variable, a 32 bit is assumed)
# NOTE: 64 bit is NOT TESTED
IS_64BIT =

# set HAS_XPM if the X Pixmap library is available on your system. This should
# be the normal case
HAS_XPM = 1

# GNAT 3.13p (and possibly earlier versions as well) has a bug in the runtime
# library in the conversion of Wide_String. if you set GNAT313p_BUG to 1 a
# workaround is enabled
GNAT313p_BUG =

# where to find rm
RM = /bin/rm -f

# where to find mv
MV = /bin/mv

# Ada compiler (for gnat this is gcc, sometimes also called gnatgcc)
#ADA_COMP = gcc
ADA_COMP = adagcc
# compilation flags (I like optimizing)
ADA_CFLAGS = -c -gnatnv -O3 -mpentium -malign-loops=2 -malign-jumps=2 -malign-functions=2
# special make command for Ada
ADA_MAKE = gnatmake
# flags for special make command
#ADA_MAKE_FLAGS = -m -gnateav -O3 -mpentium -malign-loops=2 -malign-jumps=2 -malign-functions=2
ADA_MAKE_FLAGS = -gnatnv -O3 -mpentium -malign-loops=2 -malign-jumps=2 -malign-functions=2
# additional flags for linking
ADA_LINK_FLAGS = -s

# where to find the libraries of X-windows
XLIB_DIR = -L/usr/X11R6/lib

# X libraries
X_LIBS = -lX11
# everything needed for linking an X Toolkit application
XT_LIBS  = -lXt -lXext $(X_LIBS) -lSM -lICE
# needed when authorization information is needed
XAU_LIBS = -lXau
# needed when misc utilities are needed
XMU_LIBS = -lXmu
# pixmap library
XPM_LIB = -lXpm
# print extension
XP_LIB = -lXp -lXext
# everything needed for linking a Motif application (+ X Pixmaps)
# Motif 2.1 doesn't need Xpm (it is included), but needs Xp and Xext
XM_LIBS  = -lXm $(XPM_LIB) -lXp $(XT_LIBS)