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