/* If you're debugging, use this line: */
#     CDEBUGFLAGS = -g -DDEBUG
/* otherwise, try this: */
      CDEBUGFLAGS = -O2 -fomit-frame-pointer
/* If your compiler does not recognize -fomit_frame_pointer (i.e. it's not
**   gcc) then omit it.  However, it is *necessary* to have this if
**   you are using gcc on a 386 with debugging off.
*/

/* Choose the first line if your X server supports the shared memory
**   extension, and the second line if it does not.  Supported architecutres
**   are ARCH-i86, ARCH_SUN, and ARCH_OTHER
*/
#if HasShm == NO
SHM_DEFS = -DNO_XSHM
#else
SHM_DEFS =
#endif
  
#if defined(i386)
   ARCH_DEFS = -DARCH_i86
#else
#ifdef SunArchitecture
   ARCH_DEFS = -DARCH_SUN
#else
   ARCH_DEFS = -DARCH_OTHER
#endif
#endif

/* Set TCL_LIB and TCL_INCLUDE the library and include paths for Tcl.
** For Linux, the following works:
*/
TCL_LIB = -L/usr/lib -ltcl
TCL_INC = -I/usr/include/tcl
/* On other systems (Suns?) these lines should be used:
*/
# TCL_LIB = -L/store/lib -ltcl
# TCL_INC = -I/store/include

/* Add -DTRUECOLOR to EXTRA_DEFINES if you want to use a 16bpp framebuffer.
** The graphics look much nicer, but wt will run more slowly.
*/
EXTRA_DEFINES = -DX11GRAPHICS $(ARCH_DEFS) $(SHM_DEFS) $(TCL_INC)
EXTRA_LIBRARIES  = $(TCL_LIB) -lm

         DEFINES = $(RESOURCE_DEFINES) $(LOCAL_DEFINES)
 
         DEPLIBS = $(DEPXLIB)
 LOCAL_LIBRARIES = $(XLIB)


SRCS = dither.c error.c fixed.c framebuf.c gifload.c graphfile.c list.c \
       object.c ppmload.c render.c table.c texture.c view.c world.c \
       tclworld.c tclwt.c tclupdate.c tclobject.c timer.c wtmem.c \
       x11graphics.c x11input.c

OBJS = dither.o error.o fixed.o framebuf.o gifload.o graphfile.o list.o \
       object.o ppmload.o render.o table.o texture.o view.o world.o \
       tclworld.o tclwt.o tclupdate.o tclobject.o timer.o wtmem.o \
       x11graphics.o x11input.o


ComplexProgramTarget(xwt)

