2 # Copyright (C) 2008-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/check
16 PKG_MD5SUM:=5d75e9a6027cde79d2c339ef261e7470
21 include $(INCLUDE_DIR)/package.mk
23 TARGET_CFLAGS += $(FPIC)
28 TITLE:=Unit testing framework for C
29 URL:=http://check.sourceforge.net/
33 define Package/check/description
34 Check features a simple interface for defining unit tests, putting little in
35 the way of the developer. Tests are run in a separate address space, so Check
36 can catch both assertion failures and code errors that cause segmentation
37 faults or other signals. The output from unit tests can be used within source
38 code editors and IDEs.
41 define Build/Configure
42 $(CP) $(SCRIPT_DIR)/config.* $(PKG_BUILD_DIR)/build-aux/
43 $(call Build/Configure/Default)
47 $(call Build/Install/Default)
48 cd $(PKG_INSTALL_DIR)/usr/lib/ ; ln -nsf libcheck.so libcheck_pic.so
51 define Build/InstallDev
53 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
56 define Package/check/install
57 $(INSTALL_DIR) $(1)/usr/lib
58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcheck.so.* $(1)/usr/lib/
61 $(eval $(call BuildPackage,check))