-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile.am
164 lines (146 loc) · 3.63 KB
/
Makefile.am
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
# Copyright (C) 2019 COIN-OR
# All Rights Reserved.
# This file is distributed under the Eclipse Public License.
lib_LTLIBRARIES = libcoinasl.la
libcoinasl_la_SOURCES = \
solvers/asldate.c \
solvers/atof.c \
solvers/auxinfo.c \
solvers/avltree.c \
solvers/b_search.c \
solvers/basename.c \
solvers/bscanf.c \
solvers/com2eval.c \
solvers/comeval.c \
solvers/con1ival.c \
solvers/con2ival.c \
solvers/con2val.c \
solvers/conadj.c \
solvers/conpval.c \
solvers/conscale.c \
solvers/conval.c \
solvers/degree.c \
solvers/derprop.c \
solvers/duthes.c \
solvers/dtoa1.c \
solvers/dynlink.c \
solvers/f_read.c \
solvers/fg_read.c \
solvers/fg_write.c \
solvers/fgh_read.c \
solvers/fpecatch.c \
solvers/fullhes.c \
solvers/func_add.c \
solvers/funcadd1.c \
solvers/g_fmt.c \
solvers/genrowno.c \
solvers/getenv.c \
solvers/getstub.c \
solvers/htcl.c \
solvers/indic_cons.c \
solvers/jac0dim.c \
solvers/jac2dim.c \
solvers/jacdim.c \
solvers/jacinc.c \
solvers/jacinc1.c \
solvers/libnamsave.c \
solvers/mach.c \
solvers/mainexit.c \
solvers/mip_pri.c \
solvers/misc.c \
solvers/mpec_adj.c \
solvers/mqpcheckv.c \
solvers/mypow.c \
solvers/names.c \
solvers/nl_obj.c \
solvers/nqpcheck.c \
solvers/nqpcheckZ.c \
solvers/obj2val.c \
solvers/obj_adj.c \
solvers/obj_prec.c \
solvers/objconst.c \
solvers/objval.c \
solvers/objval_.c \
solvers/op_type.c \
solvers/pfg_read.c \
solvers/pfghread.c \
solvers/printf.c \
solvers/pshvprod.c \
solvers/punknown.c \
solvers/qp_read.c \
solvers/qpcheck.c \
solvers/qpcheckZ.c \
solvers/qsortv.c \
solvers/readsol.c \
solvers/repwhere.c \
solvers/rops.c \
solvers/rops2.c \
solvers/sigcatch.c \
solvers/sos_add.c \
solvers/sphes.c \
solvers/sscanf.c \
solvers/stderr.c \
solvers/studchk0.c \
solvers/suf_sos.c \
solvers/value.c \
solvers/writesol.c \
solvers/wrtsol_.c \
solvers/ws_desc.c \
solvers/wsu_desc.c \
solvers/x2check.c \
solvers/xp1known.c \
solvers/xp2known.c \
details.c \
arith.h
if CC_IS_CL
libcoinasl_la_SOURCES += solvers/fpinitmt.c
else
libcoinasl_la_SOURCES += solvers/fpinit.c
endif
libcoinasl_la_LIBADD = $(ASL_LFLAGS)
# This is for libtool
libcoinasl_la_LDFLAGS = $(LT_LDFLAGS)
# make sure that arith.h is build before any of the actual ASL sources
BUILT_SOURCES = arith.h
if USE_ARITH_H1
arith.h : $(srcdir)/solvers/arith.h1
cp $^ $@
if ASL_INT64
echo "#define ASL_big_goff" >> $@
endif
else # if USE_ARITH_H1
# program that generates arith.h
# NOTE: current ASL provides an alternative that doesn't require
# building and executing something first
noinst_PROGRAMS = arithchk
arithchk_SOURCES = solvers/arithchk.c
if CC_IS_CL
arithchk_CPPFLAGS = -DNO_FPINIT
else
arithchk_CPPFLAGS = -DASL_NO_FPINITMT
arithchk_SOURCES += fpinit.c
endif
arithchk_LDADD = $(ASL_LFLAGS)
arith.h : arithchk$(EXEEXT)
./arithchk$(EXEEXT) > $@
if ASL_INT64
echo "#define ASL_big_goff" >> $@
endif
endif # USE_ARITH_H1
details.c :
echo "char sysdetails_ASL[] = \"$(build)\";" > $@
# Suppress default defines from autoheader
DEFS =
########################################################################
# Extra Targets #
########################################################################
test:
@echo "No test available for ASL."
thirdpartyincludedir = $(includedir)/coin-or/asl
thirdpartyinclude_HEADERS = \
solvers/asl.h solvers/asl_pfg.h solvers/asl_pfgh.h solvers/psinfo.h solvers/funcadd.h \
solvers/nlp.h solvers/nlp2.h solvers/getstub.h solvers/opcode.hd solvers/r_opn.hd \
stdio1.h arith.h
pkgconfiglibdir = $(libdir)/pkgconfig
pkgconfiglib_DATA = coinasl.pc
CLEANFILES = arith.h details.c