File: Makefile.am

package info (click to toggle)
memtailor 1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,752 kB
  • sloc: sh: 4,662; cpp: 1,101; makefile: 43
file content (56 lines) | stat: -rw-r--r-- 1,810 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# options passed to aclocal, which is a tool for making macroes visible to
# autoconf. We use -I to tell aclocal where we put the local macros.
ACLOCAL_AMFLAGS = -I build/autotools/m4

# Options passed to the C PreProcessor (CPP), NOT the C Plus Plus compiler.
AM_CPPFLAGS = -I${top_srcdir}/

# tell Libtool what the name of the library is.
lib_LTLIBRARIES = libmemtailor.la

# set the C++ compiler to include src/
AM_CXXFLAGS=-I$(top_srcdir)/src/ -std=gnu++17

# the sources that are built to make the library
libmemtailor_la_SOURCES =		\
  src/memtailor/BufferPool.cpp src/memtailor/Arena.cpp	\
  src/memtailor/MemoryBlocks.cpp src/memtailor.cpp

# The headers that are installed.
memtailorA_includedir = $(includedir)
memtailorA_include_HEADERS = src/memtailor.h
# install remaining headers into a memtailor subdirectory of the include dir
memtailorB_includedir = \
  $(includedir)/memtailor
memtailorB_include_HEADERS = src/memtailor/stdinc.h			\
  src/memtailor/BufferPool.h src/memtailor/Arena.h			\
  src/memtailor/ArenaVector.h src/memtailor/MemoryBlocks.h

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = build/autotools/memtailor.pc

# When making a distribution file, Automake knows to include all files
# that are necessary to build the project. EXTRA_DIST specifies files
# to include beyond those used in the build process.
EXTRA_DIST = autogen.sh

# set up tests to run on "make check"
if with_gtest

TESTS=unittest
check_PROGRAMS=$(TESTS)

unittest_CXXFLAGS = -I$(top_srcdir)/src/ -std=gnu++17
unittest_LDADD = $(top_builddir)/libmemtailor.la -lpthread -lgtest

# test_LIBS=
unittest_SOURCES=src/test/ArenaTest.cpp src/test/BufferPoolTest.cpp	\
  src/test/MemoryBlocksTest.cpp src/test/testMain.cpp

else

check:
	@echo
	@echo "configured without gtest, so unittests cannot be run."

endif