#######################################################################
# Here is a sample Makefile which compiles and links a program test.cxx and uses the
# CAVERNsoft G2 library.
#######################################################################

#######################################################################
#Step 1 : Decide the thread library and the binary type that you are using
#              So CAVERN_BIN_TYPE cab be given 32, n32 or 64 (check which type your platform supports)
#                    CAVERN_THREAD_TYPE can be sproc or pthreads
#######################################################################

CAVERN_BIN_TYPE=n32
CAVERN_THREAD_TYPE=sproc

#######################################################################
# Step 2: Include the location of the file CAVERN_APPLICATION_INCLUDES
#               in this example /usr/CAVERNG2 is the deployment directory
#######################################################################

#include /usr/CAVERNG2/CAVERN_APPLICATION_INCLUDES

#####################################################################################
#Step 3: If you are using the globus $(CAVERN_CFLAGS) when you compile your source code           #
#             and $(CAVERN_LIB) when you are creating executables.                                                          #
#            If you are using the globus library library with the CAVERnsoft G2 library then                      #
#            you need to include $(CAVERN_CFLAGS_WITH_GLOBUS) when you compile your code   #
#            and $(CAVERN_LIB_WITH_GLOBUS) when you are generating executables.                        #
#####################################################################################
 

DIRT= *.o *~ Makedepend test

.cxx.o:
 $(CPPCOMPILER) -g -woff 1342 -ptused -MDupdate Makedepend  $(CAVERN_CFLAGS) -c $*.cxx

test: test.o
 $(CPPCOMPILER) -g -woff 84 -MDupdate Makedepend -o test test.o $(CAVERN_LIB)

clean:
  \rm -f $(DIRT)