-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile
134 lines (119 loc) · 2.38 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# -----------------------------------------------------------------------
#
# Makefile for RH main library
#
# Users should not need to edit anything in this file.
# Please look at Makefile.config to change compilers, flags, libraries
#
# -----------------------------------------------------------------------
include Makefile.config
.SUFFIXES: .f90
.f90.o:
$(F90C) -c $(F90FLAGS) $<
DEPDIR := .d
$(shell mkdir -p $(DEPDIR) >/dev/null)
DEPFLAGS = -MT $@ -MMD -MP -MF $(DEPDIR)/$*.Td
COMPILE.c = $(CC) $(CFLAGS) $(DEPFLAGS) -D$(OS) -c
POSTCOMPILE = @mv -f $(DEPDIR)/$*.Td $(DEPDIR)/$*.d && touch $@
$(DEPDIR)/%.d: ;
.PRECIOUS: $(DEPDIR)/%.d
SRC = abundance.c \
accelerate.c \
backgropac_xdr.c \
background.c \
barklem.c \
broad.c \
brs_xdr.c \
chemequil.c \
cocollisions.c \
collision.c \
complex.c \
cubeconvol.c \
duplicate.c \
error.c \
expint.c \
expspline.c \
fillgamma.c \
fixedrate.c \
fpehandler.c \
gammafunc.c \
gaussleg.c \
getcpu.c \
getlambda.c \
getline.c \
giigen.c \
h2collisions.c \
humlicek.c \
hunt.c \
hydrogen.c \
initial_xdr.c \
initscatter.c \
iterate.c \
kurucz.c \
linear.c \
ltepops.c \
ludcmp.c \
matrix.c \
maxchange.c \
metal.c \
molzeeman.c \
nemetals.c \
ohchbf.c \
opacity.c \
options.c \
order.c \
parse.c \
paschen.c \
planck.c \
pops_xdr.c \
profile.c \
radrate_xdr.c \
rayleigh.c \
readatom.c \
readb_xdr.c \
readinput.c \
readj.c \
readmolecule.c \
readvalue.c \
redistribute.c \
scatter.c \
solvene.c \
sortlambda.c \
spline.c \
statequil.c \
stokesopac.c \
stopreq.c \
thomson.c \
vacuumtoair.c \
voigt.c \
w3.c \
wigner.c \
writeatmos_xdr.c \
writeatom_xdr.c \
writecoll_xdr.c \
writedamp_xdr.c \
writeinput_xdr.c \
writemetal_xdr.c \
writemolec_xdr.c \
writeopac_xdr.c \
writespect_xdr.c \
zeeman.c
SRC_F = hui_.f90 humlicek_.f90
OBJS = $(SRC:.c=.o)
OBJS_F = $(SRC_F:.f90=.o)
DEPS = $(wildcard $(patsubst %,$(DEPDIR)/%.d,$(basename $(SRC))))
LIBS = librh.a librh_f90.a
all: $(LIBS)
%.o : %.c
%.o : %.c $(DEPDIR)/%.d
$(COMPILE.c) $<
$(POSTCOMPILE)
librh.a: $(OBJS)
$(AR) $(ARFLAGS) $@ $(OBJS)
$(RANLIB) $@
librh_f90.a: $(OBJS_F)
$(AR) $(ARFLAGS) $@ $(OBJS_F)
$(RANLIB) $@
clean:
rm -f $(OBJS) $(OBJS_F) $(LIBS)
-include $(DEPS)