source: LMDZ5/trunk/tools/Max_diff_nc_with_lib/NR_util/GNUmakefile @ 1884

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

A tool to compare NetCDF files.

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.