/********************************************************************************
 * Copyright (c) Erik Kunze 1997
 *
 * 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 1.2 1997/08/10 20:14:02 erik Rel $ */

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

XCOMM Imakefile for xzx

LIBRARY = xzx

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

#include <../xzx.config>

XCOMM --- Don't change anything below this line ---


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

#ifdef NecArchitecture
CCOPTIONS = -I. -I.. -I../z80 -ZXNd=8000 -ZXNp=8000 -KOlimit=2000
#else
CCOPTIONS = -I. -I.. -I../z80
#endif

DEFINES = $(END_DEF) $(SHM_DEF) $(TERMINAL_DEF) $(NAME_DEF) $(STRCASE_DEF) \
	  $(ESCAPE_DEF) $(JOY_DEF) $(AUDIO_DEF) $(IO_DEF) $(IF1_DEF) \
	  $(SLOW_DEF) $(MF128_DEF) $(PRINTER_DEF) $(PLUS3_DEF) $(DND_DEF) \
          -DUSRLIBDIR=\"$(LIBDIR)\" -DLIBDIR=\"$(ZXLIBDIR)\" -UREGISTERED

DEPENDFLAGS = $(CCOPTIONS) $(DEFINES)

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

NormalLibraryTarget($(LIBRARY), $(OBJS))
DependTarget()
LintLibraryTarget($(LIBRARY), $(SRCS))
NormalLintTarget($(SRCS))

/* 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 *************************************************************************/
