#
# Makefile for the ORDER program.  
#   
# Creates an executable called sorts.
#
# This Makefile makes the PostScript version of the program.
#
# The Makefile is for Sun SPARC.  You may need to change
# The FFLAGS, or F77 lines for other compilers/computers
#
FFLAGS = -O -Bstatic
F77    = f77
#
#
sorts: sort.o order.o gjplot_ps.o clust.o wtree.o local.o wrclus.o util.o ran2.o
	$(F77) $(FFLAGS) -o sorts util.o sort.o order.o \
	gjplot_ps.o clust.o wtree.o local.o wrclus.o ran2.o
wrclus.o: wrclus2.f clust.blk
	$(F77) $(FFLAGS) -c -o wrclus.o wrclus2.f
sort.o: sort.f 
	$(F77) $(FFLAGS) -c sort.f
order.o: order.f
	$(F77) $(FFLAGS) -c order.f
gjplot_ps.o: gjplot_ps.f clust.blk
	$(F77) $(FFLAGS) -c gjplot_ps.f
clust.o: clust.f clust.blk
	$(F77) $(FFLAGS) -c clust.f
wtree.o: wtree.f clust.blk
	$(F77) $(FFLAGS) -c wtree.f
local.o: local.f
	$(F77) $(FFLAGS) -c local.f
util.o: util.f
	$(F77) $(FFLAGS) -c util.f
ran2.o: ran2.f
	$(F77) $(FFLAGS) -c ran2.f



