source: trunk/UTIL/SPECTRA/makefile @ 1529

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

Add the opportunity to create some harmonical wind fields for testing. Spherepack library can also be compiled with ifort.

File size: 533 bytes
RevLine 
[1402]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
[1404]14all: spectra_analysis test_harmonic
15
[1402]16%.o: %.f90
17        $(FC) $(FFLAGS) -c $<
18
19%: %.o
20        $(FC) $(FFLAGS) -o $@ $^ $(LDFLAGS)
21
22.PHONY: clean
23
24clean:
25        rm -f $(OBJS) $(EXEC) $(TMP)
26
27
Note: See TracBrowser for help on using the repository browser.