@@ -11,7 +11,7 @@ SSL_LIBS = @openssl_LIBS@
1111
1212RESOLV_LIBS = @RESOLV_LIBS@
1313
14- MESODE_FLAGS = -I$(top_srcdir )
14+ MESODE_FLAGS = -I$(top_srcdir ) -Wall -Wextra -Wno-unused-parameter
1515MESODE_LIBS = libmesode.la
1616
1717# # Main build targets
@@ -21,14 +21,42 @@ libmesode_la_CFLAGS = $(SSL_CFLAGS) $(MESODE_FLAGS) $(PARSER_CFLAGS)
2121libmesode_la_LDFLAGS = $(SSL_LIBS ) $(PARSER_LIBS ) $(RESOLV_LIBS ) -no-undefined
2222# Export only public API
2323libmesode_la_LDFLAGS += -export-symbols-regex '^xmpp_'
24- libmesode_la_SOURCES = src/auth.c src/conn.c src/crypto.c src/ctx.c \
25- src/event.c src/handler.c src/hash.c src/jid.c src/md5.c \
26- src/resolver.c src/sasl.c src/scram.c src/sha1.c \
27- src/snprintf.c src/sock.c src/stanza.c src/util.c \
28- src/rand.c src/uuid.c \
29- src/common.h src/hash.h src/md5.h src/ostypes.h src/parser.h \
30- src/resolver.h src/sasl.h src/scram.h src/sha1.h src/snprintf.h \
31- src/sock.h src/tls.h src/util.h src/rand.h
24+
25+ libmesode_la_SOURCES = \
26+ src/auth.c \
27+ src/conn.c \
28+ src/crypto.c \
29+ src/ctx.c \
30+ src/event.c \
31+ src/handler.c \
32+ src/hash.c \
33+ src/jid.c \
34+ src/md5.c \
35+ src/rand.c \
36+ src/resolver.c \
37+ src/sasl.c \
38+ src/scram.c \
39+ src/sha1.c \
40+ src/snprintf.c \
41+ src/sock.c \
42+ src/stanza.c \
43+ src/util.c \
44+ src/uuid.c
45+ libmesode_la_SOURCES += \
46+ src/common.h \
47+ src/hash.h \
48+ src/md5.h \
49+ src/ostypes.h \
50+ src/parser.h \
51+ src/rand.h \
52+ src/resolver.h \
53+ src/sasl.h \
54+ src/scram.h \
55+ src/sha1.h \
56+ src/snprintf.h \
57+ src/sock.h \
58+ src/tls.h \
59+ src/util.h
3260
3361if DISABLE_TLS
3462libmesode_la_SOURCES += src/tls_dummy.c
@@ -42,19 +70,32 @@ include_HEADERS = mesode.h
4270
4371pkgconfig_DATA = libmesode.pc
4472
45- EXTRA_DIST = docs rpm Doxyfile LICENSE.txt GPL-LICENSE.txt MIT-LICENSE.txt \
46- src/tls_dummy.c src/tls_gnutls.c src/tls_schannel.c \
47- examples/README.md
73+ EXTRA_DIST = \
74+ Doxyfile \
75+ GPL-LICENSE.txt \
76+ LICENSE.txt \
77+ MIT-LICENSE.txt \
78+ bootstrap.sh \
79+ build-android.sh \
80+ docs/footer.html \
81+ examples/README.md \
82+ jni/Android.mk \
83+ jni/Application.mk \
84+ tests/res_query_dump.c
4885
4986# # Examples
50- noinst_PROGRAMS = examples/active examples/roster examples/basic examples/bot \
51- examples/component examples/uuid
87+ noinst_PROGRAMS = \
88+ examples/active \
89+ examples/basic \
90+ examples/bot \
91+ examples/component \
92+ examples/roster \
93+ examples/uuid \
94+ examples/vcard
95+
5296examples_active_SOURCES = examples/active.c
5397examples_active_CFLAGS = $(MESODE_FLAGS )
5498examples_active_LDADD = $(MESODE_LIBS )
55- examples_roster_SOURCES = examples/roster.c
56- examples_roster_CFLAGS = $(MESODE_FLAGS )
57- examples_roster_LDADD = $(MESODE_LIBS )
5899examples_basic_SOURCES = examples/basic.c
59100examples_basic_CFLAGS = $(MESODE_FLAGS )
60101examples_basic_LDADD = $(MESODE_LIBS )
@@ -64,14 +105,31 @@ examples_bot_LDADD = $(MESODE_LIBS)
64105examples_component_SOURCES = examples/component.c
65106examples_component_CFLAGS = $(MESODE_FLAGS )
66107examples_component_LDADD = $(MESODE_LIBS )
108+ examples_roster_SOURCES = examples/roster.c
109+ examples_roster_CFLAGS = $(MESODE_FLAGS )
110+ examples_roster_LDADD = $(MESODE_LIBS )
67111examples_uuid_SOURCES = examples/uuid.c
68112examples_uuid_CFLAGS = $(MESODE_FLAGS )
69113examples_uuid_LDADD = $(MESODE_LIBS )
114+ examples_vcard_SOURCES = examples/vcard.c
115+ examples_vcard_CFLAGS = $(MESODE_FLAGS )
116+ examples_vcard_LDADD = $(MESODE_LIBS )
70117
71118# # Tests
72- TESTS = tests/check_parser tests/test_sha1 tests/test_md5 tests/test_rand \
73- tests/test_scram tests/test_ctx tests/test_base64 tests/test_jid \
74- tests/test_snprintf tests/test_string tests/test_resolver
119+ TESTS = \
120+ tests/check_parser \
121+ tests/test_sha1 \
122+ tests/test_md5 \
123+ tests/test_rand \
124+ tests/test_scram \
125+ tests/test_ctx \
126+ tests/test_base64 \
127+ tests/test_hash \
128+ tests/test_jid \
129+ tests/test_snprintf \
130+ tests/test_string \
131+ tests/test_resolver
132+
75133check_PROGRAMS = $(TESTS )
76134
77135tests_check_parser_SOURCES = tests/check_parser.c tests/test.h
@@ -90,6 +148,11 @@ tests_test_base64_CFLAGS = $(MESODE_FLAGS) -I$(top_srcdir)/src
90148tests_test_base64_LDADD = $(MESODE_LIBS )
91149tests_test_base64_LDFLAGS = -static
92150
151+ tests_test_hash_SOURCES = tests/test_hash.c
152+ tests_test_hash_CFLAGS = $(MESODE_FLAGS ) -I$(top_srcdir ) /src
153+ tests_test_hash_LDADD = $(MESODE_LIBS )
154+ tests_test_hash_LDFLAGS = -static
155+
93156tests_test_jid_SOURCES = tests/test_jid.c
94157tests_test_jid_CFLAGS = $(MESODE_FLAGS ) -I$(top_srcdir ) /src
95158tests_test_jid_LDADD = $(MESODE_LIBS )
0 commit comments