# *************************************************************
#	ast2cr: ast to CR translator
#	ast is the internal format used in topo tools
#	cr is the Common Representation used in LITE (LotoSphere)
# *************************************************************
#**********************************************
# (C) Copyright 1992; The LotoSphere Consortium
#**********************************************
# $Id: makefile,v 2.20 1995/01/11 12:07:30 lotos Exp $

TOOL=   ast2cr

TRGT=	ast2cr
SRCS=   $(TRGT).c basic.c rag.c k.c csgiok.c
OBJS=   $(TRGT).o basic.o rag.o k.o csgiok.o
HS=	swbus.h k.h csgiok.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)

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

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

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