# Generated automatically from Makefile.in by configure.
#-----------------------------------------------------------------------------
#  Copyright (c) 1991,1992 Southeastern Universities Research Association,
#                          Continuous Electron Beam Accelerator Facility
# 
#  This software was developed under a United States Government license
#  described in the NOTICE file included as part of this distribution.
# 
#  CEBAF Data Acquisition Group, 12000 Jefferson Ave., Newport News, VA 23606
#  Email: coda@cebaf.gov  Tel: (804) 249-7101  Fax: (804) 249-7363
# -----------------------------------------------------------------------------
#  
#  Description:
# 	Makefile for cefdmp
# 	
#  Author:  Jie Chen, CEBAF Data Acquisition Group
# 
#  Revision History:
#    $Log: Makefile.in,v $
#    Revision 1.5  2003/11/12 19:53:05  abbottd
#     solaris 8 fixes
#
#    Revision 1.4  1999/10/21 13:21:09  abbottd
#    fix for Solaris build from Top-level
#
#    Revision 1.3  1998/11/13 18:08:43  timmer
#    finally decided on Makefile.in system
#
#    Revision 1.1  1998/11/05 21:32:58  timmer
#    switch Makefile.in
#
#    Revision 1.3  1998/01/08 16:38:12  heyes
#    copy cefdict_lex.l from ../xcefdmp
#
#    Revision 1.2  1997/10/01 13:13:59  heyes
#    all in
#
#    Revision 1.1.1.1  1996/09/24 14:21:28  chen
#    Initial import to coda_2.0
#
#
#
#

CC       = gcc
YACC     = yacc
LEX      = flex -l8
CFLAGS   = -DSYSV -DSRVR4
CODA_LIB = /usr/local/coda/2.5/Linux/lib
CODA_BIN = /usr/local/coda/2.5/Linux/bin
SYS_LIB  = -L$(CODA_LIB) -L/usr/local/lib

OBJS = bufcpy.o cef_init.o cef_node_name.o \
	cef_spy_event.o cef_util.o \
	dump_content.o dump_tree.o ev_dict.o \
	event_tree.o open_dict.o parse_format.o \
	print_item.o cefdmp.o cefDictTree.o cefDictParse.o \
	y.tab.o lex.yy.o

.c.o:
	rm -f $@
	$(CC) $(CFLAGS) -c $< -o $@

cefdmp: $(OBJS)	$(SYS_LIB)
	@rm -f $@
	$(CC) -o $@ $(CFLAGS) $(OBJS) $(SYS_LIB) -lcoda -ll -lm

install: cefdmp
	cp cefdmp ${CODA_BIN}

y.tab.c "y.tab.h: cefdict_parser.y
	rm -f $@
	$(YACC) -d cefdict_parser.y

lex.yy.c: cefdict_lex.l y.tab.h
	rm -f $@
	$(LEX) cefdict_lex.l

#dummy rule
$(SYS_LIB):

clean::
	rm -f cefdmp *.o *~ core



