make wificonf set wl0_ifname on startup
[openwrt.git] / obsolete-buildroot / make / dnsmasq.mk
1 #############################################################
2 #
3 # dnsmasq
4 #
5 #############################################################
6
7 DNSMASQ_SITE=http://thekelleys.org.uk/dnsmasq
8 ifeq ($(filter $(TARGETS),dnsmasq1),)
9 DNSMASQ_SOURCE=dnsmasq-2.19.tar.gz
10 DNSMASQ_DIR=$(BUILD_DIR)/dnsmasq-2.19
11 DNSMASQ_VER=dnsmasq2
12 else
13 DNSMASQ_SOURCE=dnsmasq-1.18.tar.gz
14 DNSMASQ_DIR=$(BUILD_DIR)/dnsmasq-1.18
15 DNSMASQ_VER=dnsmasq1
16 endif
17 DNSMASQ_BINARY=dnsmasq
18 DNSMASQ_TARGET_BINARY=usr/sbin/dnsmasq
19
20 $(DL_DIR)/$(DNSMASQ_SOURCE):
21 $(WGET) -P $(DL_DIR) $(DNSMASQ_SITE)/$(DNSMASQ_SOURCE)
22
23 $(DNSMASQ_DIR)/.source: $(DL_DIR)/$(DNSMASQ_SOURCE)
24 zcat $(DL_DIR)/$(DNSMASQ_SOURCE) | tar -C $(BUILD_DIR) -xvf -
25 $(SOURCE_DIR)/patch-kernel.sh $(DNSMASQ_DIR) $(SOURCE_DIR) \
26 $(DNSMASQ_VER)-*.patch
27 touch $(DNSMASQ_DIR)/.source
28
29 $(DNSMASQ_DIR)/$(DNSMASQ_BINARY): $(DNSMASQ_DIR)/.source
30 $(MAKE) CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)" \
31 BINDIR=/usr/sbin MANDIR=/usr/man -C $(DNSMASQ_DIR)
32
33 $(TARGET_DIR)/$(DNSMASQ_TARGET_BINARY): $(DNSMASQ_DIR)/$(DNSMASQ_BINARY)
34 $(MAKE) BINDIR=/usr/sbin MANDIR=/usr/man \
35 DESTDIR=$(TARGET_DIR) -C $(DNSMASQ_DIR) install
36 $(STRIP) $(TARGET_DIR)/$(DNSMASQ_TARGET_BINARY)
37 rm -rf $(TARGET_DIR)/usr/man
38
39 dnsmasq: uclibc $(TARGET_DIR)/$(DNSMASQ_TARGET_BINARY)
40
41 dnsmasq1: uclibc $(TARGET_DIR)/$(DNSMASQ_TARGET_BINARY)
42
43 dnsmasq-source: $(DL_DIR)/$(DNSMASQ_SOURCE)
44
45 dnsmasq-clean:
46 #$(MAKE) prefix=$(TARGET_DIR)/usr -C $(DNSMASQ_DIR) uninstall
47 -$(MAKE) -C $(DNSMASQ_DIR) clean
48
49 dnsmasq-dirclean:
50 rm -rf $(DNSMASQ_DIR)
This page took 0.048805 seconds and 5 git commands to generate.