XCOMM $Header: /home/earth/dimitri/c/X11/xmailbox/RCS/Imakefile,v 1.2 1996/07/01 10:15:58 dimitri Exp $
#------------------------------------------
# Change the XPM include and lib
# directories appropriately.
# Note: you need to have XPM 3.4 or higher!
#------------------------------------------
#
XPMINCDIR = /usr/include/X11
XPMLIBDIR = /usr/X11/lib
   XPMLIB = -L$(XPMLIBDIR) -lXpm

#-------------------------------
# Architecture specific defines
#-------------------------------
#ifdef HPArchitecture
CCOPTIONS = -Aa -D_HPUX_SOURCE
#endif

#------------------------------------------
# Comment the following define if you
# want audio support
#------------------------------------------
#define NO_AUDIO          /* */

#------------------------------------------
# Uncomment the following define if your
# O/S supports SUN-compatible audio and
# you would like to use the standard SUN
# audio driver when neither the NCD audio
# server nor the rplay sound server is
# available.
# Notes: 
# 1) When you compile using SUN_AUDIO 
#    with either NCD_AUDIO or 
#    RPLAY_AUDIO,  the program will
#    fall back to use the standard SUN
#    audio driver if a rplay or NCD
#    server is not running.
#
# 2) If you are running Linux or FreeBSD
#    and you have a sound card, you can
#    uncomment the following define to
#    turn on sound support. 
#------------------------------------------
/* SUN_AUDIO = -DSUN_AUDIO   /* */

#------------------------------------------
# Uncomment the following define if you
# are using an NCD audio server
#------------------------------------------
/* #define NCD_AUDIO         /* */

#------------------------------------------
# Uncomment the following define if you
# are using rplay sound server
#------------------------------------------
/* #define RPLAY_AUDIO       /* */

#------------------------------------------
# Uncomment the following define if you
# are playing a sound via an external
# sound player.
#------------------------------------------
/* #define COM_AUDIO       /* */

#ifndef NO_AUDIO
#ifdef NCD_AUDIO
      NCDINCDIR = /usr/local/include/ncd
      NCDLIBDIR = /usr/local/lib

         SNDLIB = -L$(NCDLIBDIR) -laudio -lm
       INCLUDES = -I$(XPMINCDIR) -I$(NCDINCDIR) -I/usr/public/include
  EXTRA_DEFINES = -DNCD_AUDIO $(SUN_AUDIO) 
#else
#ifdef RPLAY_AUDIO
       RPINCDIR = /usr/local/include/rplay
       RPLIBDIR = /usr/local/lib
         SNDLIB = -L$(RPLIBDIR) -lrplay -lm
       INCLUDES = -I$(XPMINCDIR) -I$(RPINCDIR) -I/usr/public/include
  EXTRA_DEFINES = -DRPLAY_AUDIO $(SUN_AUDIO) 
#else
#ifdef COM_AUDIO
       INCLUDES = -I$(XPMINCDIR) -I/usr/public/include
  EXTRA_DEFINES = -DCOM_AUDIO 
#else
         SNDLIB = 
       INCLUDES = -I$(XPMINCDIR) -I/usr/public/include
  EXTRA_DEFINES = $(SUN_AUDIO)
#endif /* COM_AUDIO */
#endif /* RPLAY_AUDIO */
#endif /* NCD_AUDIO */
#else
         SNDLIB = 
       INCLUDES = -I$(XPMINCDIR)
  EXTRA_DEFINES = -DNO_AUDIO
#endif /* NO_AUDIO */

   SRCS = Mailbox.c xmailbox.c 
   OBJS = Mailbox.o xmailbox.o

        DEPLIBS = $(DEPXLIB) $(DEPXAWLIB) $(DEPXTOOLLIB) $(DEPXMULIB)
LOCAL_LIBRARIES = $(XPMLIB) $(SNDLIB) $(XLIB) $(XAWLIB) $(XTOOLLIB) $(XMULIB)

ComplexProgramTarget(xmailbox)
InstallAppDefaults(XMailbox)

