-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.sample
93 lines (82 loc) · 2.08 KB
/
Makefile.sample
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
NR_DIR = ../NR
COSMOLIB_DIR = ../CosmoLib
CFITS_DIR = /usr/local/cfitsio
CCFITS_DIR = /usr/local/CCfitsio
OPT = -fopenmp -pthread -DN_THREADS=4 -DENABLE_FITS
INCL = -I$(COSMOLIB_DIR)/include \
-I$(NR_DIR)/include \
-I$(CFITS_DIR)/include \
-I$(CCFITS_DIR)/include \
-I./include/
OUT = libSLsimLib.a
SRC = AnalyticNSIE/expanded_powerlaw.cpp \
AnalyticNSIE/lens.cpp \
AnalyticNSIE/lens_expand.cpp \
AnalyticNSIE/nfw_lens.cpp \
AnalyticNSIE/nsie.cpp \
AnalyticNSIE/powerlaw.cpp \
AnalyticNSIE/randomize_lens.cpp \
AnalyticNSIE/readfiles_ana.cpp \
AnalyticNSIE/source.cpp \
AnalyticNSIE/sourceAnaGalaxy.cpp \
BLR/blr_surface_brightness.cpp \
BLR/blr_surface_brightness2.0.cpp \
Fitlens/fitlens.cpp \
FullRange/implant_stars.cpp \
FullRange/internal_rayshooter_multi.cpp \
FullRange/internal_rayshooter_nfw.cpp \
Galaxies/create_sersic.cpp \
Galaxies/overzier_galaxy.cpp \
ImageProcessing/pixelize.cpp \
InputParameters/InputParams.cpp \
Kist/Kist.cpp \
MultiPlane/MOKAlens.cpp \
MultiPlane/MOKAfits.cpp \
MultiPlane/model.cpp \
MultiPlane/multiplane.cpp \
MultiPlane/profile.cpp \
TreeCode/forceTree.cpp \
TreeCode/profiles.cpp \
TreeCode/qTreeNB.cpp \
TreeCode/quadForceTrees.cpp \
TreeCode/quadTree.cpp \
TreeCode/simpleTree.cpp \
TreeCode_link/List/List.cpp \
TreeCode_link/KistDriver.cpp \
TreeCode_link/Tree.cpp \
TreeCode_link/TreeDriver.cpp \
TreeCode_link/change_redshifts.cpp \
TreeCode_link/change_redshits.cpp \
TreeCode_link/curve_routines.cpp \
TreeCode_link/dirtycode.cpp \
TreeCode_link/divide_images.cpp \
TreeCode_link/double_sort.cpp \
TreeCode_link/find_crit.cpp \
TreeCode_link/grid_maintenance.cpp \
TreeCode_link/image_finder.cpp \
TreeCode_link/image_finder_kist.cpp \
TreeCode_link/map_images.cpp \
TreeCode_link/peak_refinement.cpp \
TreeCode_link/tree_maintenance.cpp \
TreeCode_link/utilities.cpp \
Utilities/mcmc.cpp
#
OBJ = $(SRC:.cpp=.o)
#
OPTIMIZE = -O2
#
DEBUG = -g
# compiler
CC = g++
#
RM = rm -fr
#
CFLAGS = $(INCL) $(DEBUG) $(OPTIMIZE) -Wno-deprecated
#
CLEAR = clear
.cpp.o:
$(CC) $(OPT) $(CFLAGS) -c $< -o $@
all: $(OBJ)
ar rcs $(OUT) $(OBJ)
clean:
$(RM) $(OBJ) $(OUT) *~