add cheapass arp
[openwrt.git] / obsolete-buildroot / make / ntpclient.mk
1 #############################################################
2 #
3 # ntpclient
4 #
5 #############################################################
6 NTPCLIENT_VERSION:=2003_194
7 NTPCLIENT_SOURCE:=ntpclient_$(NTPCLIENT_VERSION).tar.gz
8 NTPCLIENT_SITE:=http://doolittle.faludi.com/ntpclient
9 NTPCLIENT_DIR:=$(BUILD_DIR)/ntpclient
10 NTPCLIENT_IPK=$(BUILD_DIR)/ntpclient_$(NTPCLIENT_VERSION)-1_mipsel.ipk
11 NTPCLIENT_IPK_DIR:=$(BUILD_DIR)/ntpclient-$(NTPCLIENT_VERSION)-ipk
12
13 $(DL_DIR)/$(NTPCLIENT_SOURCE):
14 $(WGET) -P $(DL_DIR) $(NTPCLIENT_SITE)/$(NTPCLIENT_SOURCE)
15
16 ntpclient-source: $(DL_DIR)/$(NTPCLIENT_SOURCE)
17
18 $(NTPCLIENT_DIR)/.unpacked: $(DL_DIR)/$(NTPCLIENT_SOURCE)
19 tar -C $(BUILD_DIR) -zxf $(DL_DIR)/$(NTPCLIENT_SOURCE)
20 touch $(NTPCLIENT_DIR)/.unpacked
21
22 $(NTPCLIENT_DIR)/ntpclient: $(NTPCLIENT_DIR)/.unpacked
23 CFLAGS="$(TARGET_CFLAGS)" $(MAKE) $(TARGET_CONFIGURE_OPTS) LD=$(TARGET_CC) -C $(NTPCLIENT_DIR)
24
25 $(NTPCLIENT_IPK): $(NTPCLIENT_DIR)/ntpclient
26 mkdir -p $(NTPCLIENT_IPK_DIR)/CONTROL $(NTPCLIENT_IPK_DIR)/usr/sbin
27 install -m 644 $(OPENWRT_IPK_DIR)/ntpclient/CONTROL/control $(NTPCLIENT_IPK_DIR)/CONTROL
28 install -m 755 $(NTPCLIENT_DIR)/ntpclient $(NTPCLIENT_IPK_DIR)/usr/sbin/
29 $(STRIP) $(NTPCLIENT_IPK_DIR)/usr/sbin/ntpclient
30 cd $(BUILD_DIR); $(IPKG_BUILD) $(NTPCLIENT_IPK_DIR)
31
32 ntpclient-ipk : uclibc $(NTPCLIENT_IPK)
33
34 ntpclient-clean:
35 -$(MAKE) -C $(NTPCLIENT_DIR) clean
36
37 ntpclient-dirclean:
38 rm -rf $(NTPCLIENT_DIR) $(NTPCLIENT_IPK_DIR)
This page took 0.04152 seconds and 5 git commands to generate.