head	1.16;
access;
symbols;
locks; strict;
comment	@# @;


1.16
date	95.05.11.00.39.23;	author dglo;	state Exp;
branches;
next	1.15;

1.15
date	95.04.27.02.26.29;	author dglo;	state Exp;
branches;
next	1.14;

1.14
date	95.04.07.03.47.07;	author dglo;	state Exp;
branches;
next	1.13;

1.13
date	95.04.07.02.39.39;	author dglo;	state Exp;
branches;
next	1.12;

1.12
date	95.03.23.01.08.32;	author dglo;	state Exp;
branches;
next	1.11;

1.11
date	95.03.21.18.06.55;	author dglo;	state Exp;
branches;
next	1.10;

1.10
date	95.03.20.19.13.06;	author dglo;	state Exp;
branches;
next	1.9;

1.9
date	94.12.09.22.31.23;	author dglo;	state Exp;
branches;
next	1.8;

1.8
date	94.11.30.01.54.10;	author dglo;	state Exp;
branches;
next	1.7;

1.7
date	94.10.28.19.34.55;	author dglo;	state Exp;
branches;
next	1.6;

1.6
date	94.09.14.03.41.20;	author dglo;	state Exp;
branches;
next	1.5;

1.5
date	94.09.01.21.42.30;	author dglo;	state Exp;
branches;
next	1.4;

1.4
date	94.08.19.19.09.26;	author dglo;	state Exp;
branches;
next	1.3;

1.3
date	94.03.28.18.05.29;	author dglo;	state Exp;
branches;
next	1.2;

1.2
date	93.02.25.22.51.03;	author dglo;	state Exp;
branches;
next	1.1;

1.1
date	93.02.25.22.51.01;	author dglo;	state Exp;
branches;
next	;


desc
@Distributed Imakefile
@


1.16
log
@Add HP /dev/audio player and associated Makefile variables
@
text
@/*
 * Directory in which the sound files should be installed
 */
SOUND_DIR = $(LIBDIR)/xbiff++

/*
 * Set this to a colon-separated list of directories to search for sound
 * files.  This will only get used if users haven't set their SOUND_PATH
 * envvar
 */
#ifndef SoftwareWarehouse
SOUND_PATH_DEF = -DSOUND_PATH=\"$(SOUND_DIR)\"
#endif

/*
 * Uncomment the following line to compile this with HP's proprietary
 * audio driver support (Software Warehouse uses AudioFile instead)
 */
#ifndef SoftwareWarehouse
#ifdef HPArchitecture
#define HaveAudioApplication

#ifndef SoftwareWarehouse
#if ProjectX < 5
MOTIF = Motif1.1
#else
MOTIF = Motif1.2
#endif
MOTIF_INCL = -I/usr/include/$(MOTIF)
#endif

#endif
#endif

/* Uncomment the following line to compile this with AudioFile support
 *
 * Currently, both HP's Alib and AudioFile's AF library define both
 * "_ADefaultError" and "_ADefaultIOError", so can't support both at once.
 */
#ifndef HaveAudioApplication
#if !(defined(SunArchitecture) && OSMajorVersion > 4)
#define HaveAudioFile
#endif
#endif

/* This file should do the right thing for all other systems.
 */

#if defined(SparcArchitecture) && OSMajorVersion < 5
   SPARC_SRCS = play.c
   SPARC_OBJS = play.o
# if OSMinorVersion < 1
   SPARC_LIBS =
   SPARC_INCL =
   SPARC_DEFS = -DSUNOS4_0_3
# else						/* Sparc and 4.1 */
  OSPARC_LIBS = /usr/sww/lib/libaudio.a
   SPARC_LIBS = -L/usr/sww/lib -laudio
   SPARC_INCL = -I/usr/sww/include/SOUND
   SPARC_DEFS = 
# endif
#else
   SPARC_SRCS =
   SPARC_OBJS =
   SPARC_LIBS =
   SPARC_INCL =
   SPARC_DEFS =
#endif

#ifdef HaveAudioFile
#if defined(SparcArchitecture) && OSMajorVersion < 5
XCOMM  SunOS CC can't deal with ANSIfied AF headers
     CC = gcc
#endif
     AF_SRCS = aplay.c
     AF_OBJS = aplay.o
     AF_LIBS = -L/usr/sww/AF/lib -lAFext -lAF
     AF_INCL = -I/usr/sww/AF/include
     AF_DEFS = -DUSE_AUDIOFILE
#else
     AF_SRCS =
     AF_OBJS =
     AF_LIBS =
     AF_INCL =
     AF_DEFS =
#endif

#ifdef HaveAudioApplication
     AA_SRCS = aaplay.c
     AA_OBJS = aaplay.o
     AA_LIBS = -L/usr/lib -lAt -lAlib
     AA_INCL = -I/usr/include/audio ${MOTIF_INCL}
#if HasGcc
     AA_DEFS = -DAAPI
#else
     AA_DEFS = +e -DAAPI
#endif
#else
     AA_SRCS =
     AA_OBJS =
     AA_LIBS =
     AA_INCL =
     AA_DEFS =
#endif

#ifdef HPArchitecture
   HP_SRCS = hpplay.c
   HP_OBJS = hpplay.o
   HP_LIBS =
   HP_INCL =
   HP_DEFS = -DUSE_HPDEV
#else
   HP_SRCS =
   HP_OBJS =
   HP_LIBS =
   HP_INCL =
   HP_DEFS =
#endif

  AUDIO_SRCS = ${SPARC_SRCS} ${AF_SRCS} ${AA_SRCS} ${HP_SRCS}
  AUDIO_OBJS = ${SPARC_OBJS} ${AF_OBJS} ${AA_OBJS} ${HP_OBJS}
  AUDIO_LIBS = ${SPARC_LIBS} ${AF_LIBS} ${AA_LIBS} ${HP_LIBS}
  AUDIO_INCL = ${SPARC_INCL} ${AF_INCL} ${AA_INCL} ${HP_INCL}
  AUDIO_DEFS = ${SPARC_DEFS} ${AF_DEFS} ${AA_DEFS} ${HP_DEFS}

#ifndef MathLibrary
#ifdef HPArchitecture
#define MathLibrary	-Wl,-a,shared -lm
#else
#define MathLibrary	-lm
#endif
#endif

        DEPLIBS = XawClientDepLibs
LOCAL_LIBRARIES = XawClientLibs
           SRCS = xbiff.c SSMailbox.c scanmbox.c regexp.c regsub.c \
		  strtoken.c strsep.c locate.c findsnd.c \
		  ${AUDIO_SRCS}
           OBJS = xbiff.o SSMailbox.o scanmbox.o regexp.o regsub.o \
		  strtoken.o strsep.o locate.o findsnd.o \
		  ${AUDIO_OBJS}
       INCLUDES = $(TOP_INCLUDES) ${AUDIO_INCL}
  SYS_LIBRARIES = ${AUDIO_LIBS} MathLibrary
        DEFINES = -DSHAPE ${AUDIO_DEFS} ${ILLEGAL_DEFS} ${SOUND_PATH_DEF}
      LDOPTIONS = -L$(USRLIBDIR) $(CDEBUGFLAGS) $(CCOPTIONS)

ComplexProgramTarget(xbiff++)
InstallNonExec(NoMail.au,$(SOUND_DIR))
InstallNonExec(ahhh.au,$(SOUND_DIR))
InstallNonExec(bark.au,$(SOUND_DIR))
InstallNonExec(bass_snap.au,$(SOUND_DIR))
InstallNonExec(hammer.au,$(SOUND_DIR))
InstallNonExec(whip.au,$(SOUND_DIR))

regexp.o:	regexp.h regmagic.h
regsub.o:	regmagic.h
strsep.o:	strtok.h
strtoken.o:	strtok.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 -cvf $@@ $(TARFILES)
xbiff++.tar.gz::
	gtar -cvzf $@@ $(TARFILES)
@


1.15
log
@Change SOUND_PATH to SOUND_PATH_DEF so SOUND_PATH envvar doesn't
	accidentally get used
SunOS only needs gcc for AudioFile builds
@
text
@d89 2
a90 2
     AA_SRCS = hpplay.c
     AA_OBJS = hpplay.o
d106 19
a124 5
  AUDIO_SRCS = ${SPARC_SRCS} ${AF_SRCS} ${AA_SRCS}
  AUDIO_OBJS = ${SPARC_OBJS} ${AF_OBJS} ${AA_OBJS}
  AUDIO_LIBS = ${SPARC_LIBS} ${AF_LIBS} ${AA_LIBS}
  AUDIO_INCL = ${SPARC_INCL} ${AF_INCL} ${AA_INCL}
  AUDIO_DEFS = ${SPARC_DEFS} ${AF_DEFS} ${AA_DEFS}
@


1.14
log
@Lose references to GIF cruft
@
text
@d8 2
a9 2
 *  files.  This will only get used if users haven't set their SOUND_PATH
 *  envvar
d12 1
a12 1
SOUND_PATH = -DSOUND_PATH=\"$(SOUND_DIR)\"
a49 1
   CC = gcc
d71 4
d130 1
a130 1
        DEFINES = -DSHAPE ${AUDIO_DEFS} ${ILLEGAL_DEFS} ${SOUND_PATH}
@


1.13
log
@Install distributed sound files in SOUND_DIR
Set up a default SOUND_PATH consisting of SOUND_DIR
Add '#ifndef SoftwareWarehouse' for stuff that shouldn't get done here
Lose SUNOS4_0_3 definition; do it with SparcArchitecture && OSMajorVersion
@
text
@d120 1
a120 1
		  strtoken.c strsep.c locate.c readgif.c findsnd.c \
d123 1
a123 1
		  strtoken.o strsep.o locate.o readgif.o findsnd.o \
a141 2
locate.o:	gif.h
readgif.o:	gif.h
@


1.12
log
@Pre-R6 systems need MathLibrary defined
@
text
@d1 13
d15 3
a17 3
/* Uncomment the following line to compile this with HP's proprietary
 * audio driver support
 * 
d19 1
d21 12
a32 1
/* #define HaveAudioApplication */
a45 4
/* Uncomment the following line to compile this for SunOS 4.0.3.
 */
/* #define SUNOS4_0_3 */

d53 1
a53 1
# ifdef SUNOS4_0_3				/* Sparc and 4.0.3 */
d89 1
a89 1
     AA_INCL = -I/usr/include/audio
d110 3
d115 1
d119 6
a124 2
           SRCS = xbiff.c SSMailbox.c regexp.c regsub.c strtoken.c strsep.c locate.c readgif.c ${AUDIO_SRCS}
           OBJS = xbiff.o SSMailbox.o regexp.o regsub.o strtoken.o strsep.o locate.o readgif.o ${AUDIO_OBJS}
d127 1
a127 1
        DEFINES = -DSHAPE ${AUDIO_DEFS} ${ILLEGAL_DEFS}
d131 6
d149 3
a151 3
	tar -vcf $@@ $(TARFILES)
xbiff++.tar.Z::
	tar -vcf - $(TARFILES) | compress > $@@
@


1.11
log
@Don't need XLIB_ILLEGAL_ACCESS def anymore
Build in AF for everything EXCEPT Solaris
@
text
@d88 4
@


1.10
log
@Applied patches from xbiff X11R5->X11R6
@
text
@d16 1
a16 1
#if defined(SunArchitecture) && OSMajorVersion < 5
a86 4

#if ProjectX > 5
ILLEGAL_DEFS = -DXLIB_ILLEGAL_ACCESS
#endif
@


1.9
log
@Customize for SWW
@
text
@d97 1
a97 1
  SYS_LIBRARIES = ${AUDIO_LIBS} -lm
@


1.8
log
@Explain why we can't have an HP xbiff++ supporting both AAPI and AudioFile
@
text
@d16 1
d19 1
d28 1
a28 1
#ifdef SparcArchitecture
@


1.7
log
@'gcc' is default compiler
@
text
@d2 8
d11 3
d15 1
a15 3
#ifdef HPArchitecture
#define HaveAudioApplication
#else
@


1.6
log
@Kludge around illegal structure access
@
text
@d18 1
d87 1
a87 2
        DEFINES = -DSHAPE ${AUDIO_DEFS} {ILLEGAL_DEFS}
    CDEBUGFLAGS = -g
@


1.5
log
@Need +e flag for system CC
@
text
@d76 4
d86 1
a86 1
        DEFINES = -DSHAPE ${AUDIO_DEFS}
@


1.4
log
@Hack in support for HP Audio
@
text
@d57 1
d59 3
@


1.3
log
@Allow for AudioFile to be compiled in
@
text
@d4 3
d8 1
d52 19
a70 5
  AUDIO_SRCS = ${SPARC_SRCS} ${AF_SRCS}
  AUDIO_OBJS = ${SPARC_OBJS} ${AF_OBJS}
  AUDIO_LIBS = ${SPARC_LIBS} ${AF_LIBS}
  AUDIO_INCL = ${SPARC_INCL} ${AF_INCL}
  AUDIO_DEFS = ${SPARC_DEFS} ${AF_DEFS}
@


1.2
log
@Customized for SWW
@
text
@d2 4
a6 1
   This file should do the right thing for all other systems.
d10 2
d14 2
a15 2
# define  SPARC_SRCS play.c
# define  SPARC_OBJS play.o
d17 3
a19 3
#  define  SPARC_LIBS
#  define  SPARC_INCL
#  define  SPARC_DEFS -DSUNOS4_0_3
d21 11
a31 4
#  define  OSPARC_LIBS /usr/sww/lib/libaudio.a
#  define  SPARC_LIBS -L/usr/sww/lib -laudio
#  define  SPARC_INCL -I/usr/sww/include/SOUND
#  define  SPARC_DEFS
d33 13
a45 6
#else						/* not Sparc */
# define  SPARC_SRCS
# define  SPARC_OBJS
# define  SPARC_LIBS
# define  SPARC_INCL
# define  SPARC_DEFS
d48 6
d56 5
a60 5
           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
@


1.1
log
@Initial revision
@
text
@d16 3
a18 3
#  define  OSPARC_LIBS /usr/demo/SOUND/libaudio.a
#  define  SPARC_LIBS -L/usr/demo/SOUND -laudio
#  define  SPARC_INCL -I/usr/demo/SOUND
d35 1
a35 1
	DEFINES = -DSHAPE SPARC_DEFS
@
