-
Notifications
You must be signed in to change notification settings - Fork 6
/
make_linux.mk
66 lines (51 loc) · 2.03 KB
/
make_linux.mk
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
##
## This file is part of qp42.
##
## qp42 -- An Implementation of the Online Active Set Strategy.
## Copyright (C) 2012 by Janick Frasch, Hans Joachim Ferreau et al.
## All rights reserved.
##
## qp42 is free software; you can redistribute it and/or
## modify it under the terms of the GNU Lesser General Public
## License as published by the Free Software Foundation; either
## version 2.1 of the License, or (at your option) any later version.
##
## qp42 is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
## See the GNU Lesser General Public License for more details.
##
## You should have received a copy of the GNU Lesser General Public
## License along with qp42; if not, write to the Free Software
## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
##
##
## Filename: src/make_linux
## Author: Janick Frasch, Hans Joachim Ferreau
## Version: 1.0beta
## Date: 2012
##
##
## definitions for compiling with gcc under linux
##
CC = gcc
CPP = g++
AR = ar
RM = rm
OBJEXT = o
LIBEXT = a
EXE =
DEF_TARGET = -o $@
OMPFLAGS = ##-fopenmp # avoid automatic gcc parallelization
DEBUGFLAGS = -g -ggdb -D__DEBUG__ -Wshadow -Wall -pedantic
CCFLAGS = ${DEBUGFLAGS} -finline-functions -DLINUX -D__DEBUG__ -std=c99 ${OMPFLAGS} ##C99 temporary to avoid warnings
##CcFLAGS = -Wall -pedantic -Wshadow -O3 -finline-functions -DLINUX -D__SUPPRESS_ALL_OUTPUT__ -U__MEASURE_TIMINGS__ -U__ANALYZE_FACTORIZATION__
CPPFLAGS = ${DEBUGFLAGS} -finline-functions -DLINUX -D__DEBUG__ ${OMPFLAGS}
QPDUNES_LIB = -L${SRCDIR} -lqpdunes
MPCDUNES_LIB = -L${INTERFACEDIR}/mpc -lmpcdunes
##QPOASES_LIB = -static -L${QPOASESDIR}/bin -lqpOASES ${QPOASESDIR}/src/BLASReplacement.o ${QPOASESDIR}/src/LAPACKReplacement.o
QPOASES_LIB = ${QPOASESDIR}/bin/libqpOASES.${LIBEXT} ${QPOASESDIR}/src/BLASReplacement.${OBJEXT} ${QPOASESDIR}/src/LAPACKReplacement.${OBJEXT}
LIBS = -lm
##
## end of file
##