-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.snopt
204 lines (135 loc) · 3.77 KB
/
Makefile.snopt
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
SHELL = /bin/sh
USERHOME = ~
F2CINC = $(F2CINCLUDE)
F2CLIB = $(F2CLIBRARY)
DMATRIXDIR=./dmatrix
CXSPARSE=./SuiteSparse/CXSparse
LUSOL=./lusol/csrc
SNOPTDIR=$(USERHOME)/snopt7
prefix = $(USERHOME)/Ipopt-3.12.3
# Directory with header files
IPOPTINCDIR = ${prefix}/include/coin
# Directory with libipopt.a
IPOPTLIBDIR = ${exec_prefix}/lib
exec_prefix = ${prefix}
PSOPTDIR = ./PSOPT
PSOPTSRCDIR = $(PSOPTDIR)/src
EXAMPLESDIR = $(PSOPTDIR)/examples
CXSPARSE_LIBS = $(CXSPARSE)/Lib/libcxsparse.a
LUSOL_LIBS = $(LUSOL)/liblusol.a
SPARSE_LIBS = $(CXSPARSE_LIBS) $(LUSOL_LIBS) -ldl
ADOLC_LIBS = -ladolc
PSOPT_LIBS = $(PSOPTDIR)/lib/libpsopt.a
DMATRIX_LIBS = $(DMATRIXDIR)/lib/libdmatrix.a
SNOPT_LIBS = $(SNOPTDIR)/lib/libsnopt_cpp.a $(SNOPTDIR)/lib/libblas.a
# $(CXSPARSE_LIBS):
# (cp UFconfig.h $(CXSPARSE)/Include;cd $(CXSPARSE)/Lib; $(MAKE))
$(CXSPARSE_LIBS):
(cd $(CXSPARSE); $(MAKE) library )
$(LUSOL_LIBS):
(cp Makefile.lusol $(LUSOL)/Makefile; cd $(LUSOL); $(MAKE))
$(DMATRIX_LIBS): $(DMATRIXDIR)/src/dmatrixv.cxx $(DMATRIXDIR)/include/dmatrixv.h
(cd $(DMATRIXDIR)/lib; $(MAKE))
dmatrix_examples:
(cd $(DMATRIXDIR)/examples; $(MAKE) all)
$(PSOPT_LIBS):
(cd $(PSOPTDIR)/lib; $(MAKE))
bioreactor:
(cd $(EXAMPLESDIR)/$@; make $@)
brac1:
(cd $(EXAMPLESDIR)/$@; make $@)
shutt:
(cd $(EXAMPLESDIR)/$@; make $@)
manutec:
(cd $(EXAMPLESDIR)/$@; make $@)
missile:
(cd $(EXAMPLESDIR)/$@; make $@)
moon:
(cd $(EXAMPLESDIR)/$@; make $@)
stc1:
(cd $(EXAMPLESDIR)/$@; make $@)
brymr:
(cd $(EXAMPLESDIR)/$@; make $@)
twoburn:
(cd $(EXAMPLESDIR)/$@; make $@)
twolink:
(cd $(EXAMPLESDIR)/$@; make $@)
twophsc:
(cd $(EXAMPLESDIR)/$@; make $@)
twophro:
(cd $(EXAMPLESDIR)/$@; make $@)
hyper:
(cd $(EXAMPLESDIR)/$@; make $@)
launch:
(cd $(EXAMPLESDIR)/$@; make $@)
lambert:
(cd $(EXAMPLESDIR)/$@; make $@)
bryden:
(cd $(EXAMPLESDIR)/$@; make $@)
delay1:
(cd $(EXAMPLESDIR)/$@; make $@)
goddard:
(cd $(EXAMPLESDIR)/$@; make $@)
steps:
(cd $(EXAMPLESDIR)/$@; make $@)
sing5:
(cd $(EXAMPLESDIR)/$@; make $@)
climb:
(cd $(EXAMPLESDIR)/$@; make $@)
cracking:
(cd $(EXAMPLESDIR)/$@; make $@)
isop:
(cd $(EXAMPLESDIR)/$@; make $@)
catmix:
(cd $(EXAMPLESDIR)/$@; make $@)
chain:
(cd $(EXAMPLESDIR)/$@; make $@)
obstacle:
(cd $(EXAMPLESDIR)/$@; make $@)
crane:
(cd $(EXAMPLESDIR)/$@; make $@)
ipc:
(cd $(EXAMPLESDIR)/$@; make $@)
alpine:
(cd $(EXAMPLESDIR)/$@; make $@)
lts:
(cd $(EXAMPLESDIR)/$@; make $@)
user:
(cd $(EXAMPLESDIR)/$@; make $@)
coulomb:
(cd $(EXAMPLESDIR)/$@; make $@)
lowthr:
(cd $(EXAMPLESDIR)/$@; make $@)
heat:
(cd $(EXAMPLESDIR)/$@; make $@)
zpm:
(cd $(EXAMPLESDIR)/$@; make $@)
glider:
(cd $(EXAMPLESDIR)/$@; make $@)
notorious:
(cd $(EXAMPLESDIR)/$@; make $@)
reorientation:
(cd $(EXAMPLESDIR)/$@; make $@)
mpec:
(cd $(EXAMPLESDIR)/$@; make $@)
dae_i3:
(cd $(EXAMPLESDIR)/$@; make $@)
breakwell:
(cd $(EXAMPLESDIR)/$@; make $@)
rayleigh:
(cd $(EXAMPLESDIR)/$@; make $@)
test: launch
(cd $(EXAMPLESDIR)/launch; ./launch)
all: $(CXSPARSE_LIBS) $(DMATRIX_LIBS) $(LUSOL_LIBS) $(PSOPT_LIBS) dmatrix_examples bioreactor brac1 shutt manutec missile moon stc1 sing5 steps brymr twoburn twolink twophsc twophro hyper launch lambert bryden delay1 goddard sing5 climb cracking isop catmix chain obstacle crane ipc alpine lts user coulomb lowthr heat zpm glider notorious reorientation mpec dae_i3 breakwell rayleigh test
clean:
(cd $(DMATRIXDIR)/lib; $(MAKE) clean)
(cd $(CXSPARSE)/Lib; $(MAKE) clean)
(cd $(LUSOL); $(MAKE) clean)
(cd $(DMATRIXDIR)/examples; $(MAKE) clean)
(cd $(PSOPTDIR)/lib; $(MAKE) clean)
distclean:
(cd $(DMATRIXDIR)/lib; $(MAKE) distclean)
(cd $(CXSPARSE)/Lib; $(MAKE) distclean)
(cd $(LUSOL); $(MAKE) clean)
(cd $(DMATRIXDIR)/examples; $(MAKE) distclean)
(cd $(PSOPTDIR)/lib; $(MAKE) distclean)