# *************************************************************
#	cast	- coloured Abstract Syntax Trees
# *************************************************************
#***********************************
# (C) Copyright 1992-1993; dit/upm
#  Distributed under the conditions stated in the
#  EPS General Public License (see file LICENSE)
#***********************************
# $Id: makefile,v 2.16 1994/11/04 18:54:32 eps Exp $

TOOL=	cast
TRGT=	libcast.a

INCDIRS= -I$(EPSINC)
CFLAGS=	$(CF_DBX) $(INCDIRS)

SRCS=	astmmg.c \
	astgoto.c astio.c astlink.c asttest.c asttrav.c \
	clrbsc.c clrio.c clrlib.c clrids.c clrint.c clrstr.c	\
	INTlists.c STRlists.c clrIT.c clrST.c clrIAT.c clrI2.c \
	clrAT.c \
	auxIT.c auxST.c auxIAT.c clrI2T.c \
	stack.c emalloc.c

OBJS=	astmmg.o \
	astgoto.o astio.o astlink.o asttest.o asttrav.o \
	clrbsc.o clrio.o clrlib.o clrids.o clrint.o clrstr.o	\
	INTlists.o STRlists.o clrIT.o clrST.o clrIAT.o clrI2.o \
	auxIT.o auxST.o auxIAT.o clrI2T.o \
	clrAT.o \
	stack.o emalloc.o

HS=	cast.hh

$(TRGT):	$(OBJS)
	ar rcv $(TRGT) $(OBJS)
	-ranlib $(TRGT)

$(OBJS):	$(HS)

install::	cast.desc
	cp cast.desc $(EPSINC)
	chmod a+r $(EPSINC)/cast.desc

install::	cast.hh
	cp cast.hh $(EPSINC)
	chmod a+r $(EPSINC)/cast.hh

install::	$(TRGT)
	cp $(TRGT) $(EPSLIB)
	-cd $(EPSLIB); ranlib $(TRGT)
	chmod a+r $(EPSLIB)/$(TRGT)

install::
	touch install

clean::
	-rm *.o

.SUFFIXES:	.desc .hh

.desc.hh:
	awk -f $(EPSLIB)/desc-hh.awk $*.desc > tmp.hh
	mv tmp.hh $*.hh

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