/*
 * @(#)Imakefile	6.18 98/09/26
 *
 * Imakefile for cda
 *
 *	mp3id3cddb - Command-line MP3 Header Viewer
 *
 *   Copyright (C) 1999  Sven Goethel
 *   E-mail: sgoethel@jausoft.com
 *
 *   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>
 *
 * -DNOVISUAL
 *	Build cda without the visual (curses) mode support
 *
 * -DUSE_TERMIOS
 * -DUSE_TERMIO
 * -DUSE_SGTTY
 *	One of these should be defined for tty mode control
 */
#if defined(FreeBSDArchitecture) || defined(OpenBSDArchitecture) || \
    defined(OsfArchitecture) || \
    (defined(SunArchitecture) && OSMajorVersion == 4)
DEFINES= -DBSDCOMPAT -DUSE_TERMIOS
#else
#if defined(NetBSDArchitecture) || defined(__bsdi__)
DEFINES= -DBSDCOMPAT -DNOVISUAL -DUSE_TERMIOS
#else
#if defined(sony_news)
DEFINES= -DBSDCOMPAT -DNOVISUAL -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 standard and local include paths
#if (defined(SunArchitecture) && OSMajorVersion == 4)
STD_INCLUDES=-I/usr/5include
#else
#if defined(LinuxArchitecture)
STD_INCLUDES=-I/usr/include/ncurses
#else	
STD_INCLUDES=
#endif
#endif
 */
CXXEXTRA_INCLUDES=-I..
CCOPTIONS=-Wall
CXXOPTIONS=-Wall

/*
 * C Source files
 */
SRCS=	../tools.cc \
	../tag.cc \
	../mp3id3util.cc \
	../cddata.cc \
	mp3id3cddb.cc


/*
 * Objects to build cda
 */
OBJS=	../tools.o \
	../tag.o \
	../mp3id3util.o \
	../cddata.o \
	mp3id3cddb.o


/*
 * Build rule for cda
 */
#ifdef InstallProgram
#undef InstallProgram
#define InstallProgram(program, dest)
#endif
#ifdef InstallManPage
#undef InstallManPage
#define InstallManPage(program, dir)
#endif
ComplexProgramTarget(mp3id3cddb)


