1XCOMM $Header: /home/earth/dimitri/c/X11/xmailbox/RCS/Imakefile,v 1.2 1996/07/01 10:15:58 dimitri Exp $
2#------------------------------------------
3# Change the XPM include and lib
4# directories appropriately.
5# Note: you need to have XPM 3.4 or higher!
6#------------------------------------------
7#
8XPMINCDIR = $(INCDIR)/X11
9XPMLIBDIR = $(USRLIBDIR)
10   XPMLIB = -L$(XPMLIBDIR) -lXpm
11
12#-------------------------------
13# Architecture specific defines
14#-------------------------------
15#ifdef HPArchitecture
16CCOPTIONS = -Aa -D_HPUX_SOURCE
17#endif
18
19#------------------------------------------
20# Comment the following define if you
21# want audio support
22#------------------------------------------
23#ifdef AlphaArcitecture
24#define NO_AUDIO          /* */
25#endif
26
27#------------------------------------------
28# Uncomment the following define if your
29# O/S supports SUN-compatible audio and
30# you would like to use the standard SUN
31# audio driver when neither the NCD audio
32# server nor the rplay sound server is
33# available.
34# Notes:
35# 1) When you compile using SUN_AUDIO
36#    with either NCD_AUDIO or
37#    RPLAY_AUDIO,  the program will
38#    fall back to use the standard SUN
39#    audio driver if a rplay or NCD
40#    server is not running.
41#
42# 2) If you are running Linux or FreeBSD
43#    and you have a sound card, you can
44#    uncomment the following define to
45#    turn on sound support.
46#------------------------------------------
47#ifdef i386Architecture
48SUN_AUDIO = -DSUN_AUDIO   /* */
49#endif
50
51#------------------------------------------
52# Uncomment the following define if you
53# are using an NCD audio server
54#------------------------------------------
55/* #define NCD_AUDIO         /* */
56
57#------------------------------------------
58# Uncomment the following define if you
59# are using rplay sound server
60#------------------------------------------
61/* #define RPLAY_AUDIO       /* */
62
63#------------------------------------------
64# Uncomment the following define if you
65# are playing a sound via an external
66# sound player.
67#------------------------------------------
68/* #define COM_AUDIO       /* */
69
70#ifndef NO_AUDIO
71#ifdef NCD_AUDIO
72      NCDINCDIR = /usr/local/include/ncd
73      NCDLIBDIR = /usr/local/lib
74
75         SNDLIB = -L$(NCDLIBDIR) -laudio -lm
76       INCLUDES = -I$(XPMINCDIR) -I$(NCDINCDIR) -I/usr/public/include
77  EXTRA_DEFINES = -DNCD_AUDIO $(SUN_AUDIO)
78#else
79#ifdef RPLAY_AUDIO
80       RPINCDIR = /usr/local/include/rplay
81       RPLIBDIR = /usr/local/lib
82         SNDLIB = -L$(RPLIBDIR) -lrplay -lm
83       INCLUDES = -I$(XPMINCDIR) -I$(RPINCDIR) -I/usr/public/include
84  EXTRA_DEFINES = -DRPLAY_AUDIO $(SUN_AUDIO)
85#else
86#ifdef COM_AUDIO
87       INCLUDES = -I$(XPMINCDIR) -I/usr/public/include
88  EXTRA_DEFINES = -DCOM_AUDIO
89#else
90         SNDLIB =
91       INCLUDES = -I$(XPMINCDIR)
92  EXTRA_DEFINES = $(SUN_AUDIO)
93#endif /* COM_AUDIO */
94#endif /* RPLAY_AUDIO */
95#endif /* NCD_AUDIO */
96#else
97         SNDLIB =
98       INCLUDES = -I$(XPMINCDIR)
99  EXTRA_DEFINES = -DNO_AUDIO
100#endif /* NO_AUDIO */
101
102   SRCS = Mailbox.c xmailbox.c
103   OBJS = Mailbox.o xmailbox.o
104
105        DEPLIBS = $(DEPXLIB) $(DEPXAWLIB) $(DEPXTOOLLIB) $(DEPXMULIB)
106LOCAL_LIBRARIES = $(XPMLIB) $(SNDLIB) $(XLIB) $(XAWLIB) $(XTOOLLIB) $(XMULIB)
107
108ComplexProgramTarget(xmailbox)
109InstallAppDefaults(XMailbox)
110
111