summaryrefslogtreecommitdiff
path: root/Makefile-libglnx.am
blob: dfe65263599ca6969fc45042a5e0bc1beb40a9ac (plain)
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
63
64
65
# Copyright (C) 2015 Colin Walters <walters@verbum.org>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.

EXTRA_DIST += \
	$(libglnx_srcpath)/README.md \
	$(libglnx_srcpath)/COPYING \
	$(libglnx_srcpath)/libglnx.m4 \
	$(NULL)

libglnx_la_SOURCES = \
	$(libglnx_srcpath)/glnx-alloca.h \
	$(libglnx_srcpath)/glnx-backport-autocleanups.h \
	$(libglnx_srcpath)/glnx-backport-autoptr.h \
	$(libglnx_srcpath)/glnx-backports.h \
	$(libglnx_srcpath)/glnx-backports.c \
	$(libglnx_srcpath)/glnx-local-alloc.h \
	$(libglnx_srcpath)/glnx-local-alloc.c \
	$(libglnx_srcpath)/glnx-errors.h \
	$(libglnx_srcpath)/glnx-errors.c \
	$(libglnx_srcpath)/glnx-console.h \
	$(libglnx_srcpath)/glnx-console.c \
	$(libglnx_srcpath)/glnx-dirfd.h \
	$(libglnx_srcpath)/glnx-dirfd.c \
	$(libglnx_srcpath)/glnx-fdio.h \
	$(libglnx_srcpath)/glnx-fdio.c \
	$(libglnx_srcpath)/glnx-lockfile.h \
	$(libglnx_srcpath)/glnx-lockfile.c \
	$(libglnx_srcpath)/glnx-missing-syscall.h \
	$(libglnx_srcpath)/glnx-missing.h \
	$(libglnx_srcpath)/glnx-xattrs.h \
	$(libglnx_srcpath)/glnx-xattrs.c \
	$(libglnx_srcpath)/glnx-shutil.h \
	$(libglnx_srcpath)/glnx-shutil.c \
	$(libglnx_srcpath)/libglnx.h \
	$(NULL)

libglnx_la_CFLAGS = $(AM_CFLAGS) $(libglnx_cflags)
libglnx_la_LDFLAGS = -avoid-version -Bsymbolic-functions -export-symbols-regex "^glnx_" -no-undefined -export-dynamic 
libglnx_la_LIBADD = $(libglnx_libs)

libglnx_tests = test-libglnx-xattrs test-libglnx-fdio
TESTS += $(libglnx_tests)

check_PROGRAMS += $(libglnx_tests)
test_libglnx_xattrs_SOURCES = $(libglnx_srcpath)/tests/test-libglnx-xattrs.c
test_libglnx_xattrs_CFLAGS = $(AM_CFLAGS) $(libglnx_cflags)
test_libglnx_xattrs_LDADD = $(libglnx_libs) libglnx.la

test_libglnx_fdio_SOURCES = $(libglnx_srcpath)/tests/test-libglnx-fdio.c
test_libglnx_fdio_CFLAGS = $(AM_CFLAGS) $(libglnx_cflags)
test_libglnx_fdio_LDADD = $(libglnx_libs) libglnx.la