/*
 * @(#)Imakefile	7.15 02/05/14
 *
 * Imakefile for cdda
 *
 *	cdda  - CD Digital Audio support
 *
 *   Copyright (C) 1993-2002  Ti Kan
 *   E-mail: xmcd@amb.org
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the Free Software
 *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 */


/*
 * If your local X configuration is broken, you may need to muck with
 * the following RANLIB= lines.
 * On most System V platforms RANLIB should be set to /bin/true.
 * On BSD-derived systems RANLIB should be set to ranlib.
 */
#if defined(DoRanlibCmd) && (DoRanlibCmd == NO)
RANLIB= /bin/true
#endif

/**** Optional defines:  Change as you see fit. *****************************
 *
 * -DBSDCOMPAT
 *      Compiling under BSD-derived or BSD-like OS
 *
 * -DHAS_SETEUID
 *      The system supports the geteuid(2), seteuid(2), getegid(2) and
 *      setegid(2) system calls.
 *
 * -DAIX_IDE
 *	Whether to enable the AIX IDE ioctl method.  This option must be
 *	used for AIX 4.x users that are using IDE CD-ROM drives who wants
 *	to use any of the CDDA modes.
 *
 * -DUSE_SYS_SOUNDCARD_H
 *	For OSS sound driver support, use the <sys/soundcard.h> header file
 *	instead of the one supplied with the xmcd source code package.
 *
 * -DNO_STDLIB_H
 *      The system does not support <stdlib.h>
 *
 * -DNO_UNISTD_H
 *      The system does not support <unistd.h>
 */
#if defined(SYSTYPE_BSD43) || defined(BSD43) || defined(BSD) || \
    defined(FreeBSDArchitecture) || defined(NetBSDArchitecture) || \
    defined(OpenBSDArchitecture) || defined(__bsdi__) || \
    defined(OsfArchitecture) || defined(OSF1Architecture) || \
    defined(sony_news) || \
    (defined(SunArchitecture) && OSMajorVersion == 4)
DEFINES=-DBSDCOMPAT -DHAS_SETEUID
#else
#if defined(LinuxArchitecture) || defined(SunArchitecture) || \
    defined(AIXArchitecture) || defined(UltrixArchitecture) || \
    defined(USLArchitecture) || defined(SVR4Architecture) || SystemV4
DEFINES= -DHAS_SETEUID
#else   /* all others */
DEFINES=
#endif  /* Linux Sun AIX Ultrix USL SVR4 */
#endif


/*
 * Add local include path
 */
#if defined(__bsdi__)
INCLUDES=-I.. -I/sys
#else
#if defined(LinuxArchitecture)
INCLUDES=-I.. -I/usr/src/linux/include
#else
INCLUDES=-I..
#endif  /* Linux */
#endif  /* __bsdi__ */


/*
 * C Source files
 */
SRCS=	cdda.c \
	sysvipc.c \
	sem.c \
	scsiread.c \
	solread.c \
	lxread.c \
	fbread.c \
	aixread.c \
	genwrite.c \
	osswrite.c \
	solwrite.c \
	flwrite.c

/*
 * Object files
 */
OBJS=	cdda.o \
	sysvipc.o \
	sem.o \
	scsiread.o \
	solread.o \
	lxread.o \
	fbread.o \
	aixread.o \
	genwrite.o \
	osswrite.o \
	solwrite.o \
	flwrite.o


/*
 * Build rules for cdda handling library
 */
NormalLibraryTarget(cdda,$(OBJS))
DependTarget()

