2006-06-27 00:44:04 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2005-10-07 17:05:47 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2006-09-24 20:49:31 +00:00
|
|
|
PKG_NAME:=libnotimpl
|
|
|
|
|
2006-09-27 14:06:46 +00:00
|
|
|
PKG_BUILD_DIR:=$(TOOLCHAIN_BUILD_DIR)/libnotimpl
|
2005-10-07 17:05:47 +00:00
|
|
|
|
2006-06-21 06:19:43 +00:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
2005-10-07 17:05:47 +00:00
|
|
|
|
2006-06-21 06:19:43 +00:00
|
|
|
define cc
|
2006-08-04 11:59:52 +00:00
|
|
|
$(TARGET_CC) $(TARGET_CFLAGS) -c src/$(1).c -o $(PKG_BUILD_DIR)/$(1).o
|
2006-06-21 06:19:43 +00:00
|
|
|
endef
|
2005-10-07 17:05:47 +00:00
|
|
|
|
2006-06-21 06:19:43 +00:00
|
|
|
define Build/Prepare
|
|
|
|
rm -rf $(PKG_BUILD_DIR)
|
|
|
|
mkdir -p $(PKG_BUILD_DIR)
|
|
|
|
endef
|
2005-10-07 17:05:47 +00:00
|
|
|
|
2006-06-21 06:19:43 +00:00
|
|
|
define Build/Compile
|
|
|
|
$(call cc,math)
|
2006-08-04 11:59:52 +00:00
|
|
|
$(TARGET_CROSS)ar rc $(PKG_BUILD_DIR)/libnotimpl.a $(PKG_BUILD_DIR)/*.o
|
2006-06-21 06:19:43 +00:00
|
|
|
endef
|
2005-10-07 17:05:47 +00:00
|
|
|
|
2006-06-21 06:19:43 +00:00
|
|
|
define Build/Install
|
2005-10-07 17:05:47 +00:00
|
|
|
mkdir -p $(STAGING_DIR)/usr/lib
|
2006-06-21 06:19:43 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/libnotimpl.a $(STAGING_DIR)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Clean
|
2006-09-24 20:49:31 +00:00
|
|
|
rm -f $(STAGING_DIR)/usr/lib/libnotimpl.a
|
2006-06-21 06:19:43 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|
|
|
|
|