File: Makefile.am

package info (click to toggle)
event-dance 0.2.0-8~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,096 kB
  • sloc: ansic: 29,033; javascript: 2,709; makefile: 434; xml: 247; sh: 30; python: 27
file content (129 lines) | stat: -rw-r--r-- 2,672 bytes parent folder | download | duplicates (3)
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
MAINTAINERCLEANFILES = \
	Makefile.in

tests_dir = `cd "$(top_srcdir)/tests" && pwd`/

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

if ENABLE_TESTS
AM_CFLAGS += -DENABLE_TESTS
endif

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

AM_LIBS = \
	$(GLIB_LIBS) \
	$(TLS_LIBS) \
	$(UUID_LIBS) \
	$(JSON_LIBS) \
	$(SOUP_LIBS) \
	$(top_builddir)/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-pki \
	test-websocket-transport \
	test-io-stream-group \
	test-promise

TESTS = \
	test-json-filter \
	test-resolver \
	test-dbus-bridge \
	test-pki \
	test-websocket-transport \
	test-io-stream-group \
	test-promise

# 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-pki
test_pki_CFLAGS = $(AM_CFLAGS)
test_pki_LDADD = $(AM_LIBS)
test_pki_SOURCES = test-pki.c

# test-websocket-transport
test_websocket_transport_CFLAGS = $(AM_CFLAGS)
test_websocket_transport_LDADD = $(AM_LIBS)
test_websocket_transport_SOURCES = test-websocket-transport.c

# test-io-stream-group
test_io_stream_group_CFLAGS = $(AM_CFLAGS)
test_io_stream_group_LDADD = $(AM_LIBS)
test_io_stream_group_SOURCES = test-io-stream-group.c

# test-promise
test_promise_CFLAGS = $(AM_CFLAGS)
test_promise_LDADD = $(AM_LIBS)
test_promise_SOURCES = test-promise.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