/********************************************************************************
 * Copyright (c) Erik Kunze 1997 - 1998
 *
 * Permission to use, distribute, and sell this software and its documentation
 * for any purpose is hereby granted without fee, provided that the above
 * copyright notice appear in all copies and that both that copyright notice and
 * this permission notice appear in supporting documentation, and that the name
 * of the copyright holder not be used in advertising or publicity pertaining to
 * distribution of the software without specific, written prior permission.  The
 * copyright holder makes no representations about the suitability of this
 * software for any purpose.  It is provided "as is" without express or implied
 * warranty. THE CODE MAY NOT BE MODIFIED OR REUSED WITHOUT PERMISSION!
 *
 * THE COPYRIGHT HOLDER DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
 * EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY SPECIAL, INDIRECT OR
 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 * PERFORMANCE OF THIS SOFTWARE.
 *
 * Author: Erik Kunze
  *******************************************************************************/

/* $Id: Imakefile,v 4.1 1998/01/06 21:21:30 erik Rel $ */

#if ProjectX < 5
#define XCOMM #
#define NullParameter
#define InstallNonExecFile InstallNonExec
#endif

XCOMM Imakefile for xzx

LIBRARY = xzx

#include <../../xzx.config>

SRCS = dialog.c fdc.c menu.c monitor1.y monitor2.l resource.c screen.c
OBJS = dialog.o fdc.o menu.o monitor1.o monitor2.o resource.o screen.o

XCOMM --- Do not change anything below this line ---

/* Additional compiler flags ***************************************************/

LOCAL_CCOPTIONS = -I. -I.. -I../z80 -I../audio

#ifdef NecArchitecture
CCOPTIONS = $(LOCAL_CCOPTIONS) -ZXNd=8000 -ZXNp=8000 -KOlimit=2000
#else
CCOPTIONS = $(LOCAL_CCOPTIONS) -I/usr/local/X11R6/include
#endif

DEFINES = -DUSRLIBDIR=\"$(LIBDIR)\" -DLIBDIR=\"$(ZXLIBDIR)\"

DEPENDFLAGS = $(CCOPTIONS) $(DEFINES)

/* Make targets ****************************************************************/

AllTarget(NullParameter)
DependTarget()
NormalLibraryTarget($(LIBRARY), $(OBJS))

/* Additional rules for lex/yacc stuff. Does not work without this! ************/

clean::
	$(RM) y.tab.h monitor1.c monitor2.c

monitor1.c y.tab.h: monitor1.y
	$(YACC) -d monitor1.y
	mv y.tab.c monitor1.c

/* EOF *************************************************************************/
