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
|
|
|
|
$(TARGET_CC) $(TARGET_CFLAGS) -c src/$(1).c -o $(PKG_BUILD_DIR)/$(1).o
|
|
|
|
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)
|
|
|
|
$(TARGET_CROSS)ar rc $(PKG_BUILD_DIR)/libnotimpl.a $(PKG_BUILD_DIR)/*.o
|
|
|
|
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))
|
|
|
|
|