/*
** If you are compiling this under X11R4, use the "#undef Have_X11R5" variant
*/
#define Have_X11R5	/* for X11R5 or X11R6 */
/* #undef Have_X11R5	/* for X11R4 */

/*
** Even with openwin (and other environments), first try with whatever
** the xmkmf gets for you, and only if that doesn't work, then start
** choosing/editing the commented variants which are provided just as
** examples of possible solutions.
**
**	-lXew	is the normal optimized library (shared if supported)
**	-lXew_d	is the debugged library (if built)
**	-lXew_p	is the profiled library (if built)
*/
       XMULIB = -lXmu
/*     XMULIB = $(OPENWINHOME)/lib/libXmu.a */

       XAWLIB = -lXaw
/*     XAWLIB = -L$(OPENWINHOME)/lib -lXaw */

       XEWLIB = -L../Xew -lXew_d

/*       XEWLIB = -lXew_p */
/*       XEWLIB = -lXew_d -lXm */
/*       XEWLIB = -L../Xew -lXew */
/*       XEWLIB = -lXew */

/*
** Remove comments from the ones you have and the support of which you
** compiled into Xew. If your location for these extra libraries is
** different from /usr/local/lib, you may have to add -L's and/or change
** the EXTRA_LIBRARIES line.
*/
      TIFFLIB = -ltiff
      JPEGLIB = -ljpeg
      RLELIB = -lrle

#ifdef Have_X11R5
   R5DEFINES = -DX11R5
#endif

SYS_LIBRARIES = $(XEWLIB) $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB) 
EXTRA_LIBRARIES = -L/usr/local/lib $(JPEGLIB) $(TIFFLIB) $(RLELIB) -lm
DEFINES = $(R5DEFINES) -DSYSV_INCLUDES

/* INCLUDES = -I/$(OPENWINHOME)/include -I../Xew */

CDEBUGFLAGS = -g

#ifdef SparcArchitecture
SPARCPROGRAMS = xaudio
    SPARCOBJS = xaudio.o
    SPARCSRCS = xaudio.c
#endif

     PROGRAMS = simple audio video texted tagged viewer frame \
		$(SPARCPROGRAMS) rtf2Xew
         SRCS = simple.c audio.c video.c texted.c tagged.c ui_tools.c \
		viewer.c frame.c $(SPARCSRCS) rtf2Xew.c rtf_reader.c
         OBJS = simple.o audio.o video.o texted.o tagged.o ui_tools.o \
		viewer.o frame.o $(SPARCOBJS) rtf2Xew.o rtf_reader.o

AllTarget($(PROGRAMS))

NormalProgramTarget(simple,simple.o,,,)

NormalProgramTarget(audio,audio.o,,,)

NormalProgramTarget(video,video.o,,,)

NormalProgramTarget(texted,texted.o ui_tools.o,,,)

NormalProgramTarget(tagged,tagged.o ui_tools.o,,,)

NormalProgramTarget(viewer,viewer.o ui_tools.o,,,)

NormalProgramTarget(frame,frame.o ui_tools.o,,,)

NormalProgramTarget(rtf2Xew,rtf2Xew.o rtf_reader.o,,,)

#ifdef SparcArchitecture
NormalProgramTarget(xaudio,xaudio.o,,,)
#endif

DependTarget()
