# *************************************************************
#	rag	- Rule-based Attribute-evaluator Generator
# *************************************************************
#***********************************
# (C) Copyright 1992-1993; dit/upm
#  Distributed under the conditions stated in the
#  EPS General Public License (see file LICENSE)
#***********************************
# $Id: makefile,v 2.14 1994/11/04 18:54:37 eps Exp $

TOOL=	rag

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

TRGT=	librag.a

SRCS=	colours.c report.c
OBJS=	colours.o report.o

DESC=	rag.desc
HHS=	rag.hh

all:	rag.hh $(TRGT)

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

$(OBJS):	$(HHS)

install::	rag
	cp rag $(EPSBIN)
	chmod a+x $(EPSBIN)/rag

install::	rag.hh
	cp rag.hh $(EPSINC)
	chmod a+r $(EPSINC)/rag.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

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