1 AUTOMAKE_OPTIONS = color-tests parallel-tests
9 LIBDIR = $(top_srcdir)/$(libdirpath)
10 localedir = $(datadir)/locale
11 AM_CPPFLAGS = -I$(LIBDIR) -I$(top_builddir)/$(libdirpath) \
12 -DSRCDIR=\"$(top_srcdir)\"
14 # Large files needed by GPGME
15 AM_CPPFLAGS += @XML_CPPFLAGS@ @LIBCURL_CPPFLAGS@ \
16 -DLOCALEDIR=\"$(localedir)\"
17 AM_CFLAGS = @LIBGCRYPT_CFLAGS@ @GPGME_CFLAGS@
18 LDADD = @XML_LIBS@ @LIBCURL@ @LIBGCRYPT_LIBS@ @GPGME_LIBS@ @EXPAT_LIBS@ \
21 TESTS = b64decode b64encode \
22 compute_hash context guess_raw_type init_gpgpme isds_init load_raw \
23 normalize_mime_type isds_list_free \
24 isds-dbtype isds-filemetatype isds-hash_algorithm isds-usertype \
25 isds-datestring2tm isds-tm2datestring \
26 isds-timestring2timeval isds-timeval2timestring \
27 isds-uint2isds_message_status isds-eventstring2event
30 noinst_PROGRAMS = $(TESTS)
32 common = test.c test.h \
40 $(LIBDIR)/validator.c \
46 $(LIBDIR)/isds_priv.h \
53 isds_common = test.c test.h \
60 $(LIBDIR)/validator.c \
65 $(LIBDIR)/isds_priv.h \
71 # Access _hidden symbols
72 b64decode_SOURCES = b64decode.c $(common)
73 b64encode_SOURCES = b64encode.c $(common)
74 compute_hash_SOURCES = compute_hash.c $(common)
75 context_SOURCES = context.c $(common)
76 guess_raw_type_SOURCES = guess_raw_type.c $(common)
77 init_gpgpme_SOURCES = init_gpgpme.c $(common)
78 isds_init_SOURCES = isds_init.c $(common)
79 load_raw_SOURCES = load_raw.c $(common)
80 normalize_mime_type_SOURCES = normalize_mime_type.c $(common)
81 isds_list_free_SOURCES = isds_list_free.c $(common)
83 # Access static symbols from isds.c
84 isds_dbtype_SOURCES = isds-dbtype.c $(isds_common)
85 isds_filemetatype_SOURCES = isds-filemetatype.c $(isds_common)
86 isds_hash_algorithm_SOURCES = isds-hash_algorithm.c $(isds_common)
87 isds_usertype_SOURCES = isds-usertype.c $(isds_common)
88 isds_datestring2tm_SOURCES = isds-datestring2tm.c $(isds_common)
89 isds_tm2datestring_SOURCES = isds-tm2datestring.c $(isds_common)
90 isds_timestring2timeval_SOURCES = isds-timestring2timeval.c $(isds_common)
91 isds_timeval2timestring_SOURCES = isds-timeval2timestring.c $(isds_common)
92 isds_uint2isds_message_status_SOURCES = isds-uint2isds_message_status.c \
94 isds_eventstring2event_SOURCES = isds-eventstring2event.c $(isds_common)
96 ## First specific tests
97 ##isds-%.test: isds-%.o
98 ## $(CC) $(LDFLAGS) $< $(filter-out ../src/isds.o,$(OBJS)) -o $@
100 ## Then generic rule. Order is important.
102 ## $(CC) $(LDFLAGS) $< $(OBJS) -o $@