-
Notifications
You must be signed in to change notification settings - Fork 0
/
Imakefile
104 lines (91 loc) · 3.38 KB
/
Imakefile
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
GIT_VERSION := $(shell git describe --tag --abbrev=6 --dirty --always)
GIT_VERSION_INFO := $(shell git log -1 --date=short --format=\"\(%ad\)\ released\ by\ \<%an\>\ %ae\")
$(shell echo "\\\newcommand{\\\rtVersion}{" > doc/version.tex; git describe --tag >> doc/version.tex; echo "}" >> doc/version.tex)
#CCOPTIONS= -g -DRELEASE=\"$(GIT_VERSION)\" -DRELEASE_INFO=\"$(GIT_VERSION_INFO)\"
#CCOPTIONS= -g -O0 -pedantic -Wno-long-long -Wall -W -Wmissing-prototypes -Wstrict-prototypes -Wconversion -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -fshort-enums -Wnested-externs -DRELEASE=\"$(GIT_VERSION)\" -DRELEASE_INFO=\"$(GIT_VERSION_INFO)\" -DDEBUG
CCOPTIONS= -g -O3 -Wno-unused-result -fshort-enums -DRELEASE=\"$(GIT_VERSION)\" -DRELEASE_INFO=\"$(GIT_VERSION_INFO)\"
#CCOPTIONS= -pg -pedantic -Wno-long-long -Wall -W -Wmissing-prototypes -Wstrict-prototypes -Wconversion -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -fshort-enums -Wnested-externs -DRELEASE=\"$(GIT_VERSION)\" -DRELEASE_INFO=\"$(GIT_VERSION_INFO)\"
SRCS= main.c \
sources.c \
source_arc.c \
source_solid_cone.c \
source_solid_cylinder.c \
source_solid_sphere.c \
source_sphere.c \
source_spot.c \
source_uniform_point_source.c \
targets.c \
target_annulus.c \
target_cone.c \
target_cpc.c \
target_cylinder.c \
target_disk.c \
target_ellipsoid.c \
target_paraboloid.c \
target_plane_screen.c \
target_rectangle.c \
target_sphere.c \
target_triangle.c \
target_window.c \
intercept.c \
io_utils.c \
math_utils.c \
obj_lists.c \
off.c \
reflect.c
OBJ= main.o \
sources.o \
source_arc.o \
source_solid_cone.o \
source_solid_cylinder.o \
source_solid_sphere.o \
source_sphere.o \
source_spot.o \
source_uniform_point_source.o \
targets.o \
target_annulus.o \
target_cone.o \
target_cpc.o \
target_cylinder.o \
target_disk.o \
target_ellipsoid.o \
target_paraboloid.o \
target_plane_screen.o \
target_rectangle.o \
target_sphere.o \
target_triangle.o \
target_window.o \
intercept.o \
io_utils.o \
math_utils.o \
obj_lists.o \
off.o \
reflect.o
SRC_SPECTRUM= spectrum.c \
io_utils.c \
math_utils.c
OBJ_SPECTRUM= spectrum.o \
io_utils.o \
math_utils.o
SRC_FLUX= flux_2D.c \
io_utils.c \
math_utils.c
OBJ_FLUX= flux_2D.o \
io_utils.o \
math_utils.o
SRC_GET_FLUX= get_flux.c \
io_utils.c \
math_utils.c
OBJ_GET_FLUX= get_flux.o \
io_utils.o \
math_utils.o
#LIBS= -lgsl -lgslcblas -lconfig -lm -lpthread
LIBS= -lgsl -lcblas -latlas -lconfig -lm -lpthread
#LIBS-SEMISTATIC= -Wl,-Bstatic -lgsl -lgslcblas -lconfig -Wl,-Bdynamic -lm -lpthread
AllTarget(rt spectrum flux_2D get_flux)
#NormalProgramTarget(rt,$(OBJ),NullParameter,NullParameter, $(LIBS))
NormalProgramTarget(rt-semistatic,$(OBJ),NullParameter,NullParameter, $(LIBS-SEMISTATIC))
NormalProgramTarget(spectrum,$(OBJ_SPECTRUM),NullParameter,NullParameter, $(LIBS))
NormalProgramTarget(flux_2D,$(OBJ_FLUX),NullParameter,NullParameter, $(LIBS))
NormalProgramTarget(get_flux,$(OBJ_GET_FLUX),NullParameter,NullParameter, $(LIBS))
DependTarget()