Last change
on this file since 3352 was
1747,
checked in by aslmd, 7 years ago
|
Amended previous commit. Committed more files than I wanted to.
|
File size:
533 bytes
|
Rev | Line | |
---|
[1747] | 1 | netcdfpath=/planeto/milmd/library/netcdf/netcdf-4.0.1_levan_pgf90 |
---|
| 2 | spherepackpath=/planeto/milmd/library/spherepack/spherepack3.2_levan_pgf90 |
---|
| 3 | FC=pgf90 |
---|
[1402] | 4 | |
---|
| 5 | |
---|
| 6 | FFLAGS=-I${netcdfpath}/include -I${spherepackpath}/lib |
---|
[1747] | 7 | LDFLAGS=-L${netcdfpath}/lib -lnetcdf -L${spherepackpath}/lib -lspherepack |
---|
[1402] | 8 | |
---|
| 9 | SRCS= $(wildcard *.f90) |
---|
| 10 | OBJS=$(SRCS:.f90=.o) |
---|
| 11 | EXEC=$(SRCS:.f90=) |
---|
| 12 | TMP=$(SRCS:=~) |
---|
| 13 | |
---|
[1404] | 14 | all: 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 | |
---|
| 24 | clean: |
---|
| 25 | rm -f $(OBJS) $(EXEC) $(TMP) |
---|
| 26 | |
---|
| 27 | |
---|
Note: See
TracBrowser
for help on using the repository browser.