######################################################################
# 
# Imakefile -- Imake rules for config file parser.
# Dean Collins, Tue Jun 16 09:49:26 PDT 1992
#
# Modified: Dean Collins Thu Mar 10 20:48:02 1994
# Moved customization to ../Imake.config, which each Imakefile
# will #include.  This eliminates the need to set CC within
# each one.

######################################################################
#
# Copyright (c) 1994 Dean Collins.
# Copyright (c) 1992 University of Idaho, Moscow, Idaho.
# 
# Permission to use, copy, modify, and distribute this software and its
# documentation free of charge 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 University of Idaho
# not be used in advertising or publicity pertaining to distribution of
# the software without specific, written prior permission.  The University
# of Idaho makes no representations about the suitability of this software
# for any purpose.  It is provided "as is" without express or implied warranty.
# 
# THE UNIVERSITY OF IDAHO DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
# SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
# IN NO EVENT SHALL THE UNIVERSITY OF IDAHO 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.
######################################################################

######################################################################
#  YOU SHOULDN'T NEED TO MODIFY ANYTHING IN THIS FILE.
#  All customization is now done in ../Imake.config.
######################################################################


#include "../Imake.config"


#----------------------------------------------------------------------

           SRCS = lex.yy.c y.tab.c config.c 
           OBJS = lex.yy.o y.tab.o config.o
           HDRS = y.tab.h cloud.h zdbm.h
LOCAL_LIBRARIES =
        DEPLIBS =
       PROGRAMS = 
       INCLUDES = -I.. -I../neb_cld -I../zdbm -I../util

NormalLibraryTarget(config,$(OBJS))
SpecialObjectRule(configtest.o, configtest.c, -UXPTS)
NormalProgramTarget(configtest, $(OBJS) configtest.o, $(DEPLIBS), \
			$(LOCAL_LIBRARIES) -L../neb_cld -L../zdbm -L../util \
			-L. -lcloud -lzdbm -lconfig -lutil, /**/ )
DependTarget()
LintTarget()

y.tab.c: config.yacc
	$(YACC) config.yacc

lex.yy.c: config.lex y.tab.h
	$(LEX) config.lex

y.tab.h: y.tab.c

lex.yy.o: lex.yy.c
	$(CC) -c lex.yy.c $(LOCAL_LIBRARIES) $(DEPLIBS) $(INCLUDES) $(CDEBUGFLAGS)

y.tab.o: y.tab.c
	$(CC) -c y.tab.c $(LOCAL_LIBRARIES) $(DEPLIBS) $(INCLUDES) $(CDEBUGFLAGS)

clean::
	$(RM) y.tab.c y.tab.h lex.yy.c 

uninstall::

