COIN-OR::LEMON - Graph Library

source: lemon/Makefile.am @ 553:efec3c133e74

Last change on this file since 553:efec3c133e74 was 375:a637fb9d457b, checked in by Akos Ladanyi <ladanyi@…>, 15 years ago

Revert to the canonical way of customizing CXXFLAGS

A default list of compiler flags is set via AM_CXXFLAGS Automake variable.
However this gets overridden by per-target CXXFLAGS variables (e.g.
foo_CXXFLAGS in case the foo target). Because of this you should append
$(AM_CXXFLAGS) to the end of the per-target CXXFLAGS variables (e.g.
foo_CXXFLAGS = ... $(AM_CXXFLAGS)).

After this default list of flags the contents of the CXXFLAGS user variable is
passed to the compiler. This variable has a default value determined by
configure (in case of g++ it is '-g -O2'). You can override this by specifying
CXXFLAGS when invoking make (e.g. make CXXFLAGS='-O3').

File size: 1.3 KB
Line 
1ACLOCAL_AMFLAGS = -I m4
2
3AM_CXXFLAGS = $(WARNINGCXXFLAGS)
4
5AM_CPPFLAGS = -I$(top_srcdir) -I$(top_builddir)
6LDADD = $(top_builddir)/lemon/libemon.la
7
8EXTRA_DIST = \
9        AUTHORS \
10        LICENSE \
11        m4/lx_check_cplex.m4 \
12        m4/lx_check_glpk.m4 \
13        m4/lx_check_soplex.m4 \
14        CMakeLists.txt \
15        cmake
16
17pkgconfigdir = $(libdir)/pkgconfig
18lemondir = $(pkgincludedir)
19bitsdir = $(lemondir)/bits
20conceptdir = $(lemondir)/concepts
21pkgconfig_DATA =
22lib_LTLIBRARIES =
23lemon_HEADERS =
24bits_HEADERS =
25concept_HEADERS =
26noinst_HEADERS =
27noinst_PROGRAMS =
28bin_PROGRAMS =
29check_PROGRAMS =
30dist_bin_SCRIPTS =
31TESTS =
32XFAIL_TESTS =
33
34include lemon/Makefile.am
35include test/Makefile.am
36include doc/Makefile.am
37include demo/Makefile.am
38include tools/Makefile.am
39
40MRPROPERFILES = \
41        aclocal.m4 \
42        config.h.in \
43        config.h.in~ \
44        configure \
45        Makefile.in \
46        build-aux/config.guess \
47        build-aux/config.sub \
48        build-aux/depcomp \
49        build-aux/install-sh \
50        build-aux/ltmain.sh \
51        build-aux/missing \
52        doc/doxygen.log
53
54mrproper:
55        $(MAKE) $(AM_MAKEFLAGS) maintainer-clean
56        -rm -f $(MRPROPERFILES)
57
58dist-bz2: dist
59        zcat $(PACKAGE)-$(VERSION).tar.gz | \
60        bzip2 --best -c > $(PACKAGE)-$(VERSION).tar.bz2
61
62distcheck-bz2: distcheck
63        zcat $(PACKAGE)-$(VERSION).tar.gz | \
64        bzip2 --best -c > $(PACKAGE)-$(VERSION).tar.bz2
65
66.PHONY: mrproper dist-bz2 distcheck-bz2
Note: See TracBrowser for help on using the repository browser.