summaryrefslogtreecommitdiff
path: root/src/dnsstub
diff options
context:
space:
mode:
authorJannis Hoffmann <jannis@fehcom.de>2024-07-11 13:49:50 +0200
committerJannis Hoffmann <jannis@fehcom.de>2024-07-11 13:49:50 +0200
commit339954714f69bbd395aa9bbe46850dcaa98e9f29 (patch)
tree00b17e206e3acc35303d24f6a1e76bf2de8c5664 /src/dnsstub
parent08ce54211ce4b8d6092321ca1b28773a680ddc45 (diff)
convert form make to meson
Add .editorconfig. Removed unused fallback definitions (for POSIX systems).
Diffstat (limited to 'src/dnsstub')
-rw-r--r--src/dnsstub/Makefile23
-rw-r--r--src/dnsstub/TARGETS18
-rw-r--r--src/dnsstub/meson.build24
3 files changed, 24 insertions, 41 deletions
diff --git a/src/dnsstub/Makefile b/src/dnsstub/Makefile
deleted file mode 100644
index ee7f94d..0000000
--- a/src/dnsstub/Makefile
+++ /dev/null
@@ -1,23 +0,0 @@
-
-COMPILE=../compile
-MAKELIB=../makelib
-CCFLAGS=-I../../include
-
-default: clean check dnsresolv.a
-
-check:
- @[ -f $(COMPILE) ] && [ -f $(MAKELIB) ] || ( cd .. ; ./configure ; )
-
-clean:
- rm -f `cat TARGETS`
-
-dnsresolv.a: \
-dns_domain.c dns_dtda.c dns_ip.c dns_ipq.c dns_name.c \
-dns_nd.c dns_packet.c dns_random.c dns_rcip.c dns_rcrw.c dns_resolve.c \
-dns_sortip.c dns_transmit.c dns_txt.c
- $(COMPILE) $(CCFLAGS) dns_domain.c dns_dfd.c dns_dtda.c dns_ip.c dns_ipq.c \
- dns_mx.c dns_name.c dns_nd.c dns_packet.c dns_random.c dns_rcip.c \
- dns_rcrw.c dns_resolve.c dns_sortip.c dns_transmit.c dns_txt.c dns_cname.c
- $(MAKELIB) dnsresolv.a dns_domain.o dns_dfd.o dns_dtda.o dns_ip.o dns_ipq.o \
- dns_mx.o dns_name.o dns_nd.o dns_packet.o dns_random.o dns_rcip.o \
- dns_rcrw.o dns_resolve.o dns_sortip.o dns_transmit.o dns_txt.o dns_cname.o
diff --git a/src/dnsstub/TARGETS b/src/dnsstub/TARGETS
deleted file mode 100644
index 62f40be..0000000
--- a/src/dnsstub/TARGETS
+++ /dev/null
@@ -1,18 +0,0 @@
-dns_cname.o
-dns_dfd.o
-dns_domain.o
-dns_dtda.o
-dns_ip.o
-dns_ipq.o
-dns_mx.o
-dns_name.o
-dns_nd.o
-dns_packet.o
-dns_random.o
-dns_rcip.o
-dns_rcrw.o
-dns_resolve.o
-dns_sortip.o
-dns_transmit.o
-dns_txt.o
-dnsresolv.a
diff --git a/src/dnsstub/meson.build b/src/dnsstub/meson.build
new file mode 100644
index 0000000..e1a6cf0
--- /dev/null
+++ b/src/dnsstub/meson.build
@@ -0,0 +1,24 @@
+dnsresolv_srcs = [
+ 'dns_cname.c',
+ 'dns_dfd.c',
+ 'dns_domain.c',
+ 'dns_dtda.c',
+ 'dns_ip.c',
+ 'dns_ipq.c',
+ 'dns_mx.c',
+ 'dns_name.c',
+ 'dns_nd.c',
+ 'dns_packet.c',
+ 'dns_random.c',
+ 'dns_rcip.c',
+ 'dns_rcrw.c',
+ 'dns_resolve.c',
+ 'dns_sortip.c',
+ 'dns_transmit.c',
+ 'dns_txt.c',
+]
+
+dnsresolv_lib = library('dnsresolv', dnsresolv_srcs,
+ install : true,
+ link_with : qlibs_lib,
+ include_directories : qlibs_inc)