File: common.mk

package info (click to toggle)
ola 0.9.1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 21,340 kB
  • ctags: 23,021
  • sloc: cpp: 129,922; python: 12,265; sh: 11,778; makefile: 2,288; ansic: 1,775; java: 518; xml: 214
file content (30 lines) | stat: -rw-r--r-- 1,024 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# here we define common flags for C++ targets
WARNING_CXXFLAGS = -I$(top_srcdir)/include \
                   -I$(top_builddir)/include \
                   -I$(top_srcdir) \
                   -I$(top_builddir) \
                   -Wall -Wformat -W -fvisibility-inlines-hidden \
                   $(libprotobuf_CFLAGS)

COMMON_CXXFLAGS = $(WARNING_CXXFLAGS)

# the genererated protobuf files don't compile with -Werror on win32
if ! USING_WIN32
if FATAL_WARNINGS
  COMMON_CXXFLAGS += -Werror
endif
endif

# AM_CXXFLAGS is used when target_CXXFLAGS isn't defined
AM_CXXFLAGS = $(COMMON_CXXFLAGS)

COMMON_TESTING_LIBS = $(CPPUNIT_LIBS) \
                      $(top_builddir)/common/testing/libolatesting.la \
                      $(top_builddir)/common/testing/libtestmain.la
# Due to MinGW's handling of library archives, we need to append this
if USING_WIN32
COMMON_TESTING_LIBS += $(CPPUNIT_LIBS)
endif

COMMON_TESTING_FLAGS = $(COMMON_CXXFLAGS) $(CPPUNIT_CFLAGS) \
                       -DTEST_SRC_DIR=\"$(srcdir)\"