| 1 |
# SPDX-License-Identifier: GPL-2.0-or-later |
| 2 |
# SPDX-FileCopyrightText: 2017-2021 Bartosz Golaszewski <[email protected]> |
| 3 |
|
| 4 |
lib_LTLIBRARIES = libgpiodcxx.la |
| 5 |
libgpiodcxx_la_SOURCES = \ |
| 6 |
chip.cpp \ |
| 7 |
chip-info.cpp \ |
| 8 |
edge-event-buffer.cpp \ |
| 9 |
edge-event.cpp \ |
| 10 |
exception.cpp \ |
| 11 |
info-event.cpp \ |
| 12 |
internal.cpp \ |
| 13 |
internal.hpp \ |
| 14 |
line.cpp \ |
| 15 |
line-config.cpp \ |
| 16 |
line-info.cpp \ |
| 17 |
line-request.cpp \ |
| 18 |
line-settings.cpp \ |
| 19 |
misc.cpp \ |
| 20 |
request-builder.cpp \ |
| 21 |
request-config.cpp |
| 22 |
|
| 23 |
libgpiodcxx_la_CXXFLAGS = -Wall -Wextra -g -std=gnu++17 |
| 24 |
libgpiodcxx_la_CXXFLAGS += -fvisibility=hidden -I$(top_srcdir)/include/ |
| 25 |
libgpiodcxx_la_CXXFLAGS += $(PROFILING_CFLAGS) |
| 26 |
libgpiodcxx_la_LDFLAGS = -version-info $(subst .,:,$(ABI_CXX_VERSION)) |
| 27 |
libgpiodcxx_la_LDFLAGS += $(PROFILING_LDFLAGS) |
| 28 |
libgpiodcxx_la_LIBADD = $(top_builddir)/lib/libgpiod.la |
| 29 |
|
| 30 |
include_HEADERS = gpiod.hpp |
| 31 |
|
| 32 |
pkgconfigdir = $(libdir)/pkgconfig |
| 33 |
pkgconfig_DATA = libgpiodcxx.pc |
| 34 |
|
| 35 |
SUBDIRS = gpiodcxx . |
| 36 |
|
| 37 |
if WITH_TESTS |
| 38 |
|
| 39 |
SUBDIRS += tests |
| 40 |
|
| 41 |
endif |
| 42 |
|
| 43 |
if WITH_EXAMPLES |
| 44 |
|
| 45 |
SUBDIRS += examples |
| 46 |
|
| 47 |
endif |