File: Imakefile

package info (click to toggle)
xmailbox 2.5-7
  • links: PTS
  • area: main
  • in suites: hamm, potato, slink
  • size: 232 kB
  • ctags: 163
  • sloc: ansic: 989; makefile: 50; sh: 10
file content (106 lines) | stat: -rw-r--r-- 3,205 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
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/X11R6/include/audio
      NCDLIBDIR = /usr/X11R6/lib

         SNDLIB = -L$(NCDLIBDIR) -laudio -lm
       INCLUDES = -I$(XPMINCDIR) -I$(NCDINCDIR)
  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)
  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)