summaryrefslogtreecommitdiff
path: root/libs/libtox/src/toxdns/Makefile.inc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libtox/src/toxdns/Makefile.inc')
-rw-r--r--libs/libtox/src/toxdns/Makefile.inc35
1 files changed, 35 insertions, 0 deletions
diff --git a/libs/libtox/src/toxdns/Makefile.inc b/libs/libtox/src/toxdns/Makefile.inc
new file mode 100644
index 0000000000..5b7c012320
--- /dev/null
+++ b/libs/libtox/src/toxdns/Makefile.inc
@@ -0,0 +1,35 @@
+lib_LTLIBRARIES += libtoxdns.la
+
+libtoxdns_la_include_HEADERS = \
+ ../toxdns/toxdns.h
+
+libtoxdns_la_includedir = $(includedir)/tox
+
+libtoxdns_la_SOURCES = ../toxdns/toxdns.h \
+ ../toxdns/toxdns.c
+
+libtoxdns_la_CFLAGS = -I$(top_srcdir) \
+ -I$(top_srcdir)/toxcore \
+ $(LIBSODIUM_CFLAGS) \
+ $(NACL_CFLAGS) \
+ $(PTHREAD_CFLAGS)
+
+libtoxdns_la_LDFLAGS = $(LT_LDFLAGS) \
+ $(EXTRA_LT_LDFLAGS) \
+ $(LIBSODIUM_LDFLAGS) \
+ $(NACL_LDFLAGS) \
+ $(MATH_LDFLAGS) \
+ $(RT_LIBS) \
+ $(WINSOCK2_LIBS)
+
+libtoxdns_la_LIBADD = $(LIBSODIUM_LIBS) \
+ $(NACL_OBJECTS) \
+ $(NAC_LIBS) \
+ $(PTHREAD_LIBS) \
+ libtoxcore.la
+
+if SET_SO_VERSION
+
+EXTRA_libtoxdns_la_DEPENDENCIES = ../so.version
+
+endif