Makefile.am
author Akos Ladanyi <ladanyi@tmit.bme.hu>
Wed, 05 Nov 2008 14:44:37 +0000
changeset 375 a637fb9d457b
parent 321 a412d990f043
child 555 861a9d5ff283
permissions -rw-r--r--
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').
ladanyi@1
     1
ACLOCAL_AMFLAGS = -I m4
ladanyi@1
     2
ladanyi@375
     3
AM_CXXFLAGS = $(WARNINGCXXFLAGS)
ladanyi@375
     4
ladanyi@70
     5
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_builddir)
ladanyi@1
     6
LDADD = $(top_builddir)/lemon/libemon.la
ladanyi@1
     7
ladanyi@1
     8
EXTRA_DIST = \
alpar@320
     9
	AUTHORS \
alpar@5
    10
	LICENSE \
ladanyi@1
    11
	m4/lx_check_cplex.m4 \
ladanyi@1
    12
	m4/lx_check_glpk.m4 \
ladanyi@146
    13
	m4/lx_check_soplex.m4 \
ladanyi@227
    14
	CMakeLists.txt \
ladanyi@227
    15
	cmake
ladanyi@1
    16
ladanyi@1
    17
pkgconfigdir = $(libdir)/pkgconfig
ladanyi@1
    18
lemondir = $(pkgincludedir)
ladanyi@1
    19
bitsdir = $(lemondir)/bits
ladanyi@1
    20
conceptdir = $(lemondir)/concepts
ladanyi@1
    21
pkgconfig_DATA =
ladanyi@1
    22
lib_LTLIBRARIES =
ladanyi@1
    23
lemon_HEADERS =
ladanyi@1
    24
bits_HEADERS =
ladanyi@1
    25
concept_HEADERS =
ladanyi@1
    26
noinst_HEADERS =
ladanyi@1
    27
noinst_PROGRAMS =
ladanyi@1
    28
bin_PROGRAMS =
ladanyi@1
    29
check_PROGRAMS =
alpar@310
    30
dist_bin_SCRIPTS =
ladanyi@1
    31
TESTS =
ladanyi@1
    32
XFAIL_TESTS =
ladanyi@1
    33
ladanyi@1
    34
include lemon/Makefile.am
ladanyi@1
    35
include test/Makefile.am
ladanyi@1
    36
include doc/Makefile.am
ladanyi@1
    37
include demo/Makefile.am
ladanyi@1
    38
include tools/Makefile.am
ladanyi@1
    39
ladanyi@1
    40
MRPROPERFILES = \
ladanyi@1
    41
	aclocal.m4 \
ladanyi@1
    42
	config.h.in \
ladanyi@1
    43
	config.h.in~ \
ladanyi@1
    44
	configure \
ladanyi@1
    45
	Makefile.in \
ladanyi@1
    46
	build-aux/config.guess \
ladanyi@1
    47
	build-aux/config.sub \
ladanyi@1
    48
	build-aux/depcomp \
ladanyi@1
    49
	build-aux/install-sh \
ladanyi@1
    50
	build-aux/ltmain.sh \
ladanyi@1
    51
	build-aux/missing \
ladanyi@146
    52
	doc/doxygen.log
ladanyi@1
    53
ladanyi@1
    54
mrproper:
ladanyi@1
    55
	$(MAKE) $(AM_MAKEFLAGS) maintainer-clean
ladanyi@1
    56
	-rm -f $(MRPROPERFILES)
ladanyi@1
    57
ladanyi@1
    58
dist-bz2: dist
ladanyi@1
    59
	zcat $(PACKAGE)-$(VERSION).tar.gz | \
ladanyi@1
    60
	bzip2 --best -c > $(PACKAGE)-$(VERSION).tar.bz2
ladanyi@1
    61
ladanyi@1
    62
distcheck-bz2: distcheck
ladanyi@1
    63
	zcat $(PACKAGE)-$(VERSION).tar.gz | \
ladanyi@1
    64
	bzip2 --best -c > $(PACKAGE)-$(VERSION).tar.bz2
ladanyi@1
    65
ladanyi@1
    66
.PHONY: mrproper dist-bz2 distcheck-bz2