/*
 *   @(#)Imakefile	6.12 99/12/27
 *
 *   Imakefile for wm2xmcd
 *
 *	wm2xmcd - Workman-to-Xmcd CD database file converter
 *
 *   Copyright (C) 1993-2000  Ti Kan
 *   E-mail: ti@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.
 *
 */


/**** Optional defines:  Change as you see fit. *****************************
 *
 * -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>
 *
 * -DUSE_TERMIOS
 * -DUSE_TERMIO
 * -DUSE_SGTTY
 *	One of these should be defined for tty mode control
 *
 * -DSOCKS
 *	Define this if your network requires that clients such as
 *	cddbcmd to be SOCKSified in order to access a remote CD database.
 *	You will also have to change to link the application with the
 *	socks library instead of the standard socket library.
 */
#if defined(FreeBSDArchitecture) || defined(OpenBSDArchitecture) || \
    defined(OsfArchitecture) || \
    (defined(SunArchitecture) && OSMajorVersion == 4)
DEFINES= -DBSDCOMPAT -DUSE_TERMIOS
#else
#if defined(NetBSDArchitecture) || defined(__bsdi__)
DEFINES= -DBSDCOMPAT -DUSE_TERMIOS
#else
#if defined(sony_news)
DEFINES= -DBSDCOMPAT -DUSE_SGTTY
#else
#if defined(SYSTYPE_BSD43) || defined(BSD43) || defined(BSD)
DEFINES= -DBSDCOMPAT -DUSE_SGTTY
#else
#if defined(XmacIIServer)
DEFINES= -DUSG -DUSE_TERMIO
#else	/* all others */
DEFINES= -DUSE_TERMIOS
#endif	/* XmacIIServer */
#endif	/* BSD */
#endif	/* sony_news */
#endif	/* NetBSDArchitecture __bsdi__ */
#endif	/* FreeBSD OpenBSD OsfArchitecture SunArchitecture */


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


/*
 * Source and object files
 */
PROGRAMS=	\
	cddbcmd \
	wm2xmcd

SRCS1=	cddbcmd.c
OBJS1=	cddbcmd.o

SRCS2=	wm2xmcd.c
OBJS2=	wm2xmcd.o



/*
 * No X11 libraries needed for utilities in this directory
 */
LOCAL_LIBRARIES=


/*
 * Build rule
 */
#ifdef InstallProgram
#undef InstallProgram
#define InstallProgram(program, dest)
#endif
#ifdef InstallManPage
#undef InstallManPage
#define InstallManPage(program, dir)
#endif
ComplexProgramTarget_1(cddbcmd,,)
ComplexProgramTarget_2(wm2xmcd,,)


