source: LMDZ5/branches/LMDZ5-DOFOCO/tools/Max_diff_nc_with_lib/NetCDF95/GNUmakefile @ 2176

Last change on this file since 2176 was 1765, checked in by lguez, 11 years ago

A tool to compare NetCDF files.

  • Property svn:executable set to *
File size: 1022 bytes
Line 
1# This is a makefile for GNU make.
2# This makefile builds "NetCDF95".
3
4# 1. Source files
5
6sources = nf95_inq_dimid.f90 nf95_inquire_dimension.f90 nf95_inq_varid.f90 nf95_inquire_variable.f90 nf95_create.f90 nf95_def_dim.f90 nf95_redef.f90 nf95_enddef.f90 nf95_close.f90 nf95_copy_att.f90 nf95_inquire_attribute.f90 nf95_inquire.f90 netcdf95.f90 nf95_def_var.f90 nf95_gw_var.f90 nf95_put_var.f90 nf95_put_att.f90 handle_err.f90 nf95_get_att.f90 nf95_get_var.f90 find_coord.f90 nf95_open.f90
7
8# 2. Objects and library
9
10objects := $(sources:.f90=.o)
11lib = libnetcdf95.a
12
13# 3. Compiler-dependent part
14
15override FFLAGS += $(if ${NETCDF_INC_DIR}, -I${NETCDF_INC_DIR})
16
17# 4. Rules
18
19# Extend known suffixes:
20%.o: %.f90
21        $(COMPILE.f) $(OUTPUT_OPTION) $<
22
23.PHONY: all clean depend
24
25all: ${lib}
26${lib}: ${lib}(${objects})
27
28depend depend.mk:
29        makedepf90 -Wmissing -Wconfused -nosrc -u netcdf -u typesizes ${sources} >depend.mk
30
31clean:
32        rm -f ${lib} ${objects}
33
34# Dependencies between object files and include files:
35include depend.mk
Note: See TracBrowser for help on using the repository browser.