Root/libgc/Makefile

1#
2# Copyright (C) 2008 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=gc
11PKG_VERSION:=7.2alpha4
12
13PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14PKG_SOURCE_URL:=http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/
15PKG_MD5SUM:=0a6785ebb61c6e2b50c3952c3bbf9ea1
16
17PKG_INSTALL:=1
18PKG_BUILD_DEPENDS:=gc/host
19
20include $(INCLUDE_DIR)/package.mk
21include $(INCLUDE_DIR)/host-build.mk
22
23define Package/gc
24    TITLE:=gc
25    SECTION:=libs
26    CATEGORY:=Libraries
27    URL:=http://www.hpl.hp.com/personal/Hans_Boehm/gc/
28endef
29
30define Package/gc/description
31    garbage collector can be used as a garbage collecting replacement for C malloc or C++ new
32endef
33
34TARGET_CFLAGS+="-I./include"
35
36TARGET_LDFLAGS+=-lpthread
37
38define Build/Configure
39    $(call Build/Configure/Default, \
40        --disable-gcj-support \
41        --disable-java-finalization \
42        --disable-atomic-uncollectible \
43    )
44endef
45
46define Build/InstallDev
47    $(INSTALL_DIR) \
48        $(1)/usr/include \
49        $(1)/usr/lib \
50        $(1)/usr/lib/pkgconfig
51    $(CP) \
52        $(PKG_INSTALL_DIR)/usr/lib/* \
53        $(1)/usr/lib/
54    $(CP) \
55        $(PKG_INSTALL_DIR)/usr/include/* \
56        $(1)/usr/include/
57    $(CP) \
58        $(PKG_INSTALL_DIR)/usr/lib/pkgconfig \
59        $(1)/usr/lib/
60endef
61
62define Package/gc/install
63    $(INSTALL_DIR) \
64        $(1)/usr/lib
65    $(CP) \
66        $(PKG_INSTALL_DIR)/usr/lib/lib{cord,gc}.so* \
67        $(1)/usr/lib/
68endef
69
70$(eval $(call HostBuild))
71$(eval $(call BuildPackage,gc))
72

Archive Download this file



interactive