upgrade wireless-tools and iproute2
[openwrt.git] / target / lzma-loader / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME := loader
6 PKG_VERSION := 0.04
7 PKG_MD5SUM := c0b7c36232d3910c425d03e56d0f532b
8
9 PKG_SOURCE_SITE := http://wl500g.dyndns.org/loader/
10 PKG_SOURCE_FILE := $(PKG_NAME)-$(PKG_VERSION).tar.gz
11 PKG_SOURCE_CAT := zcat
12 PKG_SOURCE_DIR := $(PKG_NAME)-$(PKG_VERSION)
13 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_SOURCE_DIR)
14
15 $(DL_DIR)/$(PKG_SOURCE_FILE):
16 mkdir -p $(DL_DIR)
17 $(SCRIPT_DIR)/download.pl $(DL_DIR) $(PKG_SOURCE_FILE) $(PKG_MD5SUM) $(PKG_SOURCE_SITE)
18
19 $(PKG_BUILD_DIR)/.patched: $(DL_DIR)/$(PKG_SOURCE_FILE)
20 mkdir -p $(TOOL_BUILD_DIR)
21 $(PKG_SOURCE_CAT) $(DL_DIR)/$(PKG_SOURCE_FILE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
22 $(PATCH) $(PKG_BUILD_DIR) ./patches
23 touch $(PKG_BUILD_DIR)/.patched
24
25 $(PKG_BUILD_DIR)/loader.gz: $(PKG_BUILD_DIR)/.patched
26 $(MAKE) -C $(PKG_BUILD_DIR) CC=$(TARGET_CC) \
27 LD=$(TARGET_CROSS)ld CROSS_COMPILE=$(TARGET_CROSS)
28
29 $(BUILD_DIR)/loader.gz: $(PKG_BUILD_DIR)/loader.gz
30 cp $< $@
31
32 source: $(DL_DIR)/$(PKG_SOURCE_FILE)
33 prepare: $(PKG_BUILD_DIR)/.patched
34 compile: $(BUILD_DIR)/loader.gz
35 install:
36
37 clean:
38 rm -rf $(PKG_BUILD_DIR)
39 rm -f $(BUILD_DIR)/loader.gz
This page took 0.040764 seconds and 5 git commands to generate.