source: LMDZ5/branches/IPSLCM6.0.10/tools/Max_diff_nc_with_lib/NR_util/GNUmakefile

Last change on this file was 1910, checked in by Laurent Fairhead, 11 years ago

Merged trunk changes r1860:1909 into testing branch

  • 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
File size: 963 bytes
Line 
1# This is a makefile for GNU make.
2# This makefile builds the NR_util library.
3
4# 1. Source files
5
6sources := $(sort nrtype.f90 nr_util.f90 iminloc.f90 arth.f90 array_copy.f90 swap.f90 reallocate.f90 imaxloc.f90 assert.f90 assert_eq.f90 geop.f90 cumsum.f90 poly.f90 poly_term.f90 outerprod.f90 outerdiff.f90 scatter_add.f90 scatter_max.f90 diagadd.f90 diagmult.f90 get_diag.f90 put_diag.f90 cumprod.f90 ifirstloc.f90 lower_triangle.f90 nrerror.f90 outerand.f90 outerdiv.f90 outersum.f90 unit_matrix.f90 upper_triangle.f90 vabs.f90 zroots_unity.f90)
7
8# 2. Objects and library
9
10objects := $(sources:.f90=.o)
11lib = libnr_util.a
12
13# 3. Rules
14
15# Extend known suffixes:
16%.o: %.f90
17        $(COMPILE.f) $(OUTPUT_OPTION) $<
18
19.PHONY: all clean depend
20
21all: ${lib}
22
23${lib}: ${lib}(${objects})
24
25depend depend.mk:
26        makedepf90 -Wmissing -Wconfused -nosrc ${sources} >depend.mk
27
28clean:
29        rm -f ${lib} ${objects}
30
31# Dependencies between object files and include files:
32include depend.mk
Note: See TracBrowser for help on using the repository browser.