Line | |
---|
1 | # This is a makefile for GNU make. |
---|
2 | # This makefile builds "libjumble.a". |
---|
3 | |
---|
4 | # 1. Source files |
---|
5 | |
---|
6 | VPATH = Numerical |
---|
7 | |
---|
8 | sources := $(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 | |
---|
12 | objects := $(sources:.f90=.o) |
---|
13 | lib = libjumble.a |
---|
14 | |
---|
15 | # 3. Compiler-dependent part |
---|
16 | |
---|
17 | override 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 | |
---|
27 | all: ${lib} |
---|
28 | |
---|
29 | ${lib}: ${lib}(${objects}) |
---|
30 | |
---|
31 | depend depend.mk: |
---|
32 | makedepf90 -Wmissing -Wconfused -I${VPATH} -nosrc -u nr_util ${sources} >depend.mk |
---|
33 | |
---|
34 | clean: |
---|
35 | rm -f ${lib} ${objects} |
---|
36 | |
---|
37 | # Dependencies between object files and include files: |
---|
38 | include depend.mk |
---|
Note: See
TracBrowser
for help on using the repository browser.