#-------------------------------------------------------------------------
# 
# $Id: Makefile.in,v 1.5 2005/06/10 15:39:49 gthain Exp $
#
# This file was automatically generated by Automake, and manually modified 
# to make it simpler and cleaner. There are three sections in the file:
# 1) Macros
# 2) Recursive Rules and Suffixes (implicit rules)
# 3) Explicit Rules
#-------------------------------------------------------------------------
#-------------------------------------------------------------------------
#   Section 1) Macros
#-------------------------------------------------------------------------
top_srcdir = @top_srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
libdir = @libdir@
includedir = @includedir@

CONDOR_DIR = @CONDOR_DIR@
CXX = @CXX@
MISC_DEFN = @MISC_DEFN@
MISC_LIB = @MISC_LIB@
MW_LIBDIR = @MW_LIBDIR@
MW_LIBDIR_DEBUG = @MW_LIBDIR_DEBUG@
PVM_ROOT = @PVM_ROOT@
PVM_ARCH = @PVM_ARCH@
RANLIB = @RANLIB@
INSTALL = @INSTALL@
SOCKET_LIB = @SOCKET_LIB@
PACKAGE = @PACKAGE@
VERSION = @VERSION@

mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
AR = ar

DEFS = @DEFS@ -I.
LIBS = @LIBS@
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
CXXFLAGS = @CXXFLAGS@ -Wall

# To work with Insure, need to "setenv DEBUG_BUILD='insure'" and write/copy a good .psrc file
ifdef DEBUG_BUILD
DEBUG_CHECKER = $(DEBUG_BUILD)
MW_LIBDIR = $(MW_LIBDIR_DEBUG)
endif

CXXCOMPILE = $(DEBUG_CHECKER) $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
CXXLD = $(DEBUG_CHECKER) $(CXX)
CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@

# Subdirectories
SUBDIRS = src # examples
LIBRARIES =  

# Files to be cleaned
CLEANFILES = $(MW_LIBDIR)/* src/MWDriverInd.ii src/MWWorkerInd.ii src/RMComm/MW-File/MWFileRCW.ii src/RMComm/MW-File/MWFileRCM.ii src/RMComm/MW-CondorPVM/MWCondorPvmRCM.ii src/RMComm/MW-CondorPVM/MWCondorPvmRCW.ii src/RMComm/MW-Socket/MWSocketRCM.ii src/RMComm/MW-Socket/MWSocketRCW.ii

#-------------------------------------------------------------------------
#   Section 2) Explicit and Implicit Rules
#-------------------------------------------------------------------------

all: 
	[ "__$(SUBDIRS)" = "__" ] || for subdir in `echo "$(SUBDIRS)"`; do (cd $$subdir && $(MAKE) $@) ; done

.SUFFIXES: 

#-------------------------------------------------------------------------
#   Section 3) Recursive Rules
#-------------------------------------------------------------------------

install: 
	[ "__$(SUBDIRS)" = "__" ] || for subdir in `echo "$(SUBDIRS)"`; do (cd $$subdir && $(MAKE) $@) ; done

check: 
	[ "__$(SUBDIRS)" = "__" ] || for subdir in `echo "$(SUBDIRS)"`; do (cd $$subdir && $(MAKE) $@) ; done

clean: 
	[ "__$(SUBDIRS)" = "__" ] || for subdir in `echo "$(SUBDIRS)"`; do (cd $$subdir && $(MAKE) $@) ; done
	-test -z "$(CLEANFILES)" || rm -fr $(CLEANFILES)

distclean: 
	[ "__$(SUBDIRS)" = "__" ] || for subdir in `echo "$(SUBDIRS)"`; do (cd $$subdir && $(MAKE) $@) ; done
	-test -z "$(CLEANFILES)" || rm -fr $(CLEANFILES)
	-rm -f Makefile *.tar *.gz
	-rm -rf .deps lib lib_debug debug_lib
	-rm -f config.cache config.status config.log stamp-h stamp-h[0-9]* 
	-rm -rf autom4te.cache/
	-rm -f ${PACKAGE}-${VERSION}.tar.gz
	-find . -name "tca.map" -exec rm {} \;
	-find . -name ".inslog2" -exec rm {} \;
	-find . -name "*~" -exec rm {} \;
	-find . -name "*#*#" -exec rm {} \;
	@ echo "Cleaning intermediate results"
	-find . -name "out_master.*" -exec rm {} \;
	-find . -name "out_worker.*" -exec rm {} \;
	-find . -name "submitfiles" -exec rm -r {} \;
	-find . -name "worker_input" -exec rm -r {} \;
	-find . -name "worker_output" -exec rm -r {} \;

#
# A target to build a (clean) source distribution
#
srcdist: distclean
	echo -e "AUTHORS\nBUGS\nChangeLog\nCHANGES\nCVS\nNEWS\nTAGS\nTODO\nnmi_glue" > ../exclude-list
	cd ..; tar cvzf ${PACKAGE}-${VERSION}.tgz --exclude-from=exclude-list mw
	rm -f ../exclude-list

#
# A target for doc
#
doc:
	doxygen doxygen.conf

Makefile: configure.in
	./configure

.PHONY: all check clean distclean doc srcdist install
