[package] lvm2: add new mirror and fix shared library installation
[openwrt/svn-archive/archive.git] / utils / io / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=io
11 PKG_RELEASE:=1
12
13 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define Package/io
18 SECTION:=utils
19 CATEGORY:=Utilities
20 TITLE:=Raw memory i/o utility
21 URL:=http://www.sleepie.demon.co.uk/linuxvme/io.c
22 endef
23
24 define Package/io/description
25 This tool can be used to access physical memory addresses from userspace.
26 It can be useful to access hardware for which no device driver exists!
27 endef
28
29 define Build/Prepare
30 $(INSTALL_DIR) $(PKG_BUILD_DIR)
31 $(CP) ./src/* $(PKG_BUILD_DIR)/
32 endef
33
34 define Build/Compile
35 $(TARGET_CC) $(TARGET_CFLAGS) -Os $(PKG_BUILD_DIR)/io.c -o $(PKG_BUILD_DIR)/$(PKG_NAME)
36 endef
37
38 define Package/io/install
39 $(INSTALL_DIR) $(1)/usr/bin
40 $(INSTALL_BIN) $(PKG_BUILD_DIR)/io $(1)/usr/bin/
41 endef
42
43 $(eval $(call BuildPackage,io))