####################################################################
#   Copyright (c)
#
#   You may copy, distribute, and modify it freely as long as you  #
#   preserve this copyright and permission notice.                 #
#                                                                  #
#
####################################################################

#
#  Makefile for Adlib/src/kernel
#

SHELL       = /bin/sh


srcdir      = @srcdir@
top_srcdir  = @top_srcdir@

prefix      = @prefix@
exec_prefix = @exec_prefix@

bindir      = @bindir@
libdir      = @libdir@

ADLIB_INC_DIR = ${top_srcdir}/src/include

config_dir = ../include

VPATH       = .:${srcdir}

CCC         = @CXX@

RANLIB      = @RANLIB@

INSTALL     = cp

# NOTHING BELOW HERE modified by `configure'.

AR          = ar rcu

CCFLAGS = @OPTIMIZE@ @COMPILER_OPT@ @LIBINLINE@ -I@MPI_INC@ -I$(ADLIB_INC_DIR) -c

OBJECTS = Gather.o Reduce.o Remap.o RangeRep.o DimRangeRep.o CollapsedRangeRep.o BlockRangeRep.o CyclicRangeRep.o StepRangeRep.o Procs.o globals.o MessSchedule.o DataSchedule.o TreeSchedule.o block.o schedule.o threads.o io.o apgStack.o

LIB = libadlib.a

all : $(LIB)

libadlib.a : $(OBJECTS)
	rm -f $@
	$(AR) $@ $(OBJECTS)
	$(RANLIB) $@

io.o: io.C $(IO_INC)
	$(CCC) $(CCFLAGS) io.C

Gather.o: Gather.C
	$(CCC) $(CCFLAGS) Gather.C

Reduce.o: Reduce.C
	$(CCC) $(CCFLAGS) Reduce.C

Remap.o: Remap.C
	$(CCC) $(CCFLAGS) Remap.C

RangeRep.o: RangeRep.C
	$(CCC) $(CCFLAGS) RangeRep.C

DimRangeRep.o: DimRangeRep.C
	$(CCC) $(CCFLAGS) DimRangeRep.C

CollapsedRangeRep.o: CollapsedRangeRep.C
	$(CCC) $(CCFLAGS) CollapsedRangeRep.C

BlockRangeRep.o: BlockRangeRep.C
	$(CCC) $(CCFLAGS) BlockRangeRep.C

CyclicRangeRep.o: CyclicRangeRep.C
	$(CCC) $(CCFLAGS) CyclicRangeRep.C

StepRangeRep.o: StepRangeRep.C
	$(CCC) $(CCFLAGS) StepRangeRep.C

Procs.o: Procs.C
	$(CCC) $(CCFLAGS) Procs.C

globals.o: globals.C
	$(CCC) $(CCFLAGS) globals.C

TreeSchedule.o: TreeSchedule.C
	$(CCC) $(CCFLAGS) TreeSchedule.C

DataSchedule.o: DataSchedule.C
	$(CCC) $(CCFLAGS) DataSchedule.C

MessSchedule.o: MessSchedule.C
	$(CCC) $(CCFLAGS) MessSchedule.C

schedule.o: schedule.C
	$(CCC) $(CCFLAGS) schedule.C

block.o: block.C
	$(CCC) $(CCFLAGS) block.C

threads.o: threads.C
	$(CCC) $(CCFLAGS) threads.C

apgStack.o: apgStack.C
	$(CCC) $(CCFLAGS) apgStack.C


clean:
	rm -f *.o core

distclean:
	rm -f *.o core
	rm -f Makefile $(LIB)

install: $(LIB)
	if [ ! -d ${libdir} ] ; then mkdir ${libdir} ; fi
	$(INSTALL) $(LIB) ${libdir}

uninstall:
	rm -f ${libdir}/$(LIB)


# DO NOT DELETE THIS LINE -- make depend depends on it.

threads.o: ../include/MPIinclude.h ../include/threads.h
block.o: ../include/block.h
schedule.o: ../include/MPIinclude.h ../include/globals.h ../include/threads.h
schedule.o: ../include/block.h ../include/adtags.h ../include/schedule.h
TreeSchedule.o: ../include/MPIinclude.h
TreeSchedule.o: ../include/globals.h ../include/threads.h ../include/adtags.h
TreeSchedule.o: ../include/ProcTree.h ../include/schedule.h
TreeSchedule.o: ../include/TreeSchedule.h
MessSchedule.o: ../include/MPIinclude.h
MessSchedule.o: ../include/globals.h ../include/Procs.h ../include/threads.h
MessSchedule.o: ../include/adtags.h ../include/schedule.h
MessSchedule.o: ../include/MessSchedule.h
DataSchedule.o: ../include/MPIinclude.h
DataSchedule.o: ../include/globals.h ../include/threads.h ../include/adtags.h
DataSchedule.o: ../include/ProcTree.h ../include/schedule.h
DataSchedule.o: ../include/MessSchedule.h ../include/TreeSchedule.h
DataSchedule.o: ../include/DataSchedule.h
Procs.o: ../include/MPIinclude.h ../include/globals.h
Procs.o: ../include/ProcTree.h ../include/Procs.h
RangeRep.o: ../include/globals.h ../include/Procs.h ../include/Range.h
RangeRep.o: ../include/RangeRep.h ../include/CollapsedRangeRep.h
RangeRep.o: ../include/DimRangeRep.h ../include/BlockRangeRep.h
RangeRep.o: ../include/CyclicRangeRep.h ../include/StepRangeRep.h
DimRangeRep.o: ../include/globals.h ../include/Procs.h
DimRangeRep.o: ../include/Range.h ../include/RangeRep.h
DimRangeRep.o: ../include/CollapsedRangeRep.h ../include/DimRangeRep.h
DimRangeRep.o: ../include/BlockRangeRep.h ../include/CyclicRangeRep.h
DimRangeRep.o: ../include/StepRangeRep.h
CollapsedRangeRep.o: ../include/globals.h
CollapsedRangeRep.o: ../include/Procs.h ../include/Range.h
CollapsedRangeRep.o: ../include/RangeRep.h ../include/CollapsedRangeRep.h
CollapsedRangeRep.o: ../include/DimRangeRep.h ../include/BlockRangeRep.h
CollapsedRangeRep.o: ../include/CyclicRangeRep.h ../include/StepRangeRep.h
BlockRangeRep.o: ../include/globals.h
BlockRangeRep.o: ../include/Procs.h ../include/Range.h ../include/RangeRep.h
BlockRangeRep.o: ../include/CollapsedRangeRep.h ../include/DimRangeRep.h
BlockRangeRep.o: ../include/BlockRangeRep.h ../include/CyclicRangeRep.h
BlockRangeRep.o: ../include/StepRangeRep.h
CyclicRangeRep.o: ../include/globals.h
CyclicRangeRep.o: ../include/Procs.h ../include/Range.h ../include/RangeRep.h
CyclicRangeRep.o: ../include/CollapsedRangeRep.h ../include/DimRangeRep.h
CyclicRangeRep.o: ../include/BlockRangeRep.h ../include/CyclicRangeRep.h
CyclicRangeRep.o: ../include/StepRangeRep.h
StepRangeRep.o: ../include/globals.h ../include/Procs.h
StepRangeRep.o: ../include/Range.h ../include/RangeRep.h
StepRangeRep.o: ../include/CollapsedRangeRep.h ../include/DimRangeRep.h
StepRangeRep.o: ../include/BlockRangeRep.h ../include/CyclicRangeRep.h
StepRangeRep.o: ../include/StepRangeRep.h
globals.o: ../include/MPIinclude.h ../include/globals.h ../include/Procs.h
globals.o: ../include/ProcTree.h ../include/threads.h ../include/schedule.h
globals.o: ../include/TreeSchedule.h ../include/Range.h ../include/RangeRep.h
globals.o: ../include/CollapsedRangeRep.h ../include/DimRangeRep.h
globals.o: ../include/BlockRangeRep.h ../include/CyclicRangeRep.h
globals.o: ../include/StepRangeRep.h ../include/apgStack.h
Reduce.o: ../include/MPIinclude.h ../include/globals.h ../include/threads.h
Reduce.o: ../include/ProcTree.h ../include/Procs.h ../include/Range.h
Reduce.o: ../include/RangeRep.h ../include/CollapsedRangeRep.h
Reduce.o: ../include/DimRangeRep.h ../include/BlockRangeRep.h
Reduce.o: ../include/CyclicRangeRep.h ../include/StepRangeRep.h
Reduce.o: ../include/DAD.h ../include/schedule.h ../include/TreeSchedule.h
Reduce.o: ../include/Reduce.h
Remap.o: ../include/MPIinclude.h ../include/globals.h ../include/threads.h
Remap.o: ../include/ProcTree.h ../include/Procs.h ../include/Range.h
Remap.o: ../include/RangeRep.h ../include/CollapsedRangeRep.h
Remap.o: ../include/DimRangeRep.h ../include/BlockRangeRep.h
Remap.o: ../include/CyclicRangeRep.h ../include/StepRangeRep.h
Remap.o: ../include/DAD.h ../include/schedule.h ../include/MessSchedule.h
Remap.o: ../include/TreeSchedule.h ../include/Reduce.h ../include/Remap.h
Gather.o: ../include/MPIinclude.h ../include/globals.h ../include/threads.h
Gather.o: ../include/ProcTree.h ../include/Procs.h ../include/Range.h
Gather.o: ../include/RangeRep.h ../include/CollapsedRangeRep.h
Gather.o: ../include/DimRangeRep.h ../include/BlockRangeRep.h
Gather.o: ../include/CyclicRangeRep.h ../include/StepRangeRep.h
Gather.o: ../include/DAD.h ../include/schedule.h ../include/MessSchedule.h
Gather.o: ../include/TreeSchedule.h ../include/DataSchedule.h
Gather.o: ../include/Reduce.h ../include/Gather.h
io.o: ../include/adlib.h
io.o: ../include/platform.h
io.o: ../include/MPIinclude.h
io.o: ../include/globals.h ../include/Procs.h ../include/Range.h
io.o: ../include/RangeRep.h ../include/CollapsedRangeRep.h
io.o: ../include/DimRangeRep.h ../include/BlockRangeRep.h
io.o: ../include/CyclicRangeRep.h ../include/StepRangeRep.h ../include/DAD.h
io.o: ../include/threads.h ../include/ProcTree.h ../include/schedule.h
io.o: ../include/TreeSchedule.h ../include/MessSchedule.h
io.o: ../include/DataSchedule.h ../include/Reduce.h ../include/Remap.h
io.o: ../include/block.h ../include/Sum.h ../include/Gather.h ../include/io.h
apgStack.o: ../include/MPIinclude.h
apgStack.o: ../include/globals.h ../include/ProcTree.h ../include/Procs.h
apgStack.o: ../include/apgStack.h
