2 # Copyright (C) 2008-2009 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:=6f80cd4a24d14ad706117a7714222420
19 include $(INCLUDE_DIR)/package.mk
23 TARGET_CFLAGS += $(FPIC) \
24 -I$(STAGING_DIR)/usr/lib/libintl/include \
25 -I$(STAGING_DIR)/usr/lib/libiconv/include
28 -L$(STAGING_DIR)/usr/lib/libintl/lib \
29 -L$(STAGING_DIR)/usr/lib/libiconv/lib
34 TITLE:=Unit testing framework for C
35 URL:=http://check.sourceforge.net/
38 define Package/check/description
39 Check features a simple interface for defining unit tests, putting little in
40 the way of the developer. Tests are run in a separate address space, so Check
41 can catch both assertion failures and code errors that cause segmentation
42 faults or other signals. The output from unit tests can be used within source
43 code editors and IDEs.
46 define Build/Configure
47 $(CP) $(SCRIPT_DIR)/config.* $(PKG_BUILD_DIR)/build-aux/
48 $(call Build/Configure/Default)
52 $(call Build/Install/Default)
53 cd $(PKG_INSTALL_DIR)/usr/lib/ ; ln -s libcheck.so libcheck_pic.so
56 define Build/InstallDev
58 cp -r $(PKG_INSTALL_DIR)/* $(1)
61 define Package/check/install
63 cp -r $(PKG_INSTALL_DIR)/* $(1)
66 $(eval $(call BuildPackage,check))