forked from coin-or/qpOASES
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
111 lines (89 loc) · 2.7 KB
/
Makefile
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
##
## This file is part of qpOASES.
##
## qpOASES -- An Implementation of the Online Active Set Strategy.
## Copyright (C) 2007-2017 by Hans Joachim Ferreau, Andreas Potschka,
## Christian Kirches et al. All rights reserved.
##
## qpOASES 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.
##
## qpOASES 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 qpOASES; if not, write to the Free Software
## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
##
##
## Filename: src/Makefile
## Author: Hans Joachim Ferreau, Andreas Potschka, Christian Kirches
## Version: 3.2
## Date: 2007-2017
##
include ../make.mk
##
## flags
##
IFLAGS = -I. \
-I${IDIR}
QPOASES_OBJECTS = \
SQProblem.${OBJEXT} \
QProblem.${OBJEXT} \
QProblemB.${OBJEXT} \
SQProblemSchur.${OBJEXT} \
Bounds.${OBJEXT} \
Constraints.${OBJEXT} \
SubjectTo.${OBJEXT} \
Indexlist.${OBJEXT} \
Flipper.${OBJEXT} \
Utils.${OBJEXT} \
Options.${OBJEXT} \
Matrices.${OBJEXT} \
MessageHandling.${OBJEXT} \
SparseSolver.${OBJEXT}
QPOASES_EXTRAS_OBJECTS = \
SolutionAnalysis.${OBJEXT} \
OQPinterface.${OBJEXT}
QPOASES_DEPENDS = \
${IDIR}/qpOASES.hpp \
${IDIR}/qpOASES/LapackBlasReplacement.hpp \
${IDIR}/qpOASES/SQProblem.hpp \
${IDIR}/qpOASES/QProblem.hpp \
${IDIR}/qpOASES/Flipper.hpp \
${IDIR}/qpOASES/QProblemB.hpp \
${IDIR}/qpOASES/Bounds.hpp \
${IDIR}/qpOASES/Constraints.hpp \
${IDIR}/qpOASES/SubjectTo.hpp \
${IDIR}/qpOASES/Indexlist.hpp \
${IDIR}/qpOASES/Utils.hpp \
${IDIR}/qpOASES/Constants.hpp \
${IDIR}/qpOASES/Types.hpp \
${IDIR}/qpOASES/Options.hpp \
${IDIR}/qpOASES/Matrices.hpp \
${IDIR}/qpOASES/MessageHandling.hpp \
${IDIR}/qpOASES/UnitTesting.hpp
##
## targets
##
all: ${LINK_DEPENDS}
${BINDIR}/libqpOASES.${LIBEXT}: ${QPOASES_OBJECTS} ${QPOASES_EXTRAS_OBJECTS}
@${ECHO} "Creating static lib" $@
@${AR} r $@ $^
${BINDIR}/libqpOASES.${DLLEXT}: ${QPOASES_OBJECTS} ${QPOASES_EXTRAS_OBJECTS}
@${ECHO} "Creating shared lib" $@
@${CPP} ${DEF_TARGET} ${SHARED} $^ ${LINK_LIBRARIES}
clean:
@${ECHO} "Cleaning up (src)"
@${RM} -f *.${OBJEXT} *.${LIBEXT} *.${DLLEXT}
clobber: clean
%.${OBJEXT}: %.cpp ${QPOASES_DEPENDS}
@${ECHO} "Creating" $@
@${CPP} ${DEF_TARGET} -c ${IFLAGS} ${CPPFLAGS} $<
##
## end of file
##