# *************************************************************
#	rdtts:	Real Data Types Test Specification
# *************************************************************
#***********************************
# (C) Copyright 1992-1993; dit/upm
#  Distributed under the conditions stated in the
#  TOPO General Public License (see file LICENSE)
#***********************************
# $Id: makefile,v 1.18 1995/01/11 12:05:46 lotos Exp $

TOOL=	rdtts

TRGT=	rdtts
SRCS=	$(TRGT).c elib.c sets.c lexana.c emit.c scopes.c tfilter.c	\
	swbus.c gram.y rag.c
OBJS=	$(TRGT).o elib.o sets.o lexana.o emit.o scopes.o tfilter.o	\
	swbus.o gram.o rag.o
HS=	swbus.h nodes.h grc.h

INCDIRS= -I$(EPSINC) -I$(TOPOINC)
LIBDIRS= -L$(EPSLIB) -L$(TOPOLIB)
CFLAGS=	$(CF_DBX) $(INCDIRS)

$(TRGT):	$(OBJS)
	$(CC) $(CFLAGS) $(LIBDIRS) -o $@ $(OBJS) -lcast -lrag

$(OBJS): $(HS)
rdtts.o:	emit.h lexana.h
elib.o:		elib.h
sets.o:		sets.h
lexana.o:	lexana.h
emit.o:		emit.h scopes.h tfilter.h
scopes.o:	scopes.h
tfilter.o:	tfilter.h
swbus.o:	swbus.h
rag.o:		elib.h scopes.h sets.h

install::	$(TRGT)
	cp $(TRGT) $(TOPOBIN)/$(TRGT)
	chmod a+x $(TOPOBIN)/$(TRGT)

install::
	touch install

gram.c:	gram.y
	-chmod u+w $@
	-$(YACC) $(YFLAGS) gram.y && mv y.tab.c $@

clean::
	-rm -f $(OBJS) $(TRGT)
	-rm -f *~ core

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