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 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231
|
/*
* Copyright 1993 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.
*
* $NCDId: @(#)Imakefile,v 1.17 1995/12/06 01:33:07 greg Exp $
*/
XCOMM $NCDId: @(#)Imakefile,v 1.17 1995/12/06 01:33:07 greg Exp $
#include "../config/NetAudio.def"
#include "../config/NetAudio.tmpl"
#define StdSubdirs dia os
#define StdLibs $(DIA)
OTHEREXTS =
OTHERDEPDIRS =
DEPDIRS =
NONPEXEXTS =
EXTENSIONS =
XAULIB =
XDMCPLIB =
OS = os/libos.a $(XAULIB) $(XDMCPLIB)
BSDEMUL = $(LIBSRC)/Berk/Berklib.o
MFB =
CFB =
CFB8 =
MI =
DIX =
DIA = dia/libdia.a
FONT =
#if SystemV4 && !defined(SGIArchitecture)
# if defined(SYSV386) || defined(i386SVR4Architecture)
# if defined(USLArchitecture)
SYSLIBS = -lgen -lsocket -lc
# else
SYSLIBS = -lc /usr/ucblib/libucb.a -L/usr/X386/lib
# endif
# endif
#else
SYSLIBS =
#endif
#ifdef NetBSDArchitecture
SYSLIBS = -lossaudio
#endif
CBRT =
XCOMM
XCOMM This turns off the default rule for compiling .c files because
XCOMM this makefile does not really know how to build it. This is really
XCOMM just a hack because of the Sun version of make and nfs.
XCOMM
.c.o:
/*****************************************************************************
* ALL definitions, add one for each server *
*****************************************************************************/
#ifdef SunArchitecture
#define CanBuildAuServer YES
ALL1 = nasd
#define BuildSunServer
#endif
#ifdef SGIArchitecture
#define CanBuildAuServer YES
ALL1 = nasd
#define BuildSGIServer
#endif
#if defined(HPArchitecture) && !defined(LinuxArchitecture) && !defined(GNUArchitecture)
#define CanBuildAuServer YES
ALL1 = nasd
#define BuildHPServer
#endif
#if defined(i386SVR4Architecture) || defined(__FreeBSD_kernel__) || defined(__FreeBSD__) || defined(FreeBSDArchitecture) || defined(LinuxArchitecture) || defined(i386BsdArchitecture) || defined(USLArchitecture) || defined(cygwinArchitecture) || defined(__DragonFly__) || defined(GNUArchitecture)
# define CanBuildAuServer YES
#if !defined(GNUMachArchitecture) || defined(GNUArchitecture)
# if defined(cygwinArchitecture)
ALL1 = nasd.exe
# else
ALL1 = nasd
# endif
# define BuildVoxServer
# endif
#endif
ALL = $(ALL1)
all:: $(ALL)
#ifdef CanBuildAuServer
/*****************************************************************************
* Build rule blocks, add one for each server *
*****************************************************************************/
#ifdef BuildSunServer
XCOMM
XCOMM Sun server
XCOMM
SUNDIRS = StdSubdirs dda/sun
SUNLIBS = StdLibs dda/sun/libsun.a $(OS)
SUNSYSLIBS = $(SYSLIBS)
/* next 8 lines are for Solaris 2 OpenWindows imake config support */
MAPFILE=
OWVERSIONFILE=owversion
SYSLIBS=
ausun: owversion
owversion:
echo OpenWindows 3.x > $@
clean::
rm -f owversion
ServerTarget(nasd,$(SUNDIRS),$(SUNOBJS),$(SUNLIBS),$(SUNSYSLIBS))
InstallMultipleFlags($(ALL),$(BINDIR),$(INSTPGMFLAGS))
SUBDIRS = $(SUNDIRS)
#endif
#ifdef BuildSGIServer
XCOMM
XCOMM SGI server
XCOMM
SGIDIRS = StdSubdirs dda/sgi
SGILIBS = StdLibs dda/sgi/libsgi.a $(OS)
SGISYSLIBS = $(SYSLIBS) -laudio
ServerTarget(nasd,$(SGIDIRS),$(SGIOBJS),$(SGILIBS),$(SGISYSLIBS))
InstallMultipleFlags($(ALL),$(BINDIR),$(INSTPGMFLAGS))
SUBDIRS = $(SGIDIRS)
#endif
#ifdef BuildVoxServer
XCOMM
XCOMM voxware server
XCOMM
VOXWAREDIRS = StdSubdirs dda/voxware
VOXWARELIBS = StdLibs dda/voxware/libvoxware.a $(OS)
VOXWARESYSLIBS = $(SYSLIBS)
ServerTarget(nasd,$(VOXWAREDIRS),$(VOXWAREOBJS),$(VOXWARELIBS),$(VOXWARESYSLIBS))
InstallMultipleFlags($(ALL),$(BINDIR),$(INSTPGMFLAGS))
SUBDIRS = $(VOXWAREDIRS)
#endif
#ifdef BuildHPServer
XCOMM
XCOMM HP server
XCOMM
HPDIRS = StdSubdirs dda/hpux
HPLIBS = StdLibs dda/hpux/libhpux.a $(OS)
HPSYSLIBS = $(SYSLIBS) -lc
ServerTarget(nasd,$(HPDIRS),$(HPOBJS),$(HPLIBS),$(HPSYSLIBS))
InstallMultipleFlags($(ALL),$(BINDIR),$(INSTPGMFLAGS))
SUBDIRS = $(HPDIRS)
#endif
#define IHaveSubdirs
#define PassCDebugFlags AuPassCDebugFlags
DependSubdirs($(SUBDIRS))
#if ProjectX < 5
/*
* ForceSubdirs - force make to build subdirectories
*/
#ifndef ForceSubdirs
#define ForceSubdirs(dirs) @@\
dirs: FRC @@\
@cd $@ ; echo "making all in $(CURRENT_DIR)/$@..."; \ @@\
$(MAKE) $(MFLAGS) PassCDebugFlags all @@\
@@\
FRC:
#endif /* ForceSubdirs */
#endif /* Project X < 5 */
ForceSubdirs($(DEPDIRS) $(SUBDIRS))
clean::
$(RM) $(ALL)
ETCDIR = NasConfigSearchPath
InstallManPage(nasd,$(MANDIR))
#ifdef InstallGenManPage
InstallGenManPage(nasd.conf,$(FILEMANDIR),$(FILEMANSUFFIX))
#else
InstallManPage(nasd.conf,$(FILEMANDIR))
#endif
InstallNonExecFile(nasd.conf.eg,$(ETCDIR))
#else /* CanBuildAuServer */
depend::
#endif /* CanBuildAuServer */
|