forked from jajgarcia/exact_Compton
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
72 lines (64 loc) · 1.92 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
######################################################
#Makefile for
# drive_SRF
#
#Variables:
# fc= Fortran compiler
# flags = general flags for compilation
# libs = libraries used during linking
# name = root name of the code
# code = Main fortran code
# exec = Binary executable (final output)
# objects = list of subroutines and functions used
#
# Use 'make' to compile everything
# Use 'make clean' to erase all the objects
# and 'make cleanout' to erase OUTPUT files.
#
#fc=ifort
#flags=-O3 -parallel -no-prec-div -shared-intel -xHost -fp-model source -mcmodel=large
#
# This worked on yorp, chandra, etc (UMD)
#flags=-O3 -parallel -no-prec-div -static-intel -xHost -fp-model source -mcmodel=large
#libs=$(HEADAS)/lib/libcfitsio_3.27.so
#
#flags= -O3 -fp-model source
#flags= -O3 -check bounds -fp-model source
#
fc=gfortran
flags=-O3
libs = -L/Users/gullo/Software/heasoft-6.28/x86_64-apple-darwin18.7.0/lib/ \
-lXSFunctions -lcfitsio -lXSModel -lXSUtil -lXS
#flags=-march=native -ffast-math -funroll-loops -O3 -finline-limit=600
#flags= -O3 -fbounds-check
#
#libs= -lcfitsio
name=drive_SRF
code=$(name).f
exec=$(name).x
mysrc=my-routines
myobjts= $(mysrc)/bk2.o \
$(mysrc)/crsexact.o \
$(mysrc)/enegrd.o \
$(mysrc)/gaulegf.o \
$(mysrc)/probab.o \
$(mysrc)/scattxs.o \
$(mysrc)/write_fits.o \
$(mysrc)/super_Compton_RF.o \
$(mysrc)/super_Compton_RF_fits.o \
# Compile xstar with all subroutines
$(exec): $(myobjts)
$(fc) $(flags) $(code) $(myobjts) $(libs) -o $(exec)
# Compile and create objects (XILLVER)
$(myobjts): %.o: %.f
$(fc) $(flags) -c $< -o $@
# Clean all objects
clean:
rm -rf $(mysrc)/*.o $(mysrc)/*~
rm -rf $(exec)
all:
rm -rf $(exec)
make $(exec)
# Tue Dec 18 14:13:06 EST 2007
# Javier Garcia
# Modified Dec 28 T. Kallman