-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (22 loc) · 807 Bytes
/
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
OPTIMIZATION = -O3
FFLAGS = $(HEADERS:%=-I%) -fbounds-check -mcmodel=large -fopenmp -fPIC -lgfortran
LIBS = -lm -lc -lstdc++
FHEAD = BSE/const_bse.h BSE/zdata.h
FC = gfortran $(OPTIMIZATION)
CC = gcc $(OPTIMIZATION)
$(BSE)/%.o: $(BSE)/%.f -c $<
FSOURCE = \
BSE/comenv.f BSE/corerd.f BSE/deltat.f BSE/dgcore.f BSE/evolv1.f BSE/evolv2.f \
BSE/gntage.f BSE/hrdiag.f BSE/instar.f BSE/kick.f BSE/mix.f BSE/mlwind.f \
BSE/mrenv.f BSE/ran3.f BSE/rl.f BSE/star.f BSE/zcnsts.f BSE/zfuncs.f input.f
FOBJ = $(FSOURCE:.f=$(BSE).o)
CSOURCE = \
inipar/dictionary.c inipar/iniparser.c inipar/iniparser_interface.c \
main.c
default: all
all: clean mcluster
mcluster: $(FOBJ) $(FHEAD)
$(CC) $(FOBJ) $(CSOURCE) $(LIBS) $(FFLAGS) -o mcluster
clean:
rm --f BSE/*.o mcluster
rm -f *.dat *.out dat.10 input.o