Update bridge utils to latest version
[gumsense-br.git] / package / Makefile.in
blobd464861acc860b56a945e0a5884b9afc78796dd7
1 MAKE1=make
2 MAKE=make -j$(BR2_JLEVEL)
4 # Strip off the annoying quoting
5 ARCH:=$(strip $(subst ",, $(BR2_ARCH)))
6 #"
7 WGET:=$(strip $(subst ",, $(BR2_WGET)))
8 #"
9 SVN:=$(strip $(subst ",, $(BR2_SVN)))
15 ifneq ($(BR2_LARGEFILE),y)
16 DISABLE_LARGEFILE= --disable-largefile
17 endif
18 TARGET_CFLAGS=$(TARGET_OPTIMIZATION) $(TARGET_DEBUGGING)
19 HOSTCC:=gcc
21 BASE_DIR:=${shell pwd}
23 TOPDIR_PREFIX:=$(strip $(subst ",, $(BR2_TOPDIR_PREFIX)))_
24 TOPDIR_SUFFIX:=_$(strip $(subst ",, $(BR2_TOPDIR_SUFFIX)))
25 ifeq ($(TOPDIR_PREFIX),_)
26 TOPDIR_PREFIX:=
27 endif
28 ifeq ($(TOPDIR_SUFFIX),_)
29 TOPDIR_SUFFIX:=
30 endif
32 DL_DIR=$(strip $(subst ",, $(BR2_DL_DIR)))
33 ifeq ($(DL_DIR),)
34 DL_DIR:=$(BASE_DIR)/dl
35 endif
36 #PATCH_DIR=$(BASE_DIR)/sources/patches
37 BUILD_DIR:=$(BASE_DIR)/$(TOPDIR_PREFIX)build_$(ARCH)$(ARCH_FPU_SUFFIX)$(TOPDIR_SUFFIX)
38 TARGET_DIR:=$(BUILD_DIR)/root
39 TOOL_BUILD_DIR=$(BASE_DIR)/$(TOPDIR_PREFIX)toolchain_build_$(ARCH)$(ARCH_FPU_SUFFIX)$(TOPDIR_SUFFIX)
41 # Strip off the annoying quoting
42 STAGING_DIR:=$(strip $(subst ",, $(BR2_STAGING_DIR)))
44 TARGET_PATH=$(STAGING_DIR)/bin:$(TOOL_BUILD_DIR)/bin:/bin:/sbin:/usr/bin:/usr/sbin
45 IMAGE:=$(BASE_DIR)/rootfs.$(ARCH)$(ARCH_FPU_SUFFIX)
46 GNU_TARGET_NAME=$(OPTIMIZE_FOR_CPU)-linux
47 ifeq ($(BR2_ARM_EABI),y)
48 REAL_GNU_TARGET_NAME=$(GNU_TARGET_NAME)-uclibcgnueabi
49 else
50 REAL_GNU_TARGET_NAME=$(GNU_TARGET_NAME)-uclibc
51 endif
52 KERNEL_CROSS=$(STAGING_DIR)/bin/$(REAL_GNU_TARGET_NAME)-
53 TARGET_CROSS=$(STAGING_DIR)/bin/$(REAL_GNU_TARGET_NAME)-
54 TARGET_CC=$(TARGET_CROSS)gcc
55 TARGET_CXX=$(TARGET_CROSS)g++
56 TARGET_RANLIB=$(TARGET_CROSS)ranlib
57 STRIP=$(TARGET_CROSS)strip --remove-section=.comment --remove-section=.note
58 SAFE_STRIP:=$(STRIP)
59 INSTALL=/usr/bin/install
60 QUILT:=$(BASE_DIR)/toolchain/quilt/bin/quilt --cmdpath $(BASE_DIR)/toolchain/quilt/share --quiltrc $(BASE_DIR)/toolchain/quilt/quilt.quiltrc
63 HOST_ARCH:=$(shell $(HOSTCC) -dumpmachine | sed -e s'/-.*//' \
64 -e 's/sparc.*/sparc/' \
65 -e 's/arm.*/arm/g' \
66 -e 's/m68k.*/m68k/' \
67 -e 's/ppc/powerpc/g' \
68 -e 's/v850.*/v850/g' \
69 -e 's/sh[234]/sh/' \
70 -e 's/mips-.*/mips/' \
71 -e 's/mipsel-.*/mipsel/' \
72 -e 's/cris.*/cris/' \
73 -e 's/i[3-9]86/i386/' \
75 GNU_HOST_NAME:=$(HOST_ARCH)-$(subst ",,$(BR2_GNU_BUILD_SUFFIX))
76 TARGET_CONFIGURE_OPTS=PATH=$(TARGET_PATH) \
77 AR=$(TARGET_CROSS)ar \
78 AS=$(TARGET_CROSS)as \
79 LD=$(TARGET_CROSS)ld \
80 NM=$(TARGET_CROSS)nm \
81 CC=$(TARGET_CROSS)gcc \
82 GCC=$(TARGET_CROSS)gcc \
83 CXX=$(TARGET_CROSS)g++ \
84 CPP=$(TARGET_CROSS)cpp \
85 RANLIB=$(TARGET_CROSS)ranlib \
86 OBJCOPY=$(TARGET_CROSS)objcopy
88 ifeq ($(ENABLE_LOCALE),true)
89 DISABLE_NLS:=
90 else
91 DISABLE_NLS:=--disable-nls
92 endif