move wlcompat from target/linux/package/ to package/.
[openwrt.git] / target / linux / image / brcm / lzma-loader / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME := lzma-loader
6 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
7
8 $(PKG_BUILD_DIR)/.prepared:
9 mkdir $(PKG_BUILD_DIR)
10 $(CP) ./src/* $(PKG_BUILD_DIR)/
11 touch $@
12
13 $(PKG_BUILD_DIR)/loader.gz: $(PKG_BUILD_DIR)/.prepared
14 $(MAKE) -C $(PKG_BUILD_DIR) CC=$(TARGET_CC) \
15 LD=$(TARGET_CROSS)ld CROSS_COMPILE=$(TARGET_CROSS)
16
17 source:
18 prepare: $(PKG_BUILD_DIR)/.prepared
19 compile: $(PKG_BUILD_DIR)/loader.gz
20 install:
21
22 ifneq ($(TARGET),)
23 install: compile
24 $(CP) $(PKG_BUILD_DIR)/loader.gz $(PKG_BUILD_DIR)/loader.elf $(TARGET)/
25 endif
26
27 clean:
28 rm -rf $(PKG_BUILD_DIR)
This page took 0.039946 seconds and 5 git commands to generate.