2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
11 PKG_NAME
:=libatomicops
13 PKG_EXTRA_VERSION
:=+cvs20080819.orig
16 PKG_SOURCE
:=libatomic-ops_
$(PKG_VERSION
)$(PKG_EXTRA_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=http
://ftp.de.debian.org
/debian
/pool
/main
/liba
/libatomic-ops
/
18 PKG_MD5SUM
:=bf26c062f28796e3daaab586a38abec1
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/libatomic_ops-
$(PKG_VERSION
)
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/libatomicops
27 TITLE
:=implementations for atomic memory update operations
28 DEPENDS
:=@
!TARGET_avr32
29 URL
:=http
://www.hpl.hp.com
/research
/linux
/atomic_ops
/
32 define Package
/libatomicops
/description
33 Provides implementations for atomic memory update
34 operations on a number of architectures. This allows
35 direct use of these in reasonably portable code. Unlike
36 earlier similar packages
, this one explicitly considers
37 memory barrier semantics
, and allows the construction of
38 code that involves minimum overhead across a variety of
42 TARGET_CFLAGS
+= $(FPIC
)
49 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
50 DESTDIR
="$(PKG_INSTALL_DIR)" \
54 define Build
/InstallDev
55 mkdir
-p
$(1)/usr
/include/
56 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/* $(1)/usr
/include/
57 $(CP
) $(PKG_BUILD_DIR
)/src
/atomic_ops
$(1)/usr
/include/
59 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libatomic_ops
*.a
$(1)/usr
/lib
/
62 $(eval
$(call BuildPackage
,libatomicops
))