Merge branch 'qtopia-fixes' of git://git.busybox.net/~tpetazzoni/git/buildroot
[avatt.git] / project / Makefile.in
blob49aec141a543b0b3588629930e7e468bb5bed984
1 PROJECT:=$(strip $(subst ",,$(BR2_PROJECT)))
2 #"))
3 TARGET_HOSTNAME:=$(strip $(subst ",,$(BR2_HOSTNAME)))
4 #"))
5 BANNER:=$(strip $(subst ",,$(BR2_BANNER)))
6 #"))
8 # silent mode requested?
9 QUIET:=$(if $(findstring s,$(MAKEFLAGS)),-q,)
11 # Strip off the annoying quoting
12 ARCH:=$(strip $(subst ",, $(BR2_ARCH)))
13 #"))
14 WGET:=$(strip $(subst ",, $(BR2_WGET))) $(SPIDER) $(QUIET)
15 #"))
16 SVN_CO:=$(strip $(subst ",, $(BR2_SVN_CO))) $(QUIET)
17 #"))
18 SVN_UP:=$(strip $(subst ",, $(BR2_SVN_UP))) $(QUIET)
19 #"))
20 GIT:=$(strip $(subst ",, $(BR2_GIT))) $(QUIET)
21 #"))
22 ZCAT:=$(strip $(subst ",, $(BR2_ZCAT)))
23 #"))
24 BZCAT:=$(strip $(subst ",, $(BR2_BZCAT)))
25 #"))
26 TAR_OPTIONS=$(subst ",, $(BR2_TAR_OPTIONS)) -xf
27 #")
29 # Buildroot supports building out of tree similarly to the Linux kernel.
30 # To use, add O= to the make command line (make O=/tmp/build)
31 BASE_DIR:=$(shell pwd)
32 ifdef O
33 ifeq ("$(origin O)", "command line")
34 BASE_DIR := $(shell mkdir -p $(O) && cd $(O) && pwd)
35 $(if $(BASE_DIR),, $(error output directory "$(O)" does not exist))
37 # other packages might also support Linux-style out of tree builds
38 # with the O=<dir> syntax (E.G. Busybox does). As make automatically
39 # forwards command line variable definitions those packages get very
40 # confused. Fix this by telling make to not do so
41 MAKEOVERRIDES =
42 endif
43 endif
45 TOPDIR_PREFIX:=$(strip $(subst ",, $(BR2_TOPDIR_PREFIX)))_
46 #"))
47 TOPDIR_SUFFIX:=_$(strip $(subst ",, $(BR2_TOPDIR_SUFFIX)))
48 #"))
49 ifeq ($(TOPDIR_PREFIX),_)
50 TOPDIR_PREFIX:=
51 endif
52 ifeq ($(TOPDIR_SUFFIX),_)
53 TOPDIR_SUFFIX:=
54 endif
56 DL_DIR=$(strip $(subst ",, $(BR2_DL_DIR)))
57 #"))
58 ifeq ($(DL_DIR),)
59 DL_DIR:=$(BASE_DIR)/dl
60 endif
62 # All non-configurable packages should be built in BUILD_DIR
63 BUILD_DIR:=$(BASE_DIR)/$(TOPDIR_PREFIX)build_$(ARCH)$(ARCH_FPU_SUFFIX)$(TOPDIR_SUFFIX)
65 GNU_TARGET_SUFFIX:=-$(strip $(subst ",, $(BR2_GNU_TARGET_SUFFIX)))
66 #"))
68 STAGING_DIR:=$(strip $(subst ",, $(BR2_STAGING_DIR)))
69 #"))
71 # packages compiled for the host goes here
72 HOST_DIR:=$(BUILD_DIR)/host_dir
74 # stamp (dependency) files go here
75 STAMP_DIR:=$(BUILD_DIR)/stamps
77 # All configurable packages (like Busybox,Linux etc) should be built
78 # in PROJECT_BUILD_DIR
79 PROJECT_BUILD_DIR:=$(BASE_DIR)/$(TOPDIR_PREFIX)project_build_$(ARCH)$(ARCH_FPU_SUFFIX)$(TOPDIR_SUFFIX)/$(PROJECT)
80 BINARIES_DIR:=$(BASE_DIR)/binaries/$(PROJECT)
81 TARGET_DIR:=$(PROJECT_BUILD_DIR)/root
83 # define values for prepatched source trees for toolchains
84 VENDOR_SITE:=$(strip $(subst ",,$(BR2_VENDOR_SITE)))
85 #"))
86 VENDOR_SUFFIX:=$(strip $(subst ",,$(BR2_VENDOR_SUFFIX)))
87 #"))
88 VENDOR_BINUTILS_RELEASE:=$(strip $(subst ",,$(BR2_VENDOR_BINUTILS_RELEASE)))
89 #"))
90 VENDOR_GCC_RELEASE:=$(strip $(subst ",,$(BR2_VENDOR_GCC_RELEASE)))
91 #"))
92 VENDOR_UCLIBC_RELEASE:=$(strip $(subst ",,$(BR2_VENDOR_UCLIBC_RELEASE)))
93 #"))
94 VENDOR_GDB_RELEASE:=$(strip $(subst ",,$(BR2_VENDOR_GDB_RELEASE)))
95 #"))
96 VENDOR_PATCH_DIR:=$(strip $(subst ",,$(BR2_VENDOR_PATCH_DIR)))
97 #"))