Makefile
author Forrest Hoffman <forrest@climatemodeling.org>
Wed, 26 Sep 2007 17:16:40 -0400
changeset 0 3c02cce30be8
child 1 2ce4ee911439
permissions -rw-r--r--
Initial commit of post-processing codes for C-LAMP experiments

add_total_fields - modifies model output netCDF files to add fields computed
from fields within the files.

h1_summary - computes means and standard deviations of hourly output netCDF
files, creating two new netCDF files (one for the means and one for the
standard deviations) for each month by hour of day.

h1_summary2 - the same as h1_summary, but it uses more memory to read in more
timeslices at once, so it may be faster on some machines.
forrest@0
     1
CC=gcc
forrest@0
     2
#
forrest@0
     3
# robin1 and phoenix
forrest@0
     4
LIBS=-L$(NETCDF)/lib -lnetcdf -lm
forrest@0
     5
# Penguins
forrest@0
     6
#LIBS=-L/usr/local/netcdf/netcdf-3.6.1-gcc+pgi/lib -lnetcdf -lm
forrest@0
     7
#
forrest@0
     8
# robin1 and phoenix
forrest@0
     9
CPPFLAGS=-I$(NETCDF)/include
forrest@0
    10
# Penguins
forrest@0
    11
#CPPFLAGS=-I/usr/local/netcdf/netcdf-3.6.1-gcc+pgi/include
forrest@0
    12
# phoenix
forrest@0
    13
#CC=cc
forrest@0
    14
#CFLAGS=-O -h list=m $(CPPFLAGS)
forrest@0
    15
# robin1 and Penguins
forrest@0
    16
CFLAGS=-g -Wall -O $(CPPFLAGS)
forrest@0
    17
forrest@0
    18
all: h1_summary h1_summary2 add_total_fields
forrest@0
    19
forrest@0
    20
h1_summary: h1_summary.o
forrest@0
    21
	$(CC) $(CFLAGS) -o $@ h1_summary.o $(LIBS)
forrest@0
    22
forrest@0
    23
h1_summary2: h1_summary2.o
forrest@0
    24
	$(CC) $(CFLAGS) -o $@ h1_summary2.o $(LIBS)
forrest@0
    25
forrest@0
    26
add_total_fields: add_total_fields.o
forrest@0
    27
	$(CC) $(CFLAGS) -o $@ add_total_fields.o $(LIBS)
forrest@0
    28
forrest@0
    29
clean:
forrest@0
    30
	$(RM) -f h1_summary.o h1_summary
forrest@0
    31
	$(RM) -f h1_summary2.o h1_summary2
forrest@0
    32
	$(RM) -f add_total_fields.o add_total_fields
forrest@0
    33
forrest@0
    34
install: all
forrest@0
    35
	cp -p h1_summary $(HOME)/bin/
forrest@0
    36
	cp -p h1_summary2 $(HOME)/bin/
forrest@0
    37
	cp -p add_total_fields $(HOME)/bin/
forrest@0
    38