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
18
19include $(INCLUDE_DIR)/package.mk
20
21define Package/gc
22    TITLE:=gc
23    SECTION:=libs
24    CATEGORY:=Libraries
25    URL:=http://www.hpl.hp.com/personal/Hans_Boehm/gc/
26endef
27
28define Package/gc/description
29    garbage collector can be used as a garbage collecting replacement for C malloc or C++ new
30endef
31
32TARGET_CFLAGS+="-I./include"
33
34TARGET_LDFLAGS+=-lpthread
35
36define Build/Configure
37    $(call Build/Configure/Default, \
38        --disable-gcj-support \
39        --disable-java-finalization \
40        --disable-atomic-uncollectible \
41    )
42endef
43
44define Build/InstallDev
45    $(INSTALL_DIR) \
46        $(1)/usr/include \
47        $(1)/usr/lib \
48        $(1)/usr/lib/pkgconfig
49    $(CP) \
50        $(PKG_INSTALL_DIR)/usr/lib/* \
51        $(1)/usr/lib/
52    $(CP) \
53        $(PKG_INSTALL_DIR)/usr/include/* \
54        $(1)/usr/include/
55    $(CP) \
56        $(PKG_INSTALL_DIR)/usr/lib/pkgconfig \
57        $(1)/usr/lib/
58endef
59
60define Package/gc/install
61    $(INSTALL_DIR) \
62        $(1)/usr/lib
63    $(CP) \
64        $(PKG_INSTALL_DIR)/usr/lib/lib{cord,gc}.so* \
65        $(1)/usr/lib/
66endef
67
68$(eval $(call BuildPackage,gc))
69

Archive Download this file



interactive