From d5cddf048c1f7bd15827691cfd4225a398b78d73 Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Mon, 17 Sep 2012 15:38:49 +0200 Subject: [PATCH] enable warnings for ykcore and tests --- tests/Makefile.am | 2 +- ykcore/Makefile.am | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index e758e1b..dbdd298 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -28,7 +28,7 @@ # Self tests. AM_LDFLAGS = -no-install -AM_CFLAGS=-I$(srcdir)/.. -I$(srcdir)/../ykcore +AM_CFLAGS=-I$(srcdir)/.. -I$(srcdir)/../ykcore $(WARN_CFLAGS) LDADD = ../libykpers-1.la $(LTLIBYUBIKEY) ctests = selftest test_args_to_config test_key_generation \ diff --git a/ykcore/Makefile.am b/ykcore/Makefile.am index dcc64d8..8106bc0 100644 --- a/ykcore/Makefile.am +++ b/ykcore/Makefile.am @@ -29,10 +29,11 @@ noinst_LTLIBRARIES = libykcore.la libykcore_la_SOURCES = ykdef.h ykcore.h ykcore_lcl.h ykcore_backend.h \ ykcore.c ykstatus.h ykstatus.c yktsd.h libykcore_la_LIBADD = $(LTLIBYUBIKEY) $(LTLIBUSB) @LIBUSB_LIBS@ +AM_CFLAGS = $(WARN_CFLAGS) if BACKEND_LIBUSB_1_0 libykcore_la_SOURCES += ykcore_libusb-1.0.c -AM_CFLAGS = @LIBUSB_CFLAGS@ +AM_CFLAGS += @LIBUSB_CFLAGS@ endif if BACKEND_LIBUSB -- 2.39.5