summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjin-eld <jin at mediatomb dot cc>2013-08-30 13:35:48 +0300
committerjin-eld <jin at mediatomb dot cc>2013-09-01 20:39:02 +0300
commit7d29bd23b99304b8f504dcc7e086a9a3d58443e9 (patch)
tree8fceb471900f3958f5574b55ec110ff92d4c29e4
parentc9116310c828e9a4a029007a55dcd5ae1feb56b2 (diff)
Forward compatibility with automake 1.14
This update makes sure that the build still works with automake prior to 1.12 and at the same time does not give any warnings or errors with automake 1.14
-rw-r--r--Makefile.am1
-rw-r--r--auto_tests/Makefile.inc4
-rw-r--r--build/Makefile.am10
-rw-r--r--configure.ac3
-rw-r--r--other/Makefile.inc6
-rw-r--r--other/bootstrap_serverdaemon/Makefile.inc2
-rw-r--r--testing/Makefile.inc14
-rw-r--r--toxcore/Makefile.inc44
8 files changed, 42 insertions, 42 deletions
diff --git a/Makefile.am b/Makefile.am
index f44b06ee..ac24c6b7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,7 +1,6 @@
1SUBDIRS = build 1SUBDIRS = build
2 2
3ACLOCAL_AMFLAGS = -I m4 3ACLOCAL_AMFLAGS = -I m4
4AUTOMAKE_OPTIONS = subdir-objects
5 4
6pkgconfigdir = $(libdir)/pkgconfig 5pkgconfigdir = $(libdir)/pkgconfig
7pkgconfig_DATA = $(top_builddir)/libtoxcore.pc 6pkgconfig_DATA = $(top_builddir)/libtoxcore.pc
diff --git a/auto_tests/Makefile.inc b/auto_tests/Makefile.inc
index bd883a79..199b61e9 100644
--- a/auto_tests/Makefile.inc
+++ b/auto_tests/Makefile.inc
@@ -5,7 +5,7 @@ TESTS = messenger_autotest crypto_test
5check_PROGRAMS = messenger_autotest crypto_test 5check_PROGRAMS = messenger_autotest crypto_test
6 6
7messenger_autotest_SOURCES = \ 7messenger_autotest_SOURCES = \
8 $(top_srcdir)/auto_tests/messenger_test.c 8 ../auto_tests/messenger_test.c
9 9
10messenger_autotest_CFLAGS = \ 10messenger_autotest_CFLAGS = \
11 $(LIBSODIUM_CFLAGS) \ 11 $(LIBSODIUM_CFLAGS) \
@@ -18,7 +18,7 @@ messenger_autotest_LDADD = \
18 $(CHECK_LIBS) 18 $(CHECK_LIBS)
19 19
20 20
21crypto_test_SOURCES = $(top_srcdir)/auto_tests/crypto_test.c 21crypto_test_SOURCES = ../auto_tests/crypto_test.c
22 22
23crypto_test_CFLAGS = $(LIBSODIUM_CFLAGS) \ 23crypto_test_CFLAGS = $(LIBSODIUM_CFLAGS) \
24 $(CHECK_CFLAGS) 24 $(CHECK_CFLAGS)
diff --git a/build/Makefile.am b/build/Makefile.am
index 5cc735f9..631ec111 100644
--- a/build/Makefile.am
+++ b/build/Makefile.am
@@ -3,8 +3,8 @@ noinst_PROGRAMS =
3noinst_bindir = $(top_builddir)/build 3noinst_bindir = $(top_builddir)/build
4EXTRA_DIST= 4EXTRA_DIST=
5 5
6include $(top_srcdir)/toxcore/Makefile.inc 6include ../toxcore/Makefile.inc
7include $(top_srcdir)/other/Makefile.inc 7include ../other/Makefile.inc
8include $(top_srcdir)/testing/Makefile.inc 8include ../testing/Makefile.inc
9include $(top_srcdir)/other/bootstrap_serverdaemon/Makefile.inc 9include ../other/bootstrap_serverdaemon/Makefile.inc
10include $(top_srcdir)/auto_tests/Makefile.inc 10include ../auto_tests/Makefile.inc
diff --git a/configure.ac b/configure.ac
index a16f6a4f..e82fe1f0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6,7 +6,7 @@ AC_INIT([tox], [0.0.0], [http://tox.im])
6AC_CONFIG_AUX_DIR(configure_aux) 6AC_CONFIG_AUX_DIR(configure_aux)
7AC_CONFIG_SRCDIR([toxcore/net_crypto.c]) 7AC_CONFIG_SRCDIR([toxcore/net_crypto.c])
8AC_CONFIG_HEADERS([config.h]) 8AC_CONFIG_HEADERS([config.h])
9AM_INIT_AUTOMAKE([1.10 -Wall]) 9AM_INIT_AUTOMAKE([1.10 -Wall subdir-objects])
10m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) 10m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
11AC_CONFIG_MACRO_DIR([m4]) 11AC_CONFIG_MACRO_DIR([m4])
12 12
@@ -107,6 +107,7 @@ AC_ARG_WITH(libsodium-libs,
107# Checks for programs. 107# Checks for programs.
108AC_PROG_CC 108AC_PROG_CC
109AM_PROG_CC_C_O 109AM_PROG_CC_C_O
110m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
110AC_LIBTOOL_WIN32_DLL 111AC_LIBTOOL_WIN32_DLL
111AC_PROG_LIBTOOL 112AC_PROG_LIBTOOL
112 113
diff --git a/other/Makefile.inc b/other/Makefile.inc
index 7442fb39..2703f26a 100644
--- a/other/Makefile.inc
+++ b/other/Makefile.inc
@@ -1,8 +1,8 @@
1noinst_PROGRAMS += DHT_bootstrap 1noinst_PROGRAMS += DHT_bootstrap
2 2
3DHT_bootstrap_SOURCES = $(top_srcdir)/other/DHT_bootstrap.c \ 3DHT_bootstrap_SOURCES = ../other/DHT_bootstrap.c \
4 $(top_srcdir)/toxcore/DHT.h \ 4 ../toxcore/DHT.h \
5 $(top_srcdir)/toxcore/friend_requests.h 5 ../toxcore/friend_requests.h
6 6
7DHT_bootstrap_CFLAGS = -I$(top_srcdir)/other \ 7DHT_bootstrap_CFLAGS = -I$(top_srcdir)/other \
8 $(LIBSODIUM_CFLAGS) 8 $(LIBSODIUM_CFLAGS)
diff --git a/other/bootstrap_serverdaemon/Makefile.inc b/other/bootstrap_serverdaemon/Makefile.inc
index 1320b761..2eaf7b9c 100644
--- a/other/bootstrap_serverdaemon/Makefile.inc
+++ b/other/bootstrap_serverdaemon/Makefile.inc
@@ -3,7 +3,7 @@ if BUILD_DHT_BOOTSTRAP_DAEMON
3noinst_PROGRAMS += DHT_bootstrap_daemon 3noinst_PROGRAMS += DHT_bootstrap_daemon
4 4
5DHT_bootstrap_daemon_SOURCES = \ 5DHT_bootstrap_daemon_SOURCES = \
6 $(top_srcdir)/other/bootstrap_serverdaemon/DHT_bootstrap_daemon.c 6 ../other/bootstrap_serverdaemon/DHT_bootstrap_daemon.c
7 7
8DHT_bootstrap_daemon_CFLAGS = \ 8DHT_bootstrap_daemon_CFLAGS = \
9 -I$(top_srcdir)/other/bootstrap_serverdaemon \ 9 -I$(top_srcdir)/other/bootstrap_serverdaemon \
diff --git a/testing/Makefile.inc b/testing/Makefile.inc
index 99c203c8..9229f917 100644
--- a/testing/Makefile.inc
+++ b/testing/Makefile.inc
@@ -2,8 +2,8 @@ if BUILD_NTOX
2 2
3bin_PROGRAMS += nTox 3bin_PROGRAMS += nTox
4 4
5nTox_SOURCES = $(top_srcdir)/testing/nTox.h \ 5nTox_SOURCES = ../testing/nTox.h \
6 $(top_srcdir)/testing/nTox.c 6 ../testing/nTox.c
7 7
8nTox_CFLAGS = $(LIBSODIUM_CFLAGS) \ 8nTox_CFLAGS = $(LIBSODIUM_CFLAGS) \
9 $(NCURSES_CFLAGS) 9 $(NCURSES_CFLAGS)
@@ -22,7 +22,7 @@ noinst_PROGRAMS += DHT_test \
22 Messenger_test \ 22 Messenger_test \
23 crypto_speed_test 23 crypto_speed_test
24 24
25DHT_test_SOURCES = $(top_srcdir)/testing/DHT_test.c 25DHT_test_SOURCES = ../testing/DHT_test.c
26 26
27DHT_test_CFLAGS = $(LIBSODIUM_CFLAGS) 27DHT_test_CFLAGS = $(LIBSODIUM_CFLAGS)
28 28
@@ -33,7 +33,7 @@ DHT_test_LDADD = $(LIBSODIUM_LDFLAGS) \
33 33
34 34
35Lossless_UDP_testclient_SOURCES = \ 35Lossless_UDP_testclient_SOURCES = \
36 $(top_srcdir)/testing/Lossless_UDP_testclient.c 36 ../testing/Lossless_UDP_testclient.c
37 37
38Lossless_UDP_testclient_CFLAGS = \ 38Lossless_UDP_testclient_CFLAGS = \
39 $(LIBSODIUM_CFLAGS) 39 $(LIBSODIUM_CFLAGS)
@@ -46,7 +46,7 @@ Lossless_UDP_testclient_LDADD = \
46 46
47 47
48Lossless_UDP_testserver_SOURCES = \ 48Lossless_UDP_testserver_SOURCES = \
49 $(top_srcdir)/testing/Lossless_UDP_testserver.c 49 ../testing/Lossless_UDP_testserver.c
50 50
51Lossless_UDP_testserver_CFLAGS = \ 51Lossless_UDP_testserver_CFLAGS = \
52 $(LIBSODIUM_CFLAGS) 52 $(LIBSODIUM_CFLAGS)
@@ -59,7 +59,7 @@ Lossless_UDP_testserver_LDADD = \
59 59
60 60
61Messenger_test_SOURCES = \ 61Messenger_test_SOURCES = \
62 $(top_srcdir)/testing/Messenger_test.c 62 ../testing/Messenger_test.c
63 63
64Messenger_test_CFLAGS = $(LIBSODIUM_CFLAGS) 64Messenger_test_CFLAGS = $(LIBSODIUM_CFLAGS)
65 65
@@ -70,7 +70,7 @@ Messenger_test_LDADD = $(LIBSODIUM_LDFLAGS) \
70 70
71 71
72crypto_speed_test_SOURCES = \ 72crypto_speed_test_SOURCES = \
73 $(top_srcdir)/testing/crypto_speed_test.c 73 ../testing/crypto_speed_test.c
74 74
75crypto_speed_test_CFLAGS = \ 75crypto_speed_test_CFLAGS = \
76 $(LIBSODIUM_CFLAGS) 76 $(LIBSODIUM_CFLAGS)
diff --git a/toxcore/Makefile.inc b/toxcore/Makefile.inc
index d79a7e1c..23584953 100644
--- a/toxcore/Makefile.inc
+++ b/toxcore/Makefile.inc
@@ -1,31 +1,31 @@
1lib_LTLIBRARIES = libtoxcore.la 1lib_LTLIBRARIES = libtoxcore.la
2 2
3libtoxcore_la_include_HEADERS = \ 3libtoxcore_la_include_HEADERS = \
4 $(top_srcdir)/toxcore/tox.h 4 ../toxcore/tox.h
5 5
6libtoxcore_la_includedir = $(includedir)/tox 6libtoxcore_la_includedir = $(includedir)/tox
7 7
8libtoxcore_la_SOURCES = $(top_srcdir)/toxcore/DHT.h \ 8libtoxcore_la_SOURCES = ../toxcore/DHT.h \
9 $(top_srcdir)/toxcore/DHT.c \ 9 ../toxcore/DHT.c \
10 $(top_srcdir)/toxcore/network.h \ 10 ../toxcore/network.h \
11 $(top_srcdir)/toxcore/network.c \ 11 ../toxcore/network.c \
12 $(top_srcdir)/toxcore/Lossless_UDP.h \ 12 ../toxcore/Lossless_UDP.h \
13 $(top_srcdir)/toxcore/Lossless_UDP.c \ 13 ../toxcore/Lossless_UDP.c \
14 $(top_srcdir)/toxcore/net_crypto.h \ 14 ../toxcore/net_crypto.h \
15 $(top_srcdir)/toxcore/net_crypto.c \ 15 ../toxcore/net_crypto.c \
16 $(top_srcdir)/toxcore/friend_requests.h \ 16 ../toxcore/friend_requests.h \
17 $(top_srcdir)/toxcore/friend_requests.c \ 17 ../toxcore/friend_requests.c \
18 $(top_srcdir)/toxcore/LAN_discovery.h \ 18 ../toxcore/LAN_discovery.h \
19 $(top_srcdir)/toxcore/LAN_discovery.c \ 19 ../toxcore/LAN_discovery.c \
20 $(top_srcdir)/toxcore/Messenger.h \ 20 ../toxcore/Messenger.h \
21 $(top_srcdir)/toxcore/Messenger.c \ 21 ../toxcore/Messenger.c \
22 $(top_srcdir)/toxcore/ping.h \ 22 ../toxcore/ping.h \
23 $(top_srcdir)/toxcore/ping.c \ 23 ../toxcore/ping.c \
24 $(top_srcdir)/toxcore/tox.h \ 24 ../toxcore/tox.h \
25 $(top_srcdir)/toxcore/tox.c \ 25 ../toxcore/tox.c \
26 $(top_srcdir)/toxcore/util.h \ 26 ../toxcore/util.h \
27 $(top_srcdir)/toxcore/util.c \ 27 ../toxcore/util.c \
28 $(top_srcdir)/toxcore/misc_tools.h 28 ../toxcore/misc_tools.h
29 29
30libtoxcore_la_CFLAGS = -I$(top_srcdir) \ 30libtoxcore_la_CFLAGS = -I$(top_srcdir) \
31 -I$(top_srcdir)/toxcore \ 31 -I$(top_srcdir)/toxcore \