#
# Makefile for the gass tutorial program
#
#
# Requires that the GLOBUS_DEVELOPMENT_PATH variables is set. This 
# environment variable must point to the Globus development directory
# containing the flavor or libraries, etc. that you wish to use when
# building this example.  This environment variable should be set in
# the shell prior to envoking make.  The utility program
# $GLOBUS_PATH/globus-development-path can be used to assist you in
# determining the correct setting. For usage information type
# $GLOBUS_PATH/globus-development-path -help 
#
# For example:
# 
# SH:
#
# Non-threaded: 
#
# GLOBUS_DEVELOPMENT_PATH = `$GLOBUS_PATH/globus-development-path -nothreads`
# export GLOBUS_DEVELOPMENT_PATH
#
# Threaded:
#
# GLOBUS_DEVELOPMENT_PATH = `$GLOBUS_PATH/globus-development-path -threads`
# export GLOBUS_DEVELOPMENT_PATH
#
# CSH:
#
# Non-threaded:
#
# setenv GLOBUS_DEVELOPMENT_PATH \
#	`$GLOBUS_PATH/globus-development-path -nothreads`
# 
# Threaded:
#
# setenv GLOBUS_DEVELOPMENT_PATH \
# 	`$GLOBUS_PATH/globus-development-path -threads`
#

include $(GLOBUS_DEVELOPMENT_PATH)/etc/makefile_header

BUILD = $(GLOBUS_RELEASE_MAJOR).$(GLOBUS_RELEASE_MINOR)

MYCFLAGS  = -I$(includedir) $(CFLAGS) 
MYLDFLAGS = -L$(libdir) $(LDFLAGS) 
MYLIBS    = $(LIBS)

WITH_GASS_CFLAGS  = -I$(includedir) $(CFLAGS) $(GLOBUS_GASS_FILE_CFLAGS)
WITH_GASS_LDFLAGS = -L$(libdir) $(LDFLAGS) $(GLOBUS_GASS_FILE_LDFLAGS)
WITH_GASS_LIBS    = $(GLOBUS_GASS_FILE_LIBS) $(LIBS)


EXECS = mycopy withgass

all:	$(EXECS)

mycopy:	mycopy.c
	$(CC) $(MYCFLAGS) $(MYLDFLAGS) -o mycopy mycopy.c $(MYLIBS)

withgass: withgass.c
	$(CC) $(WITH_GASS_CFLAGS) $(WITH_GASS_LDFLAGS) \
	-o withgass withgass.c $(WITH_GASS_LIBS)

clean:
	$(RM) -f mycopy withgass *.o







