Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 4386d57d45
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 113 lines (93 sloc) 2.164 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
MAINTAINERCLEANFILES = \
Makefile.in

tests_dir = `pwd`/

AM_CFLAGS = \
$(GLIB_CFLAGS) \
$(TLS_CFLAGS) \
$(UUID_CFLAGS) \
$(JSON_CFLAGS) \
$(SOUP_CFLAGS) \
-DTESTS_DIR="\"$(tests_dir)\"" \
-I$(top_srcdir)/evd

if ENABLE_DEBUG
AM_CFLAGS += -g3 -O0 -ggdb
endif

AM_LIBS = \
$(GLIB_LIBS) \
$(TLS_LIBS) \
$(UUID_LIBS) \
$(JSON_LIBS) \
$(SOUP_LIBS) \
-lgcrypt \
$(top_srcdir)/evd/libevd-@EVD_API_VERSION@.la

if HAVE_GIO_UNIX
AM_LIBS += \
$(GIO_UNIX_LIBS)

AM_CFLAGS += \
$(GIO_UNIX_CFLAGS) \
-DHAVE_GIO_UNIX
endif

if ENABLE_TESTS

noinst_PROGRAMS = \
test-all \
test-json-filter \
test-resolver \
test-dbus-bridge \
test-tls-cipher \
test-pki

TESTS = \
test-json-filter \
test-resolver \
test-dbus-bridge \
test-tls-cipher \
test-pki

# test-all
test_all_CFLAGS = $(AM_CFLAGS) -DHAVE_JS
test_all_LDADD = $(AM_LIBS)
test_all_SOURCES = test-all.c

# test-resolver
test_resolver_CFLAGS = $(AM_CFLAGS)
test_resolver_LDADD = $(AM_LIBS)
test_resolver_SOURCES = test-resolver.c

# test-json-filter
test_json_filter_CFLAGS = $(AM_CFLAGS)
test_json_filter_LDADD = $(AM_LIBS)
test_json_filter_SOURCES = test-json-filter.c

# test-json-filter
test_dbus_bridge_CFLAGS = $(AM_CFLAGS)
test_dbus_bridge_LDADD = $(AM_LIBS)
test_dbus_bridge_SOURCES = test-dbus-bridge.c

# test-tls-cipher
test_tls_cipher_CFLAGS = $(AM_CFLAGS)
test_tls_cipher_LDADD = $(AM_LIBS)
test_tls_cipher_SOURCES = test-tls-cipher.c

# test-pki
test_pki_CFLAGS = $(AM_CFLAGS)
test_pki_LDADD = $(AM_LIBS)
test_pki_SOURCES = test-pki.c

if HAVE_JS
noinst_PROGRAMS += test-all-js

# test-all-js
test_all_js_CFLAGS = $(AM_CFLAGS) $(GJS_CFLAGS)
test_all_js_LDADD = $(AM_LIBS) $(GJS_LIBS)
test_all_js_SOURCES = test-all-js.c
endif

endif # ENABLE_TESTS

EXTRA_DIST = \
certs/openpgp-server.asc \
certs/openpgp-server-key.asc \
certs/x509-ca-key.pem \
certs/x509-ca.pem \
certs/x509-jane-key.pem \
certs/x509-jane.p12 \
certs/x509-jane.pem \
certs/x509-mary-key.pem \
certs/x509-mary.p12 \
certs/x509-mary.pem \
certs/x509-server-key.pem \
certs/x509-server.pem \
js/common/assert.js \
js/common/test.js \
js/testResolver.js \
js/testTlsCertificate.js \
dbus-daemon.conf
Something went wrong with that request. Please try again.