2 localedir = $(datadir)/locale
3 AM_CPPFLAGS =-I$(LIBDIR)
5 # Large files needed by GPGME
6 AM_CPPFLAGS += -D_FILE_OFFSET_BITS=64 -DLARGEFILE_SOURCE=1 \
7 @XML_CPPFLAGS@ @LIBCURL_CPPFLAGS@ \
8 -DLOCALEDIR=\"$(localedir)\"
9 AM_CFLAGS = -std=c99 -Wall -Werror \
10 @LIBGCRYPT_CFLAGS@ @GPGME_CFLAGS@
11 LDADD = @XML_LIBS@ @LIBCURL@ @LIBGCRYPT_LIBS@ @GPGME_LIBS@ -lexpat @LTLIBINTL@
13 TESTS = compute_hash context init_gpgpme isds_init login \
14 isds-dbtype isds-filemetatype isds-hash_algorithm
17 noinst_PROGRAMS = $(TESTS)
27 $(LIBDIR)/validator.c \
32 $(LIBDIR)/isds_priv.h \
39 isds_common = test.h \
46 $(LIBDIR)/validator.c \
51 $(LIBDIR)/isds_priv.h \
57 # Access _hidden symbols
58 compute_hash_SOURCES = compute_hash.c $(common)
59 context_SOURCES = context.c $(common)
60 init_gpgpme_SOURCES = init_gpgpme.c $(common)
61 isds_init_SOURCES = isds_init.c $(common)
62 login_SOURCES = login.c $(common)
64 # Access static symbols from isds.c
65 isds_dbtype_SOURCES = isds-dbtype.c $(isds_common)
66 isds_filemetatype_SOURCES = isds-filemetatype.c $(isds_common)
67 isds_hash_algorithm_SOURCES = isds-hash_algorithm.c $(isds_common)
69 ## First specific tests
70 ##isds-%.test: isds-%.o
71 ## $(CC) $(LDFLAGS) $< $(filter-out ../src/isds.o,$(OBJS)) -o $@
73 ## Then generic rule. Order is important.
75 ## $(CC) $(LDFLAGS) $< $(OBJS) -o $@