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.
7 include $(TOPDIR)/rules.mk
11 PKG_BUILD_DIR:=$(TOOLCHAIN_BUILD_DIR)/libnotimpl
13 include $(INCLUDE_DIR)/host-build.mk
16 $(TARGET_CC) $(TARGET_CFLAGS) -c src/$(1).c -o $(PKG_BUILD_DIR)/$(1).o
20 rm -rf $(PKG_BUILD_DIR)
21 mkdir -p $(PKG_BUILD_DIR)
26 $(TARGET_CROSS)ar rc $(PKG_BUILD_DIR)/libnotimpl.a $(PKG_BUILD_DIR)/*.o
30 mkdir -p $(STAGING_DIR)/usr/lib
31 $(CP) $(PKG_BUILD_DIR)/libnotimpl.a $(STAGING_DIR)/usr/lib/
35 rm -f $(STAGING_DIR)/usr/lib/libnotimpl.a
38 $(eval $(call HostBuild))