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

       XMULIB = -lXmu
/*     XMULIB = $(OPENWINHOME)/lib/libXmu.a */

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

/*       XEWLIB = -lXew_p */
/*       XEWLIB = -lXew_d */
       XEWLIB = -lXew_d
/*       XEWLIB = -L../Xew -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

#ifdef Have_X11R5
   R5DEFINES = -DX11R5
#endif

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

/* 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 $(SPARCPROGRAMS)
         SRCS = simple.c audio.c video.c texted.c tagged.c ui_tools.c viewer.c $(SPARCSRCS)
         OBJS = simple.o audio.o video.o texted.o tagged.o ui_tools.o viewer.o $(SPARCOBJS)

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,,,)

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

DependTarget()
