summaryrefslogtreecommitdiff
path: root/src/dnsstub/Makefile
blob: 6963fe05fa2a0905e54d01f1e4d1053f95455ac6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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