#
# $Header: /usr4/Src/emu/term/parser/RCS/Imakefile,v 2.3 92/02/26 11:41:21 me Exp Locker: me $
#
#
# This file is part of the PCS emu program.
#
# Copyright 1990 by PCS Computer Systeme, GmbH. Munich, West Germany.
#
#                        All Rights Reserved
#
# Permission to use, copy, modify, and distribute this software and its 
# documentation for any purpose and without fee is hereby granted, 
# 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 names of PCS or the authors not
# be used in advertising or publicity pertaining to distribution of the
# software without specific, written prior permission.  
# 
# PCS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
# ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
# PCS, THE AUTHORS, OR THEIR HOUSEPETS 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. SO DON'T SUE US. THANK YOU.
#
# USE THIS IMAKEFILE FOR TESTING.
#
# As per convention, this makefile will create a stand-alone version
# of the trie parser section of the emu widget for testing purposes.
#
#ifndef IngrArchitecture
CCOPTIONS = -Wall -g -pipe
#endif
INCLUDES = -I. -I.. -I../tty -I../../include
LOCAL_LIBRARIES = $(XTOOLLIB) $(XLIB)
#ifdef IngrArchitecture
DEPLIBS = $(DEPXTOOLIB) $(DEPXLIB)
#else
DEPLIBS =
#endif
# use -DMALLOC_TEST to see what's going on with mallocing. Needs TRIE_TESTING.

#ifdef IngrArchitecture
DEFINES = # -DTRIE_ARG_CHECKING -DTRIE_TESTING -DSYSV -DPCS
#else
DEFINES = -DTRIE_ARG_CHECKING -DTRIE_TESTING -DSYSV -DPCS
#endif

M_SRCS = ../../misc/strutils.c ../../misc/msgs.c
M_OBJS = ../../misc/strutils.o ../../misc/msgs.o

SRCS = try.c iops.c trie.c trie_aux.c new.c destroy.c $(M_SRCS)
OBJS = try.o iops.o trie.o trie_aux.o new.o destroy.o $(M_OBJS)

#ifdef IngrArchitecture
NormalLibraryTarget(parser,destroy.o new.o trie.o iops.o parser.o parse_dumb.o parse_hemu.o)
/* ComplexProgramTarget(test_parser) */
DependTarget()
#else
ComplexProgramTarget(test_parser)
#endif
