source: LMDZ5/trunk/tools/Max_diff_nc_with_lib/Jumble/GNUmakefile @ 1779

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

A tool to compare NetCDF files.

File size: 837 bytes
Line 
1# This is a makefile for GNU make.
2# This makefile builds "libjumble.a".
3
4# 1. Source files
5
6VPATH = Numerical
7
8sources := $(sort avg_mag.f90 count_lines.f90 opt_merge.f90 point.f90 compare.f90 csvread.f90 new_unit.f90 read_column.f90 jumble.f90 averge.f90 get_divisors.f90 dtridgl.f90 quadrat.f90 spherical.f90 prep_file.f90 prt_cmp.f90)
9
10# 2. Objects and library
11
12objects := $(sources:.f90=.o)
13lib = libjumble.a
14
15# 3. Compiler-dependent part
16
17override FFLAGS += -I../NR_util
18
19# 4. Rules
20
21# Extend known suffixes:
22%.o: %.f90
23        $(COMPILE.f) $(OUTPUT_OPTION) $<
24
25.PHONY: all clean depend
26
27all: ${lib}
28
29${lib}: ${lib}(${objects})
30
31depend depend.mk:
32        makedepf90 -Wmissing -Wconfused -I${VPATH} -nosrc -u nr_util ${sources} >depend.mk
33
34clean:
35        rm -f ${lib} ${objects}
36
37# Dependencies between object files and include files:
38include depend.mk
Note: See TracBrowser for help on using the repository browser.