#-------------------------------------------------------------------------
# 
# $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 = .
prefix = /usr/local
exec_prefix = ${prefix}
libdir = ${exec_prefix}/lib
includedir = ${prefix}/include

CONDOR_DIR = /unsup/condor-test
CXX = /p/condor/workspaces/build/bin/g++
MISC_DEFN = 
MISC_LIB = -lNWS
MW_LIBDIR = /u/g/t/gthain/mw-source/release/mw/lib
MW_LIBDIR_DEBUG = /u/g/t/gthain/mw-source/release/mw/debug_lib
PVM_ROOT = /p/condor/workspaces/pvm/pvm3.4.2
PVM_ARCH = LINUX
RANLIB = ranlib
INSTALL = /usr/bin/install -c
SOCKET_LIB = 
PACKAGE = mw
VERSION = 0.3.0

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

DEFS = -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_VPRINTF=1 -DHAVE_GETCWD=1 -DHAVE_GETHOSTNAME=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_MKDIR=1 -DHAVE_STRSTR=1 -DHAVE_DYNAMIC_CAST= -DCONDOR_DIR=\"/unsup/condor-test\" -DUSE_POLL=1  -I.
LIBS = 
CPPFLAGS = 
LDFLAGS = 
CXXFLAGS = -g -O2 -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: 
	echo -e "AUTHORS\nBUGS\nChangeLog\nCHANGES\nCVS\nNEWS\nTAGS\nTODO\nnmi_glue\nmw/examples/blackbox\nmw/examples/SC05" > ../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
