# *************************************************************
#	misc	- miscelaneous pieces to manage TOPO
# *************************************************************
#***********************************
# (C) Copyright 1992-1993; dit/upm
#  Distributed under the conditions stated in the
#  TOPO General Public License (see file LICENSE)
#***********************************
# $Id: makefile,v 2.17 1995/01/17 10:02:15 lotos Exp $

TOOL=	misc
SRCS=	context.c Ctopo.c ADAtopo.c
OBJS=	context.o Ctopo.o ADAtopo.o
HS=	context.h info.h

CFLAGS= $(CF_DBX)

all:	topo toposet gtm

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

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

install::	gtm
	cp gtm $(TOPOBIN)
	chmod a+rx $(TOPOBIN)/gtm

install::	SampleMakefile
	cp SampleMakefile $(TOPOLIB)
	chmod a+r $(TOPOLIB)/SampleMakefile

install::
	touch install

clean::
	-rm -f core *~ *.o
	-rm -f topo toposet gtm

topo:	topo.o $(OBJS)
	$(CC) $(CFLAGS) -o $@ topo.o $(OBJS)

toposet:	toposet.o $(OBJS)
	$(CC) $(CFLAGS) -o $@ toposet.o $(OBJS)

topo.o toposet.o $(OBJS):	$(HS)

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