This repository has been archived by the owner on Jan 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Makefile.conf
253 lines (228 loc) · 6.26 KB
/
Makefile.conf
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
#############################################################################
# FLAGS
#############################################################################
UNAME := $(shell uname)
THIS_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
GG=g++
#GG=clang++
#GG=/usr/bin/g++ 17s
#GG=/usr/bin/clang++ 14s
#GG=g++-mp-4.3 15.5s
#GG=g++-mp-4.7 19.9s
CFLAGS += -Wall
CFLAGS += -std=c++11
ifeq ($(UNAME), Linux)
DEFAULT_PREFIX=/usr/local/
else
DEFAULT_PREFIX=/usr/local/
# I guess arch only works in Mac OSX
AFLAGS+=-arch x86_64 -m64 -march=corei7-avx
endif
# Default parameters for the IGL group members based on there computer's
# username
ifndef IGL_USERNAME
#IGL_USERNAME := $(shell whoami)
IGL_USERNAME := ajx
endif
ifeq ($(IGL_USERNAME),whitinge)
DEFAULT_PREFIX=/usr/local/
MOSEKPLATFORM=osx64x86
MOSEKVERSION=7
IGL_WITH_TETGEN=1
IGL_WITH_MOSEK=1
IGL_WITH_BBW=1
IGL_WITH_SVD3X3=1
IGL_WITH_PNG=1
# I don't use llvm
#AFLAGS = -m64 -march="corei7-avx"
# msse4.2 is necessary for me to get embree to compile correctly
AFLAGS=-m64 -msse4.2
OPENMP=-fopenmp
EIGEN3_INC=-I$(DEFAULT_PREFIX)/include/eigen3 -I$(DEFAULT_PREFIX)/include/eigen3/unsupported
endif
ifeq ($(IGL_USERNAME),ajx)
LIBIGL_USE_STATIC_LIBRARY=1
MOSEKPLATFORM=osx64x86
MOSEKVERSION=7
IGL_WITH_VIEWER=1
IGL_WITH_TETGEN=1
IGL_WITH_BOOLEAN=1
IGL_WITH_EMBREE=1
IGL_WITH_MATLAB=1
IGL_WITH_MOSEK=1
IGL_WITH_CGAL=1
IGL_WITH_BBW=1
IGL_WITH_SVD3X3=1
IGL_WITH_PNG=1
IGL_WITH_XML=1
IGL_WITH_BOOST=1
# I don't use llvm
#AFLAGS = -m64 -march="corei7-avx"
# msse4.2 is necessary for me to get embree to compile correctly
AFLAGS=-m64 -msse4.2
#OPENMP=-fopenmp
EIGEN3_INC=-I$(DEFAULT_PREFIX)/include/eigen3 -I$(DEFAULT_PREFIX)/include/eigen3/unsupported
#EIGEN3_INC=-I/Users/ajx/Documents/eigen -I/Users/ajx/Documents/eigen/unsupported
endif
ifeq ($(IGL_USERNAME),alecjaco)
DEFAULT_PREFIX=/home1/alecjaco/
#MOSEKPLATFORM=linux64x86
IGL_WITH_TETGEN=1
IGL_WITH_MATLAB=0
#IGL_WITH_MOSEK=1
OPENGL_INC=-I$(DEFAULT_PREFIX)/include
OPENGL_LIB=-lGL -lGLU
# Glut is needed only for examples
GLUT_LIB=-lglut
ANTTWEAKBAR_LIB=-lAntTweakBar
OPENMP=-fopenmp
endif
ifeq ($(IGL_USERNAME),jacobson)
CFLAGS+=
endif
ifeq ($(IGL_USERNAME),sorkineo)
MOSEKPLATFORM=osx64x86
IGL_WITH_TETGEN=1
IGL_WITH_MATLAB=0
IGL_WITH_MOSEK=1
IGL_WITH_PNG=0
endif
ifeq ($(IGL_USERNAME),jalec_linux)
MOSEKPLATFORM=linux64x86
IGL_WITH_TETGEN=1
IGL_WITH_MATLAB=0
IGL_WITH_MOSEK=1
OPENGL_LIB=-lGL -lGLU
# Glut is needed only for examples
GLUT_LIB=-lglut
ANTTWEAKBAR_LIB=-lAntTweakBar
IGL_WITH_PNG=1
OPENMP=-fopenmp
endif
ifeq ($(IGL_USERNAME),daniele)
IGL_WITH_MATLAB=0
IGL_WITH_XML=1
AFLAGS=-m64
GG=g++-4.8 -Wfatal-errors
EIGEN3_INC=-I/usr/local/include/eigen3
endif
ifeq ($(IGL_USERNAME),olkido)
IGL_WITH_MATLAB=1
IGL_WITH_COMISO=1
IGL_WITH_XML=1
COMISO=/Users/olkido/Documents/igl/MIQ/src/CoMISo
IGL_WITH_XML=1
AFLAGS= -m64
IGL_WITH_EMBREE=1
IGL_WITH_PNG=1
IGL_WITH_VIEWER=1
MATLAB=/Applications/MATLAB_R2014b.app/
endif
ifeq ($(IGL_USERNAME),chrsch)
ifeq ($(UNAME), Linux)
DEFAULT_PREFIX=/usr
IGL_WITH_XML=1
IGL_WITH_TETGEN=0
IGL_WITH_MATLAB=0
IGL_WITH_PNG=0
IGL_WITH_MOSEK=0
#MOSEKPLATFORM=linux64x86
OPENGL_LIB=-lGL -lGLU
# Glut is needed only for examples
GLUT_LIB=-lglut
ANTTWEAKBAR_LIB=-lAntTweakBar
OPENMP=-fopenmp
AFLAGS = -Wfatal-errors
else
IGL_WITH_XML=1
IGL_WITH_TETGEN=0
IGL_WITH_MATLAB=0
IGL_WITH_PNG=0
IGL_WITH_MOSEK=0
OPENGL_INC=-I$(DEFAULT_PREFIX)/include
OPENGL_LIB=-lGL -lGLU
# Glut is needed only for examples
GLUT_LIB=-lglut
ANTTWEAKBAR_LIB=-lAntTweakBar
OPENMP=-fopenmp
AFLAGS=-m64
endif
endif
ifeq ($(IGL_USERNAME),stefanmessmer)
GG=clang++
IGL_WITH_TETGEN=0
IGL_WITH_EMBREE=0
IGL_WITH_MATLAB=0
IGL_WITH_MOSEK=0
IGL_WITH_BBW=1
IGL_WITH_PNG=0
IGL_WITH_XML=0
IGL_WITH_BOOST=0
IGL_WITH_SVD3X3=1
#OPENGL_INC=-I$(DEFAULT_PREFIX)/include
#OPENGL_LIB=-lGL -lGLU
# Glut is needed only for examples
#GLUT_LIB=-lglut
#ANTTWEAKBAR_LIB=-lAntTweakBar
OPENPMP = -openmp
AFLAGS = -DIGL_NO_MOSEK -DIGL_NO_ANTTWEAKBAR -DIGL_NO_OPENGL -arch armv7s -arch armv7 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk
AFLAGS_SIMULATOR = -DIGL_NO_MOSEK -DIGL_NO_ANTTWEAKBAR -DIGL_NO_OPENG -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk
endif
ifeq ($(IGL_USERNAME),wenzel)
IGL_WITH_TETGEN=0
IGL_WITH_MATLAB=0
IGL_WITH_MOSEK=0
OPENGL_LIB=-lGL -lGLU
GLUT_LIB=-lglut
ANTTWEAKBAR_LIB=-lAntTweakBar
IGL_WITH_PNG=1
OPENMP=-fopenmp
CFLAGS += -msse4 -D__SSE4__ -DIGL_NO_MOSEK
endif
#############################################################################
# DEFAULTS (USUALLY TO SOMETHING THAT WORKS FOR SURE ON MAC OS X
#############################################################################
ifndef OPENGL_LIB
OPENGL_LIB=-framework OpenGL
endif
ifndef GLUT_LIB
GLUT_LIB=-framework GLUT
endif
# Eigen dependency
ifndef EIGEN3_INC
EIGEN3_INC=-I$(DEFAULT_PREFIX)/include/eigen3 -I$(DEFAULT_PREFIX)/include/eigen3/unsupported
endif
LIBIGL=$(THIS_DIR)/../libigl/
LIBIGL_INC=-I$(LIBIGL)/include
ifndef ANTTWEAKBAR_INC
ANTTWEAKBAR_INC=-I$(LIBIGL)/external/AntTweakBar/include
endif
ifndef ANTTWEAKBAR_LIB
# AntTweakBar needs AppKit on mac os x
ANTTWEAKBAR_LIB=-L$(LIBIGL)/external/AntTweakBar/lib -lAntTweakBar -framework AppKit -liglanttweakbar
endif
ifndef SINGULAR_VALUE_DECOMPOSITION_INC
SINGULAR_VALUE_DECOMPOSITION_INC=\
-I$(LIBIGL)/external/Singular_Value_Decomposition/
endif
ifndef TETGEN
# By default I'm using the libigl version. Adjust accordingly
TETGEN=$(LIBIGL)/external/tetgen
TETGEN_LIB=-L$(TETGEN) -ligltetgen -ltet
TETGEN_INC=-I$(TETGEN)
endif
ifndef EMBREE
EMBREE=$(LIBIGL)/external/embree
EMBREE_INC=-I$(EMBREE)/ -I$(EMBREE)/include
EMBREE_LIB=-L$(EMBREE)/build -lembree -lsys
endif
ifndef YIMG
YIMG=$(LIBIGL)/external/yimg
YIMG_LIB=-L$(YIMG) -lyimg -lz -L/usr/X11/lib -L$(DEFAULT_PREFIX)/lib -lpng -bind_at_load
YIMG_INC=-I/usr/X11/include -I$(YIMG)
endif
ifdef LIBIGL_USE_STATIC_LIBRARY
CFLAGS += -DIGL_STATIC_LIBRARY
LIBIGL_LIB=-L$(LIBIGL)/lib -ligl -liglopengl2 -liglopengl
endif
OPTFLAGS+=-O3 -DNDEBUG $(OPENMP)