[tools] mtd-utils: refresh patches
[openwrt.git] / 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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=e2fsprogs
11 PKG_VERSION:=1.40.11
12 PKG_MD5SUM:=004cea70d724fdc7f1a952dffe4c9db8
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/e2fsprogs
17
18 include $(INCLUDE_DIR)/host-build.mk
19
20 define 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 )
32 endef
33
34 define Host/Compile
35 $(MAKE) -C $(HOST_BUILD_DIR)/lib/uuid libuuid.a
36 endef
37
38 define 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/
42 endef
43
44 define 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)
48 endef
49
50 $(eval $(call HostBuild))
This page took 0.050737 seconds and 5 git commands to generate.