aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2010-01-11 11:18:26 +0000
committerLars-Peter Clausen <lars@metafoo.de>2010-01-11 11:18:26 +0000
commita2a1c84aa8b069ea90adbf68a31bb2f6bdda915a (patch)
tree2d326465051a69a78c9a9ee23b075da8a4456e32 /tools
parent01b610be12cbd67281ffd96690a87dc97bbc2ef0 (diff)
downloadupstream-a2a1c84aa8b069ea90adbf68a31bb2f6bdda915a.tar.gz
upstream-a2a1c84aa8b069ea90adbf68a31bb2f6bdda915a.tar.bz2
upstream-a2a1c84aa8b069ea90adbf68a31bb2f6bdda915a.zip
Add libuuid Makefile. Oops...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19105 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools')
-rw-r--r--tools/libuuid/Makefile50
1 files changed, 50 insertions, 0 deletions
diff --git a/tools/libuuid/Makefile b/tools/libuuid/Makefile
new file mode 100644
index 0000000000..672591fe1d
--- /dev/null
+++ b/tools/libuuid/Makefile
@@ -0,0 +1,50 @@
+#
+# Copyright (C) 2006-2008 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=e2fsprogs
+PKG_VERSION:=1.40.11
+PKG_MD5SUM:=004cea70d724fdc7f1a952dffe4c9db8
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=@SF/e2fsprogs
+
+include $(INCLUDE_DIR)/host-build.mk
+
+define Host/Configure
+ $(call Host/Configure/Default,\
+ --enable-shared \
+ --enable-static \
+ --disable-rpath \
+ --enable-elf-shlibs \
+ --disable-dynamic-e2fsck \
+ --disable-tls \
+ --disable-uuidd \
+ --without-libiconv-prefix \
+ --without-libintl-prefix \
+ )
+endef
+
+define Host/Compile
+ $(MAKE) -C $(HOST_BUILD_DIR)/lib/uuid
+endef
+
+define Host/Install
+ $(INSTALL_DIR) $(STAGING_DIR_HOST)/{lib,include}
+ $(CP) $(HOST_BUILD_DIR)/lib/uuid/uuid.h $(STAGING_DIR_HOST)/include/
+ $(CP) $(HOST_BUILD_DIR)/lib/uuid/libuuid.{so*,a} $(STAGING_DIR_HOST)/lib/
+endef
+
+define Host/Clean
+ rm -f $(STAGING_DIR_HOST)/include/uuid.h
+ rm -f $(STAGING_DIR_HOST)/lib/uuid/libuuid.{so*,a}
+ $(call Host/Clean/Default)
+endef
+
+$(eval $(call HostBuild))