source: LMDZ6/trunk/tools/Max_diff_nc_with_lib/NetCDF95/GNUmakefile @ 3651

Last change on this file since 3651 was 1907, checked in by lguez, 11 years ago

Added a copyright property to every file of the distribution, except
for the fcm files (which have their own copyright). Use svn propget on
a file to see the copyright. For instance:

$ svn propget copyright libf/phylmd/physiq.F90
Name of program: LMDZ
Creation date: 1984
Version: LMDZ5
License: CeCILL version 2
Holder: Laboratoire de m\'et\'eorologie dynamique, CNRS, UMR 8539
See the license file in the root directory

Also added the files defining the CeCILL version 2 license, in French
and English, at the top of the LMDZ tree.

  • Property copyright set to
    Name of program: LMDZ
    Creation date: 1984
    Version: LMDZ5
    License: CeCILL version 2
    Holder: Laboratoire de m\'et\'eorologie dynamique, CNRS, UMR 8539
    See the license file in the root directory
  • 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.