File: Imakefile

package info (click to toggle)
nas 1.9.4-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 8,124 kB
  • ctags: 27,566
  • sloc: ansic: 52,109; makefile: 31,375; sh: 8,077; perl: 1,104; yacc: 249; cpp: 216; lex: 68
file content (212 lines) | stat: -rw-r--r-- 7,235 bytes parent folder | download | duplicates (4)
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
/*
 * Copyright 1994 Network Computing Devices, Inc.
 *
 * Permission to use, copy, modify, distribute, and sell this software and
 * its documentation for any purpose is hereby granted without fee, provided
 * that the above copyright notice appear in all copies and that both that
 * copyright notice and this permission notice appear in supporting
 * documentation, and that the name Network Computing Devices, Inc. not be
 * used in advertising or publicity pertaining to distribution of this 
 * software without specific, written prior permission.
 * 
 * THIS SOFTWARE IS PROVIDED 'AS-IS'.  NETWORK COMPUTING DEVICES, INC.,
 * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING WITHOUT
 * LIMITATION ALL IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
 * PARTICULAR PURPOSE, OR NONINFRINGEMENT.  IN NO EVENT SHALL NETWORK
 * COMPUTING DEVICES, INC., BE LIABLE FOR ANY DAMAGES WHATSOEVER, INCLUDING
 * SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES, INCLUDING LOSS OF USE, DATA,
 * OR PROFITS, EVEN IF ADVISED OF THE POSSIBILITY THEREOF, AND REGARDLESS OF
 * WHETHER IN AN ACTION IN CONTRACT, TORT OR NEGLIGENCE, ARISING OUT OF OR IN
 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 * 
 * $Id: Imakefile 280 2011-01-25 18:33:54Z auerswald $
 * $NCDId: @(#)Imakefile,v 1.21 1996/09/04 23:06:02 greg Exp $
 */

#include "../../config/NetAudio.tmpl"

#include <Threads.tmpl>

#if ProjectX < 5
/* Pre-X11R5 compatability */
#ifndef NormalLibX
#define NormalLibX	YES
#endif
#endif /* ProjectX < 5 */

#ifndef NormalLibAudio
#define NormalLibAudio NormalLibX
#endif
#ifndef SharedLibAudio
#define SharedLibAudio SharedLibX
#endif
#ifndef DebugLibAudio
#define DebugLibAudio DebugLibX
#endif
#ifndef ProfileLibAudio
#define ProfileLibAudio ProfileLibX
#endif

#define DoDebugLib DebugLibAudio
#define DoProfileLib ProfileLibAudio


/* must include <Library.tmpl> *after* the above 4 lines */
#include <Library.tmpl>

#if SystemV && !SystemV4 && !defined(XFree86Version) && !defined(AIXArchitecture)
   SYSV_DEFINES = -DAU_NOT_STDC_ENV -D_AuNEEDBCOPYFUNC -DNEED_FAKE_XWIN
#endif

XCOMM JET - hmmm.
#if (defined(FreeBSDArchitecture) || defined(NetBSDArchitecture) || defined(BSDArchitecture)) && defined(HasBSD44Sockets)
 EXTRA_DEFINES = -DBSD44SOCKETS
#endif

XCOMM JET - see if we should avoid streams
#if (SystemV || SystemV4) 
/* JET - streams are just too problematic.  UNIX/TCP CONN will do fine */
#undef ConnectionFlags
#define ConnectionFlags -DTCPCONN -DUNIXCONN
#endif

#if Malloc0ReturnsNull
 MALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
#endif

#if ProjectX < 5
    COMPAT_SRCS = AuGetBest.c
    COMPAT_OBJS = AuGetBest.o
#endif /* ProjectX < 5 */

     EDB_DEFINES = -DERRORDB=\"/usr/share/libaudio2/AuErrorDB\"

        DEFINES = $(MALLOC_DEFINES) $(SYSV_DEFINES)
   CONN_DEFINES = ConnectionFlags

HEADERS = Alibint.h Alibnet.h Xtutil.h audiolib.h audioutil.h snd.h wave.h    \
          voc.h aiff.h sound.h soundlib.h fileutil.h 8svx.h Astreams.h \
	  audio.h Afuncproto.h Afuncs.h Amd.h Amd.h Aos.h Aosdefs.h Aproto.h \
	  mutex.h release.h

   SRCS = AlibAsync.c Alibint.c AuErrDes.c AuFreeEData.c CloseSvr.c ConnSvr.c \
          CrFlow.c DesFlow.c Flush.c HandleEv.c IDOfEvent.c KillClient.c      \
          NextEvent.c OpenSvr.c ReqEvent.c ScanEvents.c ScanTEvent.c	      \
          SetElState.c GetElState.c SetElement.c GetElement.c SvrName.c Sync.c \
          ReadEl.c WriteEl.c Util.c SetElParms.c GetDevAttr.c	      \
          SetDevAttr.c CrBucket.c DesBucket.c GetBucAttr.c ListBucket.c	      \
          ListDevice.c GetSvrTime.c SetClsDwnMd.c GetClsDwnMd.c		      \
	  convutil.c fileutil.c monitor.c bcache.c			      \
	  globals.c Astreams.c ErrHndlr.c $(COMPAT_SRCS)		      \
          snd.c wave.c voc.c aiff.c 8svx.c sound.c soundlib.c mutex.c

   OBJS = AlibAsync.o Alibint.o AuErrDes.o AuFreeEData.o CloseSvr.o ConnSvr.o \
          CrFlow.o DesFlow.o Flush.o HandleEv.o IDOfEvent.o KillClient.o      \
          NextEvent.o OpenSvr.o ReqEvent.o ScanEvents.o ScanTEvent.o	      \
          SetElState.o GetElState.o SetElement.o GetElement.o SvrName.o Sync.o \
          Xtutil.o ReadEl.o WriteEl.o Util.o SetElParms.o GetDevAttr.o	      \
          SetDevAttr.o CrBucket.o DesBucket.o GetBucAttr.o ListBucket.o	      \
          ListDevice.o GetSvrTime.o SetClsDwnMd.o GetClsDwnMd.o		      \
	  convutil.o fileutil.o monitor.o bcache.o			      \
	  globals.o Astreams.o ErrHndlr.o $(COMPAT_OBJS)		      \
          snd.o wave.o voc.o aiff.o 8svx.o sound.o soundlib.o mutex.o

#if ProjectX >= 5
LibraryObjectRule()

SpecialLibObjectRule(ConnSvr.o,/**/,$(CONN_DEFINES))
SpecialLibObjectRule(AuErrDes.o,/**/,$(CONN_DEFINES) $(EDB_DEFINES))
SpecialLibObjectRule(OpenSvr.o,/**/,$(CONN_DEFINES))
SpecialLibObjectRule(Alibint.o,/**/,$(CONN_DEFINES))
SpecialLibObjectRule(Astreams.o,/**/,$(CONN_DEFINES))
SpecialLibObjectRule(globals.o,/**/,$(CONN_DEFINES))
#else 
/* Pre-X11R5 compatability */
NormalLibraryObjectRule()

all:: libaudio.a

SpecialObjectRule(ConnSvr.o,/**/,$(CONN_DEFINES))
SpecialObjectRule(AuErrDes.o,/**/,$(CONN_DEFINES) $(EDB_DEFINES))
SpecialObjectRule(OpenSvr.o,/**/,$(CONN_DEFINES))
SpecialObjectRule(Alibint.o,/**/,$(CONN_DEFINES))
SpecialObjectRule(Astreams.o,/**/,$(CONN_DEFINES))
SpecialObjectRule(globals.o,/**/,$(CONN_DEFINES))

#endif
BuildIncludes($(HEADERS),audio,..)
InstallMultiple($(HEADERS),$(INCDIR))
#if ProjectX >= 5
InstallNonExecFile(AuErrorDB,/usr/share/libaudio2)
#else
install::
	$(MKDIRHIER) $(LIBDIR)
InstallNonExec(AuErrorDB,/usr/share/libaudio2)
#endif

#if defined(HPArchitecture) && !defined(LinuxArchitecture) && !defined(GNUArchitecture) && !defined(DarwinArchitecture)
XAULIB = 
#else
XAULIB = -lXau
#endif

#if defined(LinuxArchitecture) || defined(GNUArchitecture) || defined(SunArchitecture) || defined(__FreeBSD_kernel__) || defined(DarwinArchitecture)
REQUIREDLIBS = -L$(USRLIBDIR) -lXt $(XAULIB) -lm  $(LDFLAGS_DEF)
#endif

#if defined(cygwinArchitecture)
REQUIREDLIBS = $(LDPRELIB) $(XAUTHLIB) $(XTOOLLIB) $(XONLYLIB)
STD_INCLUDES = -I/usr/include
#endif                                                                        


#if DoSharedLib
#if DoNormalLib
#if ProjectX >= 5
SharedLibraryTarget(audio,$(SOAUDIOREV),$(OBJS),.,.)
#else
SharedLibraryTarget(audio,$(SOAUDIOREV),$(OBJS),shared,..)
#endif
#else
# if ProjectX >= 5
#ifdef WIN32
REQUIREDLIBS = $(XAUTHLIB) $(XTOOLLIB) $(XONLYLIB)
#endif /* WIN32 */
SharedLibraryTarget(audio,$(SOAUDIOREV),$(OBJS),unshared,..)
#else
SharedLibraryTarget(audio,$(SOAUDIOREV),$(OBJS),.,.)
#endif
#endif
#ifdef notyet
SharedLibraryDataTarget(audio,$(SOAUDIOREV),$(UNSHAREDOBJS))
#endif
InstallSharedLibrary(audio,$(SOAUDIOREV),$(USRLIBDIR))
#ifdef notyet
InstallSharedLibraryData(audio,$(SOAUDIOREV),$(USRLIBDIR))
#endif
#endif

#if DoNormalLib
NormalLibraryTarget(audio,$(OBJS))
InstallLibrary(audio,$(USRLIBDIR))
#endif

#if DoProfileLib
ProfiledLibraryTarget(audio,$(OBJS))
InstallLibrary(audio_p,$(USRLIBDIR))
#endif

#if DoDebugLib
DebuggedLibraryTarget(audio,$(OBJS))
InstallLibrary(audio_d,$(USRLIBDIR))
#endif

BuildReleaseHeader()

/* because nameaddr.c is conditionally included */
Astreams.o: nameaddr.c
Astreams.o: nameserver.c

depend:: $(SRCS)
  
DependTarget()