add pattern for AG214
[openwrt.git] / openwrt / target / linux / image / brcm / lzma-loader / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME := loader
6 PKG_VERSION := 0.04
7
8 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
9
10 $(PKG_BUILD_DIR)/.prepared:
11 mkdir $(PKG_BUILD_DIR)
12 cp -fpR ./src/* $(PKG_BUILD_DIR)/
13 touch $@
14
15 $(PKG_BUILD_DIR)/loader.gz: $(PKG_BUILD_DIR)/.prepared
16 $(MAKE) -C $(PKG_BUILD_DIR) CC=$(TARGET_CC) \
17 LD=$(TARGET_CROSS)ld CROSS_COMPILE=$(TARGET_CROSS)
18
19 $(BUILD_DIR)/loader.gz: $(PKG_BUILD_DIR)/loader.gz
20 cp $< $@
21
22 $(BUILD_DIR)/loader.elf: $(PKG_BUILD_DIR)/loader.o
23 cp $< $@
24
25 source:
26 prepare: $(PKG_BUILD_DIR)/.prepared
27 compile: $(BUILD_DIR)/loader.gz $(BUILD_DIR)/loader.elf
28 install:
29
30 clean:
31 rm -rf $(PKG_BUILD_DIR)
32 rm -f $(BUILD_DIR)/loader.gz
This page took 0.054424 seconds and 5 git commands to generate.