fix lzma compile
[openwrt.git] / target / image / brcm / lzma-loader / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME := lzma-loader
12 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
13
14 $(PKG_BUILD_DIR)/.prepared:
15 mkdir $(PKG_BUILD_DIR)
16 $(CP) ./src/* $(PKG_BUILD_DIR)/
17 touch $@
18
19 $(PKG_BUILD_DIR)/loader.gz: $(PKG_BUILD_DIR)/.prepared
20 $(MAKE) -C $(PKG_BUILD_DIR) CC="$(TARGET_CC)" \
21 LD="$(TARGET_CROSS)ld" CROSS_COMPILE="$(TARGET_CROSS)"
22
23 download:
24 prepare: $(PKG_BUILD_DIR)/.prepared
25 compile: $(PKG_BUILD_DIR)/loader.gz
26 install:
27
28 ifneq ($(TARGET),)
29 install: compile
30 $(CP) $(PKG_BUILD_DIR)/loader.gz $(PKG_BUILD_DIR)/loader.elf $(TARGET)/
31 endif
32
33 clean:
34 rm -rf $(PKG_BUILD_DIR)
This page took 0.046014 seconds and 5 git commands to generate.