#
# IPS Makefile
#
# Written by Matt Bettencourt
# Nielsen Engineering & Research, Inc.
#
# Edit the MACHINE= line to define an OS type,
# MACHINE should be set to LINUX for linux, IRIX for SGI IRIX64, SPRO for 
# solaris machine using sun's compiler
#
# Edit the TOP= line to change the value of TOP
# TOP should be the directory that contains subdirectories ips,mk,mk_bin,data
ifndef TOP
TOP=../
endif


-include $(TOP)/mk/Make.mach

#DEBUG=TRUE

-include $(TOP)/mk/Make.inc

TARGETS = main.ex
LIBDIRS = 
DATADIRS = 

#F90=mpif90
#F77=mpif90
#LD=mpiCC
#XX=mpiCC

all:

realclean:
	$(RM) -rf $(F90_OBJ) $(F77_OBJ) $(CC_OBJ) $(DEPEND_DIR) *.M *.mod *~ *.ex *.g90 core $(OBJDIR) ips
	for i in  $(LIBDIRS);  do  cd $$i; \
	$(MAKE) realclean TOP=$(TOP) MACHINE=$(MACHINE); cd ..;  done

	$(CPP) $(CPP_FLAGS)  on_machine.F90 > on_unix.f90

ifdef F90_SRC
-include $(F90_SRC:%.$(F90SUF)=$(DEPEND_DIR)/%.dep)
endif

ifdef CPP_SRC
-include $(CPP_SRC:%.cc=$(DEPEND_DIR)/%.dep)
endif






