c9c09c512592430d712dce6650d0f813788cf078
[openwrt/openwrt.git] / tools / ppl / Makefile
1 #
2 # Copyright (C) 2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=ppl
10 PKG_VERSION:=0.10.2
11
12 PKG_SOURCE_URL:=ftp://gcc.gnu.org/pub/gcc/infrastructure
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_MD5SUM:=e7dd265afdeaea81f7e87a72b182d875
15
16 include $(INCLUDE_DIR)/host-build.mk
17
18 unexport CFLAGS
19
20 ifeq ($(HOST_OS),Darwin)
21 GNU_HOST_NAME:=
22 HOST_CONFIGURE_ARGS:=$(filter-out --target= --build= --host=,$(HOST_CONFIGURE_ARGS))
23 endif
24
25 HOST_CONFIGURE_ARGS += \
26 --enable-static \
27 --disable-shared
28
29 define Host/Configure
30 (cd $(HOST_BUILD_DIR)/$(3); \
31 $(HOST_CONFIGURE_CMD) \
32 $(HOST_CONFIGURE_VARS) \
33 $(HOST_CONFIGURE_ARGS); \
34 )
35 endef
36
37
38 $(eval $(call HostBuild))