# 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 \
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