link to specific header, just to be safe
[openwrt/svn-archive/archive.git] / openwrt / package / mtd / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME := mtd
6 PKG_RELEASE := 1
7
8 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
9
10 ifeq ($(LINUX_VERSION),2.4.30)
11 VER=-DLINUX_24
12 endif
13
14 include $(TOPDIR)/package/rules.mk
15
16 $(eval $(call PKG_template,MTD,$(PKG_NAME),$(PKG_RELEASE),$(ARCH)))
17
18 $(PKG_BUILD_DIR)/.prepared:
19 mkdir -p $@
20 touch $@
21
22 $(PKG_BUILD_DIR)/.built:
23 $(TARGET_CC) -I$(LINUX_DIR)/include $(VER) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/mtd mtd.c
24 touch $@
25
26 $(IPKG_MTD):
27 install -d -m0755 $(IDIR_MTD)/sbin
28 install -m0755 $(PKG_BUILD_DIR)/mtd $(IDIR_MTD)/sbin
29 $(RSTRIP) $(IDIR_MTD)/sbin/*
30 $(IPKG_BUILD) $(IDIR_MTD) $(PACKAGE_DIR)