openwrt root
[openwrt.git] / openwrt / package / Makefile.in
1 MAKE1=make
2 MAKE=make -j$(BR2_JLEVEL)
3
4 # Strip off the annoying quoting
5 ARCH:=$(strip $(subst ",, $(BR2_ARCH)))
6 #"
7 WGET:=$(strip $(subst ",, $(BR2_WGET)))
8 #"
9
10 ifneq ($(BR2_LARGEFILE),y)
11 DISABLE_LARGEFILE= --disable-largefile
12 endif
13 TARGET_CFLAGS=$(TARGET_OPTIMIZATION) $(TARGET_DEBUGGING)
14
15 HOSTCC:=gcc
16 BASE_DIR:=${shell pwd}
17 DL_DIR:=$(BASE_DIR)/dl
18 #PATCH_DIR=$(BASE_DIR)/sources/patches
19 BUILD_DIR:=$(BASE_DIR)/build_$(ARCH)$(ARCH_FPU_SUFFIX)
20 TARGET_DIR:=$(BUILD_DIR)/root
21 TOOL_BUILD_DIR=$(BASE_DIR)/toolchain_build_$(ARCH)$(ARCH_FPU_SUFFIX)
22 # Strip off the annoying quoting
23 STAGING_DIR:=$(strip $(subst ",, $(BR2_STAGING_DIR)))
24 #"
25 TARGET_PATH=$(STAGING_DIR)/bin:/bin:/sbin:/usr/bin:/usr/sbin
26 IMAGE:=$(BASE_DIR)/root_fs_$(ARCH)$(ARCH_FPU_SUFFIX)
27 REAL_GNU_TARGET_NAME=$(OPTIMIZE_FOR_CPU)-linux-uclibc
28 GNU_TARGET_NAME=$(OPTIMIZE_FOR_CPU)-linux
29 KERNEL_CROSS=$(STAGING_DIR)/bin/$(OPTIMIZE_FOR_CPU)-linux-uclibc-
30 TARGET_CROSS=$(STAGING_DIR)/bin/$(OPTIMIZE_FOR_CPU)-linux-uclibc-
31 TARGET_CC=$(TARGET_CROSS)gcc
32 STRIP=$(TARGET_CROSS)strip --remove-section=.comment --remove-section=.note
33
34
35 HOST_ARCH:=$(shell $(HOSTCC) -dumpmachine | sed -e s'/-.*//' \
36 -e 's/sparc.*/sparc/' \
37 -e 's/arm.*/arm/g' \
38 -e 's/m68k.*/m68k/' \
39 -e 's/ppc/powerpc/g' \
40 -e 's/v850.*/v850/g' \
41 -e 's/sh[234]/sh/' \
42 -e 's/mips-.*/mips/' \
43 -e 's/mipsel-.*/mipsel/' \
44 -e 's/cris.*/cris/' \
45 -e 's/i[3-9]86/i386/' \
46 )
47 GNU_HOST_NAME:=$(HOST_ARCH)-pc-linux-gnu
48 TARGET_CONFIGURE_OPTS=PATH=$(TARGET_PATH) \
49 AR=$(TARGET_CROSS)ar \
50 AS=$(TARGET_CROSS)as \
51 LD=$(TARGET_CROSS)ld \
52 NM=$(TARGET_CROSS)nm \
53 CC=$(TARGET_CROSS)gcc \
54 GCC=$(TARGET_CROSS)gcc \
55 CXX=$(TARGET_CROSS)g++ \
56 RANLIB=$(TARGET_CROSS)ranlib
57
58 ifeq ($(ENABLE_LOCALE),true)
59 DISABLE_NLS:=
60 else
61 DISABLE_NLS:=--disable-nls
62 endif
63
64
This page took 0.044463 seconds and 5 git commands to generate.