forked from JagadheesanD/memleakutil
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.am
More file actions
62 lines (53 loc) · 1.85 KB
/
Copy pathMakefile.am
File metadata and controls
62 lines (53 loc) · 1.85 KB
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
57
58
59
60
61
62
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
#
if generic
ACLOCAL_AMFLAGS = -I m4
AM_CFLAGS = $(TRACE_CFLAGS) $(CFLAGS) -I${top_srcdir}/inc
AM_LDFLAGS = -L$(PKG_CONFIG_SYSROOT_DIR)/$(libdir) $(LDFLAGS)
AM_LDFLAGS += -lrt -ldl
lib_LTLIBRARIES = libmemfnswrap.la
libmemfnswrap_la_SOURCES = ${top_srcdir}/lib/memfns_wrap.c
libmemfnswrap_la_LDFLAGS = -shared -fPIC -Wl,-soname,libmemfnswrap.so.0
libmemfnswrap_la_includedir = $(includedir)
libmemfnswrap_la_include_HEADERS = inc/memfns_wrap.h
bin_PROGRAMS = memleakutil
memleakutil_SOURCES = \
${top_srcdir}/uty/memleakutil.c
memleakutil_includedir = ${top_srcdir}/inc
memleakutil_CFLAGS = $(AM_CFLAGS)
memleakutil_CPPFLAGS = $(AM_CFLAGS)
memleakutil_LDFLAGS = $(AM_LDFLAGS) -lpthread
if USE_SELF_TEST
bin_PROGRAMS += memleakutil_test
memleakutil_test_DEPENDENCIES = libmemfnswrap.la
memleakutil_test_SOURCES = ${top_srcdir}/uty/memleakutil.c \
${top_srcdir}/tst/memleakutil_test.c \
${top_srcdir}/lib/memfns_wrap.c
memleakutil_test_CFLAGS = $(AM_CFLAGS) -DSELF_TEST
memleakutil_test_CPPFLAGS = $(AM_CFLAGS) -DSELF_TEST
memleakutil_test_LDFLAGS = $(AM_LDFLAGS) -lpthread
endif
#if USE_EXAMPLE
#memleakutil_SOURCES += \
# ${top_srcdir}/example1.c \
# ${top_srcdir}/example2.c
#else
#memleakutil_SOURCES += \
# ${top_srcdir}/noexample1.c \
#endif
endif
if rdk
bin_PROGRAMS =
endif