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 \
24 isds_list_free isds_pki_credentials_free isds_hash_free \
25 isds_DbOwnerInfo_free isds_DbUserInfo_free isds_event_free \
26 isds-dbtype isds-filemetatype isds-hash_algorithm isds-usertype \
27 isds-datestring2tm isds-tm2datestring \
28 isds-timestring2timeval isds-timeval2timestring \
29 isds-uint2isds_message_status isds-eventstring2event
32 noinst_PROGRAMS = $(TESTS)
34 common = test.c test.h \
42 $(LIBDIR)/validator.c \
48 $(LIBDIR)/isds_priv.h \
55 isds_common = test.c test.h \
62 $(LIBDIR)/validator.c \
67 $(LIBDIR)/isds_priv.h \
73 # Access _hidden symbols
74 b64decode_SOURCES = b64decode.c $(common)
75 b64encode_SOURCES = b64encode.c $(common)
76 compute_hash_SOURCES = compute_hash.c $(common)
77 context_SOURCES = context.c $(common)
78 guess_raw_type_SOURCES = guess_raw_type.c $(common)
79 init_gpgpme_SOURCES = init_gpgpme.c $(common)
80 isds_init_SOURCES = isds_init.c $(common)
81 load_raw_SOURCES = load_raw.c $(common)
82 normalize_mime_type_SOURCES = normalize_mime_type.c $(common)
83 isds_list_free_SOURCES = isds_list_free.c $(common)
84 isds_pki_credentials_free_SOURCES = isds_pki_credentials_free.c $(common)
85 isds_hash_free_SOURCES = isds_hash_free.c $(common)
86 isds_DbOwnerInfo_free_SOURCES = isds_DbOwnerInfo_free.c $(common)
87 isds_DbUserInfo_free_SOURCES = isds_DbUserInfo_free.c $(common)
88 isds_event_free_SOURCES = isds_event_free.c $(common)
90 # Access static symbols from isds.c
91 isds_dbtype_SOURCES = isds-dbtype.c $(isds_common)
92 isds_filemetatype_SOURCES = isds-filemetatype.c $(isds_common)
93 isds_hash_algorithm_SOURCES = isds-hash_algorithm.c $(isds_common)
94 isds_usertype_SOURCES = isds-usertype.c $(isds_common)
95 isds_datestring2tm_SOURCES = isds-datestring2tm.c $(isds_common)
96 isds_tm2datestring_SOURCES = isds-tm2datestring.c $(isds_common)
97 isds_timestring2timeval_SOURCES = isds-timestring2timeval.c $(isds_common)
98 isds_timeval2timestring_SOURCES = isds-timeval2timestring.c $(isds_common)
99 isds_uint2isds_message_status_SOURCES = isds-uint2isds_message_status.c \
101 isds_eventstring2event_SOURCES = isds-eventstring2event.c $(isds_common)
103 ## First specific tests
104 ##isds-%.test: isds-%.o
105 ## $(CC) $(LDFLAGS) $< $(filter-out ../src/isds.o,$(OBJS)) -o $@
107 ## Then generic rule. Order is important.
109 ## $(CC) $(LDFLAGS) $< $(OBJS) -o $@