
/* Uncomment the following line to compile this for SunOS 4.0.3.
   This file should do the right thing for all other systems.
 */
/* #define SUNOS4_0_3 */


#ifdef SparcArchitecture
# define  SPARC_SRCS play.c
# define  SPARC_OBJS play.o
# ifdef SUNOS4_0_3				/* Sparc and 4.0.3 */
#  define  SPARC_LIBS
#  define  SPARC_INCL
#  define  SPARC_DEFS -DSUNOS4_0_3
# else						/* Sparc and 4.1 */
#  define  OSPARC_LIBS /usr/demo/SOUND/libaudio.a
#  define  SPARC_LIBS -L/usr/demo/SOUND -laudio
#  define  SPARC_INCL -I/usr/demo/SOUND
#  define  SPARC_DEFS
#endif
#else						/* not Sparc */
# define  SPARC_SRCS
# define  SPARC_OBJS
# define  SPARC_LIBS
# define  SPARC_INCL
# define  SPARC_DEFS
#endif

        DEPLIBS = XawClientDepLibs
LOCAL_LIBRARIES = XawClientLibs
           SRCS = xbiff.c SSMailbox.c regexp.c regsub.c strtoken.c strsep.c locate.c readgif.c SPARC_SRCS
           OBJS = xbiff.o SSMailbox.o regexp.o regsub.o strtoken.o strsep.o locate.o readgif.o SPARC_OBJS
       INCLUDES = $(TOP_INCLUDES) SPARC_INCL
  SYS_LIBRARIES = SPARC_LIBS -lm
	DEFINES = -DSHAPE SPARC_DEFS
    CDEBUGFLAGS = -g
      LDOPTIONS = -L$(USRLIBDIR) $(CDEBUGFLAGS) $(CCOPTIONS)

ComplexProgramTarget(xbiff++)

regexp.o:	regexp.h regmagic.h
regsub.o:	regmagic.h
strsep.o:	strtok.h
strtoken.o:	strtok.h
locate.o:	gif.h
readgif.o:	gif.h
SSMailbox.o:	SSMailboxP.h SSMailbox.h regexp.h
xbiff.o:	SSMailboxP.h SSMailbox.h

TARFILES= README CHANGES TODO Imakefile *.[ch] *.man *.au
xbiff++.tar::
	tar -vcf $@ $(TARFILES)
xbiff++.tar.Z::
	tar -vcf - $(TARFILES) | compress > $@
