Debian Codegraph @

Bonmin/src/Interfaces/Ampl/Makefile.am

raw
1 # Copyright (C) 2006 International Business Machines and others.
2 # All Rights Reserved.
3 # This file is distributed under the Eclipse Public License.
4
5 ## $Id$
6
7 # Author: Andreas Waechter IBM 2006-04-13
8
9 AUTOMAKE_OPTIONS = foreign
10
11 ########################################################################
12 # libipoptinterface #
13 ########################################################################
14
15 # Name of the library in this directory
16 noinst_LTLIBRARIES = libbonamplinterface.la
17
18 # List all source files, including headers
19 libbonamplinterface_la_SOURCES = \
20 BonAmplInterface.cpp BonAmplInterface.hpp \
21 BonAmplTMINLP.cpp BonAmplTMINLP.hpp \
22 BonSolReader.cpp BonSolReader.hpp \
23 sos_kludge.cpp
24
25 # This is for libtool
26 libbonamplinterface_la_LDFLAGS = $(LT_LDFLAGS)
27
28 # Here list all include flags, relative to this "srcdir" directory. This
29 # "cygpath" stuff is necessary to compile with native compilers on Windows
30 AM_CPPFLAGS = \
31 -I`$(CYGPATH_W) $(srcdir)/..` \
32 -I`$(CYGPATH_W) $(srcdir)/../Ipopt` \
33 $(BONMINLIB_CFLAGS) $(ASL_CFLAGS)
34
35 if COIN_HAS_FILTERSQP
36 AM_CPPFLAGS += -I`$(CYGPATH_W) $(srcdir)/../Filter`
37 endif
38
39 # This line is necessary to allow VPATH compilation
40 DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)` -I..
41
42 ########################################################################
43 # Headers that need to be installed #
44 ########################################################################
45
46 # Here list all the header files that are required by a user of the library,
47 # and that therefore should be installed in 'include/coin'
48 includecoindir = $(includedir)/coin
49 includecoin_HEADERS = BonAmplInterface.hpp BonAmplTMINLP.hpp
50
51 ########################################################################
52 # Astyle stuff #
53 ########################################################################
54
55 # Here repeat all source files, with "bak" appended
56 ASTYLE_FILES = \
57 BonAmplTMINLP.cppbak BonAmplTMINLP.hppbak \
58 BonAmplInterface.cppbak BonAmplInterface.hppbak
59
60 ASTYLE = @ASTYLE@
61 ASTYLEFLAGS = @ASTYLEFLAGS@
62
63 CLEANFILES = $(ASTYLE_FILES)
64
65 SUFFIXES = .cppbak .hppbak
66
67 astyle: $(ASTYLE_FILES)
68
69 .hpp.hppbak:
70 mv $< $@
71 $(ASTYLE) $(ASTYLEFLAGS) < $@ > $<
72 touch $@
73
74 .cpp.cppbak:
75 mv $< $@
76 $(ASTYLE) $(ASTYLEFLAGS) < $@ > $<
77 touch $@