fix patch
[openwrt.git] / openwrt / package / mtd / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME := mtd
6 PKG_RELEASE := 3
7
8 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
9
10 include $(TOPDIR)/package/rules.mk
11
12 $(eval $(call PKG_template,MTD,$(PKG_NAME),$(PKG_RELEASE),$(ARCH)))
13 $(eval $(call PKG_template,MTD_STATIC,mtd-static,$(PKG_RELEASE),$(ARCH)))
14
15 $(PKG_BUILD_DIR)/.prepared:
16 mkdir -p $(PKG_BUILD_DIR)
17 touch $@
18
19 $(PKG_BUILD_DIR)/.configured:
20 touch $@
21
22 $(PKG_BUILD_DIR)/.built:
23 $(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/mtd mtd.c
24 $(TARGET_CC) -static $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/mtd-static mtd.c
25 touch $@
26
27 $(IPKG_MTD):
28 install -d -m0755 $(IDIR_MTD)/sbin
29 install -m0755 $(PKG_BUILD_DIR)/mtd $(IDIR_MTD)/sbin
30 $(RSTRIP) $(IDIR_MTD)/sbin/*
31 $(IPKG_BUILD) $(IDIR_MTD) $(PACKAGE_DIR)
32
33 $(IPKG_MTD_STATIC):
34 install -d -m0755 $(IDIR_MTD_STATIC)/sbin
35 install -m0755 $(PKG_BUILD_DIR)/mtd-static $(IDIR_MTD_STATIC)/sbin
36 $(RSTRIP) $(IDIR_MTD_STATIC)/sbin/*
37 $(IPKG_BUILD) $(IDIR_MTD_STATIC) $(PACKAGE_DIR)
This page took 0.049767 seconds and 5 git commands to generate.