remove UninstallDev
[openwrt/svn-archive/archive.git] / libs / libnotimpl / 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:=libnotimpl
12 PKG_VERSION:=1
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/libnotimpl
15
16 include $(INCLUDE_DIR)/package.mk
17
18 define Package/libnotimpl
19 SECTION:=libs
20 CATEGORY:=Libraries
21 TITLE:=Implements functions missing from uClibc
22 endef
23
24 define cc
25 $(TARGET_CC) $(TARGET_CFLAGS) -Wall -c src/$(1).c -o $(PKG_BUILD_DIR)/$(1).o
26 endef
27
28 define Build/Prepare
29 rm -rf $(PKG_BUILD_DIR)
30 mkdir -p $(PKG_BUILD_DIR)
31 endef
32
33 define Build/Compile
34 $(call cc,math)
35 $(TARGET_CROSS)ar rc $(PKG_BUILD_DIR)/libnotimpl.a $(PKG_BUILD_DIR)/*.o
36 endef
37
38 define Build/InstallDev
39 mkdir -p $(STAGING_DIR)/usr/lib
40 $(CP) $(PKG_BUILD_DIR)/libnotimpl.a $(STAGING_DIR)/usr/lib/
41 endef
42
43 $(eval $(call BuildPackage,libnotimpl))