/*
 * @(#)Imakefile	6.29 01/08/01
 *
 * Imakefile for libdi
 *
 *	libdi - CD Audio Player Device Interface Library
 *
 *   Copyright (C) 1993-2001  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. *****************************
 *
 * -BSDCOMPAT
 *	Compiling under BSD-derived or BSD-like OS.
 *
 * -DNO_FCHMOD
 *	The system does not support the fchmod(2) system call.
 *
 * -DSOL2_RSENSE
 *	Whether to include code that makes use of the auto request-sense
 *	feature in Solaris 2.2 or later.  This option is unused under
 *	other OS platforms.
 *
 * -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.
 *
 * -DNETBSD_OLDIOC
 *	Whether to enable the old-NetBSD ioctl method.  This option must be
 *	used for users of older NetBSD systems (prior to v1,2G or so).
 *
 * -DOEM_CDROM
 *	Define this if you have one of those strange OEM SCSI CD-ROM
 *	drives that identify themselves as a hard disk (see the FAQ file).
 *
 * -DDEMO_ONLY
 *	Build a simulated, demo-only version of libdi.
 */
#if defined(SYSTYPE_BSD43) || defined(BSD43) || defined(BSD) || \
    defined(FreeBSDArchitecture) || defined(NetBSDArchitecture) || \
    defined(OpenBSDArchitecture) || defined(__bsdi__) || \
    defined(OsfArchitecture) || defined(sony_news) || \
    (defined(SunArchitecture) && OSMajorVersion == 4)
DEFINES= -DBSDCOMPAT
#else
#if defined(SCOArchitecture)
DEFINES= -DNO_FCHMOD
#else
DEFINES=
#endif	/* SCOArchitecture */
#endif	/* BSD* */

#if defined(FreeBSDArchitecture)
.if exists(/usr/include/camlib.h)
DEFINES+= -DFREEBSD_CAM
.endif
#endif

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

/*
 * C Source files
 */
SRCS=	libdi.c \
	scsipt.c \
	os_aix.c \
	os_aux.c \
	os_bsdi.c \
	os_dec.c \
	os_dgux.c \
	os_fnbsd.c \
	os_hpux.c \
	os_irix.c \
	os_linux.c \
	os_news.c \
	os_odt.c \
	os_sinix.c \
	os_sun.c \
	os_svr4.c \
	os_vms.c \
	os_demo.c \
	os_cdsim.c \
	vu_chin.c \
	vu_hita.c \
	vu_nec.c \
	vu_pana.c \
	vu_pion.c \
	vu_sony.c \
	vu_tosh.c \
	aixioc.c \
	fbioc.c \
	slioc.c

/*
 * Objects files
 */
OBJS=	libdi.o \
	scsipt.o \
	os_aix.o \
	os_aux.o \
	os_bsdi.o \
	os_dec.o \
	os_dgux.o \
	os_fnbsd.o \
	os_hpux.o \
	os_irix.o \
	os_linux.o \
	os_news.o \
	os_odt.o \
	os_sinix.o \
	os_sun.o \
	os_svr4.o \
	os_vms.o \
	os_demo.o \
	os_cdsim.o \
	vu_chin.o \
	vu_hita.o \
	vu_nec.o \
	vu_pana.o \
	vu_pion.o \
	vu_sony.o \
	vu_tosh.o \
	aixioc.o \
	fbioc.o \
	slioc.o


/*
 * Build rule for the Device Interface Library
 */
NormalLibraryTarget(di,$(OBJS))
DependTarget()


