[packages] zaptel: update and fix kernel module build for 2.6.34
[openwrt/svn-archive/archive.git] / libs / libatomicops / Makefile
1 #
2 # Copyright (C) 2007-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libatomicops
11 PKG_VERSION:=1.2
12 PKG_EXTRA_VERSION:=+cvs20080819.orig
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=libatomic-ops_$(PKG_VERSION)$(PKG_EXTRA_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://ftp.de.debian.org/debian/pool/main/liba/libatomic-ops/
17 PKG_MD5SUM:=bf26c062f28796e3daaab586a38abec1
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/libatomic_ops-$(PKG_VERSION)
20
21 PKG_INSTALL:=1
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/libatomicops
26 SECTION:=libs
27 CATEGORY:=Libraries
28 TITLE:=implementations for atomic memory update operations
29 DEPENDS:=@!TARGET_avr32
30 URL:=http://www.hpl.hp.com/research/linux/atomic_ops/
31 endef
32
33 define Package/libatomicops/description
34 Provides implementations for atomic memory update
35 operations on a number of architectures. This allows
36 direct use of these in reasonably portable code. Unlike
37 earlier similar packages, this one explicitly considers
38 memory barrier semantics, and allows the construction of
39 code that involves minimum overhead across a variety of
40 architectures.
41 endef
42
43 TARGET_CFLAGS += $(FPIC)
44
45 CONFIGURE_ARGS += \
46 --enable-shared \
47 --enable-static \
48
49 define Build/InstallDev
50 $(INSTALL_DIR) $(1)/usr/include/
51 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
52 $(CP) $(PKG_BUILD_DIR)/src/atomic_ops $(1)/usr/include/
53 $(INSTALL_DIR) $(1)/usr/lib
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libatomic_ops*.a $(1)/usr/lib/
55 endef
56
57 $(eval $(call BuildPackage,libatomicops))