Root/tools/libuuid/Makefile

1#
2# Copyright (C) 2006-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:=e2fsprogs
11PKG_VERSION:=1.40.11
12PKG_MD5SUM:=004cea70d724fdc7f1a952dffe4c9db8
13PKG_RELEASE:=1
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16PKG_SOURCE_URL:=@SF/e2fsprogs
17
18include $(INCLUDE_DIR)/host-build.mk
19
20define Host/Configure
21    $(call Host/Configure/Default,\
22        --enable-shared \
23        --enable-static \
24        --disable-rpath \
25        --enable-elf-shlibs \
26        --disable-dynamic-e2fsck \
27        --disable-tls \
28        --disable-uuidd \
29        --without-libiconv-prefix \
30        --without-libintl-prefix \
31    )
32endef
33
34define Host/Compile
35    $(MAKE) -C $(HOST_BUILD_DIR)/lib/uuid libuuid.a
36endef
37
38define Host/Install
39    $(INSTALL_DIR) $(STAGING_DIR_HOST)/{lib,include/uuid}
40    $(CP) $(HOST_BUILD_DIR)/lib/uuid/uuid.h $(STAGING_DIR_HOST)/include/uuid/
41    $(CP) $(HOST_BUILD_DIR)/lib/uuid/libuuid.a $(STAGING_DIR_HOST)/lib/
42endef
43
44define Host/Clean
45    rm -f $(STAGING_DIR_HOST)/include/uuid/uuid.h
46    rm -f $(STAGING_DIR_HOST)/lib/uuid/libuuid.*
47    $(call Host/Clean/Default)
48endef
49
50$(eval $(call HostBuild))
51

Archive Download this file



interactive