#
# Imakefile -- for instructions on generating a Makefile
#   for xboard from this file, see the file INSTALL
#

   SYS_LIBRARIES = -lm
 LOCAL_LIBRARIES = XawClientLibs
         DEPLIBS = XawClientDepLibs
         DEFINES = -DHAS_GETTIMEOFDAY
#    CDEBUGFLAGS = -g
#             CC = gcc -Wall -pedantic -ansi -Wno-implicit -Wno-comment
#             CC = gcc -Wall -traditional
       MANSUFFIX = 6

#ifdef HPArchitecture
       CCOPTIONS = -Aa -D_HPUX_SOURCE
#endif

# Uncomment the next line for Sun's Solaris 2.x, per Mark Silver:
#  SYS_LIBRARIES =  -lsocket -lnsl -lelf -lm -L/usr/ucblib -lucb
# Solaris users also need to add /usr/ucblib to their LD_LIBRARY_PATH
# environment variable to run the resulting binary.  To do this,
# add the following line (or something like it) to your .login file,
# then log out and back in:
#	setenv LD_LIBRARY_PATH ${OPENWINHOME}/lib:/usr/lib:/usr/ucblib
# Thanks to Arik Klingensmith for the "setenv" information.

# If you get the following linker error messages on SunOS, you have
# hit a known bug in the SunOS linker (ld).
#	ld: Undefined symbol 
#	  _get_wmShellWidgetClass 
#	  _get_applicationShellWidgetClass 
# To work around it,  try uncommenting this:
#         XMULIB = -Bstatic -lXmu -Bdynamic
# Ask Sun for patches 100512-02 and 100573-03 to get the real fix.

# Try uncommenting this if you use gcc and xboard crashes in sscanf.
# Probably needed on VAX Ultrix 3.1 and on IBM PS/2 AIX.
#      CCOPTIONS = -fwritable-strings

SRCS = parser.c xboard.c backend.c
OBJS = parser.o xboard.o backend.o
#SRCS = parser.c xboard.c backend.c zippy.c
#OBJS = parser.o xboard.o backend.o zippy.o

AllTarget(xboard)
AllTarget(cmail)

depend:: parser.c

clean::
	$(RM) parser.c chess.lst CLp*

ComplexProgramTarget(xboard)
InstallProgram(cmail,$(BINDIR))
InstallManPage(cmail,$(MANDIR))
