Debian Codegraph @

Bonmin/src/Algorithms/Ampl/Makefile.am

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