head	1.2;
access;
symbols;
locks;
comment	@# @;


1.2
date	2010.12.02.21.54.46;	author strandwg;	state Exp;
branches;
next	1.1;

1.1
date	2010.09.17.16.46.33;	author strandwg;	state Exp;
branches;
next	;


desc
@@


1.2
log
@*** empty log message ***
@
text
@#
# Makefile for sea level change calculation code
#
#
COMP	= pgf95
FLAGS   = -I/usr/local/netcdf-3.6.3-pgi-hpf-cc-9.3/include -I./include
LIB     = -L/usr/local/netcdf-3.6.3-pgi-hpf-cc-9.3/lib -lnetcdf
SRCDIR  = .
EXEDIR  = /home/strandwg/bin
OBJ	= \
	handle_err.o \
	module_netcdf.o \
	netcdf_jfl.o \
	kinds_mod.o \
	gx1v3_model_size.o \
	shr_kind_mod.o \
	shr_const_mod.o \
	state_ccsm_mod.o \
	state_pcm.o \
	check_exists.o 

all: calculate_slc

calculate_slc: $(OBJ) calculate_slc.o
	$(COMP) $(FLAGS) $(OBJ) calculate_slc.o $(LIB) -o $(EXEDIR)/calculate_slc

module_netcdf.o: $(SRCDIR)/module_netcdf.f90
	$(COMP) $(FLAGS) -c $(SRCDIR)/module_netcdf.f90

netcdf_jfl.o: $(SRCDIR)/netcdf_jfl.f90
	$(COMP) $(FLAGS) -c $(SRCDIR)/netcdf_jfl.f90

handle_err.o: $(SRCDIR)/handle_err.f90
	$(COMP) $(FLAGS) -c $(SRCDIR)/handle_err.f90
gx1v3_model_size.o: $(SRCDIR)/gx1v3_model_size.F90
	$(COMP) $(FLAGS) -c $(SRCDIR)/gx1v3_model_size.F90
constants.o: $(SRCDIR)/constants.F
	$(COMP) $(FLAGS) -c $(SRCDIR)/constants.F
shr_kind_mod.o: $(SRCDIR)/shr_kind_mod.f90
	$(COMP) $(FLAGS) -c $(SRCDIR)/shr_kind_mod.f90
shr_const_mod.o: $(SRCDIR)/shr_const_mod.f90
	$(COMP) $(FLAGS) -c $(SRCDIR)/shr_const_mod.f90
kinds_mod.o: $(SRCDIR)/kinds_mod.f90
	$(COMP) $(FLAGS) -c $(SRCDIR)/kinds_mod.f90
state_ccsm_mod.o: $(SRCDIR)/state_ccsm_mod.f90
	$(COMP) $(FLAGS) -c $(SRCDIR)/state_ccsm_mod.f90
state_pcm.o: $(SRCDIR)/state_pcm.f90
	$(COMP) $(FLAGS) -c $(SRCDIR)/state_pcm.f90
check_exists.o: $(SRCDIR)/check_exists.f90
	$(COMP) $(FLAGS) -c $(SRCDIR)/check_exists.f90

calculate_slc.o: calculate_slc.f90 netcdf_jfl.o netcdf_jfl.o handle_err.o state_ccsm_mod.o gx1v3_model_size.o \
                 check_exists.o kinds_mod.o shr_kind_mod.o shr_const_mod.o state_pcm.o $(INCL)
	$(COMP) $(FLAGS) -c calculate_slc.f90 

clean: 
	/bin/rm -f *.o *.mod

@


1.1
log
@Initial revision
@
text
@d6 2
a7 2
FLAGS   = -I/usr/local/netcdf-pgi/include -I./include
LIB     = -L/usr/local/netcdf-pgi/lib -lnetcdf
d18 3
a20 1
	state_ccsm_mod.o 
d22 1
a22 1
all: new_calculate_slc_PCM_CCSM
d24 2
a25 2
new_calculate_slc_PCM_CCSM: $(OBJ) new_calculate_slc_PCM_CCSM.o
	$(COMP) $(FLAGS) $(OBJ) new_calculate_slc_PCM_CCSM.o $(LIB) -o $(EXEDIR)/new_calculate_slc_PCM_CCSM
d47 8
a54 3

new_calculate_slc_PCM_CCSM.o: new_calculate_slc_PCM_CCSM.f90 netcdf_jfl.o netcdf_jfl.o handle_err.o state_ccsm_mod.o gx1v3_model_size.o kinds_mod.o shr_kind_mod.o shr_const_mod.o $(INCL)
	$(COMP) $(FLAGS) -c new_calculate_slc_PCM_CCSM.f90 
@
