2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
14 PKG_BUILD_DIR:=$(BUILD_DIR)/libnotimpl
16 include $(INCLUDE_DIR)/package.mk
18 define Package/libnotimpl
21 TITLE:=Implements functions missing from uClibc
29 $(TARGET_CC) $(TARGET_CFLAGS) $(FPIC) -Wall -c src/$(1).c -o $(PKG_BUILD_DIR)/$(1).o
33 rm -rf $(PKG_BUILD_DIR)
34 mkdir -p $(PKG_BUILD_DIR)
37 TARGET_CFLAGS += $(FPIC)
41 $(TARGET_CROSS)ar rc $(PKG_BUILD_DIR)/libnotimpl.a $(PKG_BUILD_DIR)/*.o
44 define Build/InstallDev
45 mkdir -p $(STAGING_DIR)/usr/lib
46 $(CP) $(PKG_BUILD_DIR)/libnotimpl.a $(STAGING_DIR)/usr/lib/
49 $(eval $(call BuildPackage,libnotimpl))