-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
117 lines (101 loc) · 2.4 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# Makefile for program cascade
# developed by Jean Braun
# Research School of Earth Sciences
# The Australian National University
# Canberra, ACT 0200, Australia
# Tel:+61-2-6249-5512
# Fax:+61-2-6249-5443
# email: [email protected]
# compilation flags (edit here to optimize for your machine...)
# the -p option turns the profiling option on
FLAGS = -c -O -ffixed-form -I/usr/X11R6/include
LFLAGS = -O -L/usr/X11R6/lib
#FLAGS = -c -p
#LFLAGS = -p
# this where the compilers are defined
# if your system is properly setup, comment this out
CC = gcc
F77 = gfortran
# object (all the interesting bits to do the erosion/sedimentation
# computations)
OBJECTS = \
check_for_removal.o \
change_sea_level.o \
fluvial_erosion.o \
find_centre.o \
find_neighbours.o \
find_neighbour_list.o \
find_donors.o \
find_order.o \
random.o \
find_surface.o \
check_mesh.o \
debug.o \
diffusion_erosion.o \
erosional_properties.o \
tectonic_uplift.o \
find_catchment.o \
flexure.o \
read_but_skip_comment.o \
iread_but_skip_comment.o \
initialize_nodal_geometry.o \
initialize_general_parameters.o \
tectonic_movement.o \
update_bedrock.o \
update_time_step.o \
write_output.o \
orography.o \
show.o
OBJECTS_XPLOT = \
LIB/XPLOT/xplot.o \
LIB/XPLOT/psplot.o
# alternate dummy graphic routines
#OBJECTS_XPLOT = \
#LIB/XPLOT_ALT/xplot.o \
#LIB/XPLOT_ALT/psplot.o
ARCHIVE_XPLOT = \
xplot.o \
psplot.o
OBJECTS_NN2D = \
LIB/NN2D/del_flip.o \
LIB/NN2D/del_sub.o \
LIB/NN2D/delaun.o \
LIB/NN2D/nn1.o \
LIB/NN2D/nn2.o \
LIB/NN2D/nn_remove.o \
LIB/NN2D/nnplot.o \
LIB/NN2D/qhullf_dummy.o \
LIB/NN2D/stack.o \
LIB/NN2D/stackpair.o \
LIB/NN2D/volume.o
ARCHIVE_NN2D = \
del_flip.o \
del_sub.o \
delaun.o \
nn1.o \
nn2.o \
nn_remove.o \
nnplot.o \
qhullf_dummy.o \
stack.o \
stackpair.o \
volume.o
# all the non-interesting bits
UTILS = \
sinft.o \
four1.o \
realft.o
# compilation only
.f.o:
$(F77) $(FLAGS) $*.f
.c.o:
$(CC) $(FLAGS) $*.c
# create an executable
# note that the option -lsocket is something that we have found necessary
# on our Sun workstations; it is usually not needed on a well maintained
# Unix system...
cascade: $(OBJECTS) $(UTILS) cascade.f cascade.h
$(F77) $(LFLAGS) cascade.f $(OBJECTS) $(UTILS) -LLIB -lnn2d -lxplot -lX11 -o cascade
lib: $(OBJECTS_XPLOT) $(OBJECTS_NN2D)
ar rcv LIB/libnn2d.a $(ARCHIVE_NN2D)
ar rcv LIB/libxplot.a $(ARCHIVE_XPLOT)