mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-11 07:30:15 +01:00
The most basic program using libinput should only need to link against -linput and get the rest resolved automatically. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
22 lines
676 B
Makefile
22 lines
676 B
Makefile
if BUILD_TESTS
|
|
AM_CPPFLAGS = -I$(top_srcdir)/src
|
|
|
|
run_tests =
|
|
build_tests = test-build-linker test-build-pedantic-c99 test-build-std-gnuc90
|
|
|
|
noinst_PROGRAMS = $(build_tests) $(run_tests)
|
|
TESTS = $(run_tests)
|
|
|
|
# build-test only
|
|
test_build_pedantic_c99_SOURCES = build-pedantic.c
|
|
test_build_pedantic_c99_CFLAGS = $(AM_CPPFLAGS) -std=c99 -pedantic -Werror
|
|
|
|
test_build_std_gnuc90_SOURCES = build-pedantic.c
|
|
test_build_std_gnuc90_CFLAGS = $(AM_CPPFLAGS) -std=gnu90 -Werror
|
|
|
|
# test for linking with the minimal linker flags
|
|
test_build_linker_SOURCES = build-pedantic.c
|
|
test_build_linker_CFLAGS = -I$(top_srcdir)/src
|
|
test_build_linker_LDADD = $(top_builddir)/src/libinput.la
|
|
|
|
endif
|