Fix build when cutter is not available. (make distcheck ok)

This commit is contained in:
Romuald Conty 2010-01-11 20:25:28 +00:00
parent c1bcb966ea
commit 576801d5ff
2 changed files with 8 additions and 4 deletions

View file

@ -1,7 +1,7 @@
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = libfreefare test
SUBDIRS = libfreefare test examples
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libfreefare.pc

View file

@ -1,5 +1,10 @@
# $Id$
INCLUDES = $(CUTTER_CFLAGS) -I$(top_srcdir)/libfreefare
LIBS = $(CUTTER_LIBS)
if WITH_CUTTER
TESTS = run-test.sh
TESTS_ENVIRONMENT = NO_MAKE=yes CUTTER="$(CUTTER)"
@ -9,9 +14,6 @@ noinst_LTLIBRARIES = \
test_mifare_classic_create_trailer_block.la \
test_mifare_classic_application.la
INCLUDES = $(CUTTER_CFLAGS) -I$(top_srcdir)/libfreefare
LIBS = $(CUTTER_LIBS)
AM_LDFLAGS = -module -rpath $(libdir) -avoid-version -no-undefined
test_mad_la_SOURCES = test_mad.c
@ -29,3 +31,5 @@ test_mifare_classic_application_la_LIBADD = $(top_srcdir)/libfreefare/libfreefar
echo-cutter:
@echo $(CUTTER)
endif