| 1 |
# SPDX-License-Identifier: GPL-2.0-or-later |
| 2 |
# SPDX-FileCopyrightText: 2017-2022 Bartosz Golaszewski <[email protected]> |
| 3 |
|
| 4 |
SUBDIRS = gpiosim gpiosim-glib harness scripts |
| 5 |
|
| 6 |
AM_CFLAGS = -I$(top_srcdir)/include/ -I$(top_srcdir)/tests/gpiosim-glib/ |
| 7 |
AM_CFLAGS += -I$(top_srcdir)/tests/harness/ |
| 8 |
AM_CFLAGS += -include $(top_builddir)/config.h |
| 9 |
AM_CFLAGS += -Wall -Wextra -g -std=gnu89 $(GLIB_CFLAGS) $(GIO_CFLAGS) |
| 10 |
AM_CFLAGS += -DG_LOG_DOMAIN=\"gpiod-test\" |
| 11 |
LDADD = $(top_builddir)/lib/libgpiod.la |
| 12 |
LDADD += $(top_builddir)/tests/gpiosim/libgpiosim.la |
| 13 |
LDADD += $(top_builddir)/tests/gpiosim-glib/libgpiosim-glib.la |
| 14 |
LDADD += $(top_builddir)/tests/harness/libgpiod-test-harness.la |
| 15 |
LDADD += $(GLIB_LIBS) $(GIO_LIBS) |
| 16 |
|
| 17 |
noinst_PROGRAMS = gpiod-test |
| 18 |
|
| 19 |
gpiod_test_SOURCES = \ |
| 20 |
helpers.h \ |
| 21 |
tests-chip.c \ |
| 22 |
tests-chip-info.c \ |
| 23 |
tests-edge-event.c \ |
| 24 |
tests-info-event.c \ |
| 25 |
tests-kernel-uapi.c \ |
| 26 |
tests-line-config.c \ |
| 27 |
tests-line-info.c \ |
| 28 |
tests-line-request.c \ |
| 29 |
tests-line-settings.c \ |
| 30 |
tests-misc.c \ |
| 31 |
tests-request-config.c |