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