#NRL: $Id: Makefile,v 1.2.2.3 2003/06/27 13:16:25 dykes Exp $
#NRL: $Name:  $
#
# 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

ifeq ($(MACHINE), IRIX)
TOP=/u/mattchl/nothreads/MCELSystem
endif
ifndef TOP
TOP=~matt/MCELSystem
endif

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

#DEBUG=TRUE

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

TARGETS = main.ex
LIBDIRS = 
DATADIRS = 

all:

install: swan.ex
	mv swan.ex ../run

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
