source: ThirdParty/ASL/trunk/Makefile.am

Last change on this file was 4022, checked in by stefan, 4 months ago

merge branch autotools-update

  • new buildsystem based on new autotools setup
  • Property svn:keywords set to Author Date Id Revision
File size: 3.8 KB
Line 
1# Copyright (C) 2019 COIN-OR
2# All Rights Reserved.
3# This file is distributed under the Eclipse Public License.
4
5AUTOMAKE_OPTIONS = foreign subdir-objects
6
7EXTRA_DIST = get.ASL INSTALL.ASL
8
9lib_LTLIBRARIES = libcoinasl.la
10
11libcoinasl_la_SOURCES = \
12        solvers/asldate.c \
13        solvers/atof.c \
14        solvers/auxinfo.c \
15        solvers/avltree.c \
16        solvers/b_search.c \
17        solvers/basename.c \
18        solvers/bscanf.c \
19        solvers/com2eval.c \
20        solvers/comeval.c \
21        solvers/con1ival.c \
22        solvers/con2ival.c \
23        solvers/con2val.c \
24        solvers/conadj.c \
25        solvers/conpval.c \
26        solvers/conscale.c \
27        solvers/conval.c \
28        solvers/degree.c \
29        solvers/derprop.c \
30        solvers/duthes.c \
31        solvers/dtoa1.c \
32        solvers/dynlink.c \
33        solvers/f_read.c \
34        solvers/fg_read.c \
35        solvers/fg_write.c \
36        solvers/fgh_read.c \
37        solvers/fpecatch.c \
38        solvers/fullhes.c \
39        solvers/func_add.c \
40        solvers/funcadd1.c \
41        solvers/g_fmt.c \
42        solvers/genrowno.c \
43        solvers/getenv.c \
44        solvers/getstub.c \
45        solvers/htcl.c \
46        solvers/indic_cons.c \
47        solvers/jac0dim.c \
48        solvers/jac2dim.c \
49        solvers/jacdim.c \
50        solvers/jacinc.c \
51        solvers/jacinc1.c \
52        solvers/libnamsave.c \
53        solvers/mach.c \
54        solvers/mainexit.c \
55        solvers/mip_pri.c \
56        solvers/misc.c \
57        solvers/mpec_adj.c \
58        solvers/mqpcheckv.c \
59        solvers/mypow.c \
60        solvers/names.c \
61        solvers/nl_obj.c \
62        solvers/nqpcheck.c \
63        solvers/nqpcheckZ.c \
64        solvers/obj2val.c \
65        solvers/obj_adj.c \
66        solvers/obj_prec.c \
67        solvers/objconst.c \
68        solvers/objval.c \
69        solvers/objval_.c \
70        solvers/op_type.c \
71        solvers/pfg_read.c \
72        solvers/pfghread.c \
73        solvers/printf.c \
74        solvers/pshvprod.c \
75        solvers/punknown.c \
76        solvers/qp_read.c \
77        solvers/qpcheck.c \
78        solvers/qpcheckZ.c \
79        solvers/qsortv.c \
80        solvers/readsol.c \
81        solvers/repwhere.c \
82        solvers/rops.c \
83        solvers/rops2.c \
84        solvers/sigcatch.c \
85        solvers/sos_add.c \
86        solvers/sphes.c \
87        solvers/sscanf.c \
88        solvers/stderr.c \
89        solvers/studchk0.c \
90        solvers/suf_sos.c \
91        solvers/value.c \
92        solvers/writesol.c \
93        solvers/wrtsol_.c \
94        solvers/ws_desc.c \
95        solvers/wsu_desc.c \
96        solvers/x2check.c \
97        solvers/xectim.c \
98        solvers/xp1known.c \
99        solvers/xp2known.c \
100        details.c \
101        arith.h
102
103if CC_IS_CL
104  libcoinasl_la_SOURCES += solvers/fpinitmt.c
105else
106  libcoinasl_la_SOURCES += solvers/fpinit.c
107endif
108
109libcoinasl_la_LIBADD = $(ASL_LFLAGS)
110
111# This is for libtool
112libcoinasl_la_LDFLAGS = $(LT_LDFLAGS)
113
114# make sure that arith.h is build before any of the actual ASL sources
115BUILT_SOURCES = arith.h
116
117# program that generates arith.h
118# NOTE: current ASL provides an alternative that doesn't require
119#  building and executing something first
120noinst_PROGRAMS = arithchk
121arithchk_SOURCES = solvers/arithchk.c
122if CC_IS_CL
123  arithchk_CPPFLAGS = -DNO_FPINIT
124else
125  arithchk_CPPFLAGS = -DASL_NO_FPINITMT
126  arithchk_SOURCES += fpinit.c
127endif
128arithchk_LDADD = $(ASL_LFLAGS)
129
130arith.h : arithchk$(EXEEXT)
131        ./arithchk$(EXEEXT) > $@
132
133details.c :
134        echo "char sysdetails_ASL[] = \"$(build)\";" > $@
135
136# Suppress default defines from autoheader
137DEFS =
138
139########################################################################
140#                           Extra Targets                              #
141########################################################################
142
143test:
144        @echo "No test available for ASL."
145
146thirdpartyincludedir = $(includedir)/coin-or/asl
147thirdpartyinclude_HEADERS = \
148  solvers/asl.h solvers/asl_pfg.h solvers/asl_pfgh.h solvers/psinfo.h solvers/funcadd.h \
149  solvers/nlp.h solvers/nlp2.h solvers/getstub.h solvers/opcode.hd solvers/r_opn.hd \
150  stdio1.h arith.h
151
152pkgconfiglibdir = $(libdir)/pkgconfig
153pkgconfiglib_DATA = coinasl.pc
154
155CLEANFILES = arith.h details.c
156
157########################################################################
158#                         Maintainer Stuff                             #
159########################################################################
160
161# Files that are generated and should be cleaned with make distclean
162DISTCLEANFILES =
Note: See TracBrowser for help on using the repository browser.