# *************************************************************
#	pl : LOTOS pretty printer
# *************************************************************
#***********************************
# (C) Copyright 1992-1993; dit/upm
#  Distributed under the conditions stated in the
#  TOPO General Public License (see file LICENSE)
#***********************************
# $Id: makefile,v 2.12 1995/01/11 12:05:36 lotos Exp $

TOOL=   pl

TRGT=	pl
SRCS=	$(TRGT).c box.c	rag.c elib.c
OBJS=	$(TRGT).o box.o	rag.o elib.o
HS=	swbus.h box.hh

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 *~

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