2006-06-27 03:44:04 +03: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 20:05:47 +03:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2006-06-21 09:19:43 +03:00
|
|
|
PKG_NAME := libnotimpl
|
|
|
|
PKG_BUILD_DIR := $(TOOL_BUILD_DIR)/libnotimpl
|
2005-10-07 20:05:47 +03:00
|
|
|
|
2006-06-21 09:19:43 +03:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
2005-10-07 20:05:47 +03:00
|
|
|
|
2006-06-21 09:19:43 +03:00
|
|
|
define cc
|
2006-08-04 14:59:52 +03:00
|
|
|
$(TARGET_CC) $(TARGET_CFLAGS) -c src/$(1).c -o $(PKG_BUILD_DIR)/$(1).o
|
2006-06-21 09:19:43 +03:00
|
|
|
endef
|
2005-10-07 20:05:47 +03:00
|
|
|
|
2006-06-21 09:19:43 +03:00
|
|
|
define Build/Prepare
|
|
|
|
rm -rf $(PKG_BUILD_DIR)
|
|
|
|
mkdir -p $(PKG_BUILD_DIR)
|
|
|
|
endef
|
2005-10-07 20:05:47 +03:00
|
|
|
|
2006-06-21 09:19:43 +03:00
|
|
|
define Build/Compile
|
|
|
|
$(call cc,math)
|
2006-08-04 14:59:52 +03:00
|
|
|
$(TARGET_CROSS)ar rc $(PKG_BUILD_DIR)/libnotimpl.a $(PKG_BUILD_DIR)/*.o
|
2006-06-21 09:19:43 +03:00
|
|
|
endef
|
2005-10-07 20:05:47 +03:00
|
|
|
|
2006-06-21 09:19:43 +03:00
|
|
|
define Build/Install
|
2005-10-07 20:05:47 +03:00
|
|
|
mkdir -p $(STAGING_DIR)/usr/lib
|
2006-06-21 09:19:43 +03:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/libnotimpl.a $(STAGING_DIR)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Clean
|
2005-10-07 20:05:47 +03:00
|
|
|
rm -rf \
|
|
|
|
$(STAGING_DIR)/usr/lib/libnotimpl.a \
|
2006-06-21 09:19:43 +03:00
|
|
|
$(PKG_BUILD_DIR)
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|
|
|
|
|