source: trunk/UTIL/SPECTRA/makefile @ 1746

Last change on this file since 1746 was 1746, checked in by aslmd, 9 years ago

MESOSCALE. makemeso module_initialize_les module_initialize_real reverted back to r1723 because commit r1724 was based on corrupted versions.

File size: 575 bytes
Line 
1netcdfpath=/home/aymeric/Science/NETCDF/netcdf64-4.0.1_gfortran
2spherepackpath=./spherepack3.2
3FC=gfortran
4
5
6FFLAGS=-I${netcdfpath}/include -I${spherepackpath}/lib
7#LDFLAGS=-L${netcdfpath}/lib -lnetcdf -L${spherepackpath}/lib -lspherepack
8LDFLAGS=-L${netcdfpath}/lib -lnetcdf -lnetcdff -L${spherepackpath}/lib -lspherepack
9
10SRCS= $(wildcard *.f90)
11OBJS=$(SRCS:.f90=.o)
12EXEC=$(SRCS:.f90=)
13TMP=$(SRCS:=~)
14
15all: spectra_analysis test_harmonic
16
17%.o: %.f90
18        $(FC) $(FFLAGS) -c $<
19
20%: %.o
21        $(FC) $(FFLAGS) -o $@ $^ $(LDFLAGS)
22
23.PHONY: clean
24
25clean:
26        rm -f $(OBJS) $(EXEC) $(TMP)
27
28
Note: See TracBrowser for help on using the repository browser.