source: trunk/UTIL/SPECTRA/makefile @ 1402

Last change on this file since 1402 was 1402, checked in by milmd, 10 years ago

Tool to compute kinetic energy spectrum with spherepack library.

File size: 496 bytes
Line 
1netcdfpath=/planeto/milmd/library/netcdf/netcdf-4.0.1_levan_pgf90
2spherepackpath=/planeto/milmd/library/spherepack/spherepack3.2_levan_pgf90
3FC=pgf90
4
5
6FFLAGS=-I${netcdfpath}/include -I${spherepackpath}/lib
7LDFLAGS=-L${netcdfpath}/lib -lnetcdf -L${spherepackpath}/lib -lspherepack
8
9SRCS= $(wildcard *.f90)
10OBJS=$(SRCS:.f90=.o)
11EXEC=$(SRCS:.f90=)
12TMP=$(SRCS:=~)
13
14%.o: %.f90
15        $(FC) $(FFLAGS) -c $<
16
17%: %.o
18        $(FC) $(FFLAGS) -o $@ $^ $(LDFLAGS)
19
20.PHONY: clean
21
22clean:
23        rm -f $(OBJS) $(EXEC) $(TMP)
24
25
Note: See TracBrowser for help on using the repository browser.