-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathmake_linux.mk
73 lines (54 loc) · 1.71 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
67
68
69
70
71
72
73
##
## This file is part of qpDUNES.
##
## qpDUNES -- A DUal NEwton Strategy for convex quadratic programming.
## Copyright (C) 2012-2014 by Janick Frasch, Hans Joachim Ferreau et al.
## All rights reserved.
##
## qpDUNES 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.
##
## qpDUNES 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 qpDUNES; 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 =
##
## Uncomment this line if you want a C only version (supports only simple bounds)
#COMPILE_WITHOUT_QPOASES = 1
ifdef COMPILE_WITHOUT_QPOASES
NO_QPOASES_FLAG = -D__SIMPLE_BOUNDS_ONLY__
else
NO_QPOASES_FLAG =
endif
CCFLAGS = -Wall -pedantic -Wshadow -O3 -finline-functions -DLINUX ${NO_QPOASES_FLAG} -std=c99 ##C99 temporary to avoid warnings
QPDUNES_LIB = -L${SRCDIR} -lqpdunes
MPCDUNES_LIB = -L${INTERFACEDIR}/mpc -lmpcDUNES
LIBS = -lm
##
## end of file
##