/*
 * @(#)Imakefile	7.3 01/04/09
 *
 * Imakefile for libutil (common utility routines for xmcd, cda, libdi
 * and cdinfo)
 *
 *	xmcd   - Motif(tm) CD Audio Player
 *	cda    - Command-line CD Audio Player
 *	libdi  - CD Audio Player Device Interface Library
 *	cdinfo - CD Information Management 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. *****************************
 *
 * -DUSE_SELECT
 * -DUSE_POLL
 * -DUSE_NAP
 * -DUSE_USLEEP
 *	You should define one of the above to determine which method
 *	is used for millisecond-level resolution timing delay.  If none
 *	of this is defined, the resolution is set to 1 second.
 *
 * -DBSDCOMPAT
 *	Compiling under BSD-derived or BSD-like OS
 *
 * -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(sony_news) || \
    (defined(SunArchitecture) && OSMajorVersion == 4)
DEFINES=-DBSDCOMPAT -DUSE_SELECT
#else
DEFINES=-DUSE_SELECT
#endif

/*
 * Add local include path
 */
INCLUDES=-I..

/*
 * C Source files
 */
SRCS=	util.c

/*
 * Objects files
 */
OBJS=	util.o


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


