mirror of
https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git
synced 2026-10-28 13:55:08 +03:00
We're already using it implicitly but GCC may change the default standard to gnu99 at some point, so use gnu89 explicitly whenever building C files. Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
25 lines
498 B
Makefile
25 lines
498 B
Makefile
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
|
|
#
|
|
# This file is part of libgpiod.
|
|
#
|
|
# Copyright (C) 2017-2018 Bartosz Golaszewski <bartekgola@gmail.com>
|
|
#
|
|
|
|
SUBDIRS = . examples
|
|
|
|
pyexec_LTLIBRARIES = gpiod.la
|
|
|
|
gpiod_la_SOURCES = gpiodmodule.c
|
|
|
|
gpiod_la_CFLAGS = -I$(top_srcdir)/include/
|
|
gpiod_la_CFLAGS += -Wall -Wextra -g -std=gnu89 $(PYTHON_CPPFLAGS)
|
|
gpiod_la_LDFLAGS = -module -avoid-version
|
|
gpiod_la_LIBADD = $(top_builddir)/lib/libgpiod.la $(PYTHON_LIBS)
|
|
|
|
if WITH_TESTS
|
|
|
|
SUBDIRS += tests
|
|
|
|
endif
|