1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/Makefile Wed Sep 26 17:16:40 2007 -0400
1.3 @@ -0,0 +1,38 @@
1.4 +CC=gcc
1.5 +#
1.6 +# robin1 and phoenix
1.7 +LIBS=-L$(NETCDF)/lib -lnetcdf -lm
1.8 +# Penguins
1.9 +#LIBS=-L/usr/local/netcdf/netcdf-3.6.1-gcc+pgi/lib -lnetcdf -lm
1.10 +#
1.11 +# robin1 and phoenix
1.12 +CPPFLAGS=-I$(NETCDF)/include
1.13 +# Penguins
1.14 +#CPPFLAGS=-I/usr/local/netcdf/netcdf-3.6.1-gcc+pgi/include
1.15 +# phoenix
1.16 +#CC=cc
1.17 +#CFLAGS=-O -h list=m $(CPPFLAGS)
1.18 +# robin1 and Penguins
1.19 +CFLAGS=-g -Wall -O $(CPPFLAGS)
1.20 +
1.21 +all: h1_summary h1_summary2 add_total_fields
1.22 +
1.23 +h1_summary: h1_summary.o
1.24 + $(CC) $(CFLAGS) -o $@ h1_summary.o $(LIBS)
1.25 +
1.26 +h1_summary2: h1_summary2.o
1.27 + $(CC) $(CFLAGS) -o $@ h1_summary2.o $(LIBS)
1.28 +
1.29 +add_total_fields: add_total_fields.o
1.30 + $(CC) $(CFLAGS) -o $@ add_total_fields.o $(LIBS)
1.31 +
1.32 +clean:
1.33 + $(RM) -f h1_summary.o h1_summary
1.34 + $(RM) -f h1_summary2.o h1_summary2
1.35 + $(RM) -f add_total_fields.o add_total_fields
1.36 +
1.37 +install: all
1.38 + cp -p h1_summary $(HOME)/bin/
1.39 + cp -p h1_summary2 $(HOME)/bin/
1.40 + cp -p add_total_fields $(HOME)/bin/
1.41 +