add .gitognores for kconfig and lxdialog
[buildroot.git] / toolchain / Makefile.in
blobfe453f6cd6a9b99fd25ab4cc1ac02fd82cb8a2df
1 ifeq ($(BR2_PTHREADS_NONE),y)
2 THREADS:=--disable-threads
3 else
4 THREADS:=--enable-threads
5 endif
7 ifeq ($(BR2_ENABLE_MULTILIB),y)
8 MULTILIB:=--enable-multilib
9 else
10 MULTILIB:=--disable-multilib
11 endif
13 ifeq ($(BR2_ENABLE_OPENMP),y)
14 OPENMP:=--enable-openmp
15 else
16 OPENMP:=--disable-openmp
17 endif
19 ifeq ($(BR2_ENABLE_LOCALE),y)
20 DISABLE_NLS:=
21 else
22 DISABLE_NLS:=--disable-nls
23 endif
25 ifneq ($(BR2_LARGEFILE),y)
26 DISABLE_LARGEFILE= --disable-largefile
27 endif
29 ifneq ($(BR2_INET_IPV6),y)
30 DISABLE_IPV6= --disable-ipv6
31 endif
34 ifeq ($(BR2_TOOLCHAIN_SYSROOT),y)
35 BR2_SYSROOT_PREFIX=# nothing, straight into /usr
36 BR2_SYSROOT_STAGING_DESTDIR=DESTDIR=$(STAGING_DIR)/
37 BR2_SYSROOT_TARGET_DESTDIR=DESTDIR=$(TARGET_DIR)/
38 BR2_CONFIGURE_DEVEL_SYSROOT=--with-sysroot=$(TOOL_BUILD_DIR)/uClibc_dev/
39 BR2_CONFIGURE_STAGING_SYSROOT=--with-sysroot=$(STAGING_DIR)
40 BR2_CONFIGURE_BUILD_TOOLS=--with-build-time-tools=$(STAGING_DIR)/usr/$(REAL_GNU_TARGET_NAME)/bin
41 BR2_SYSROOT=--sysroot=$(STAGING_DIR)/
42 BR2_ISYSROOT=-isysroot $(STAGING_DIR)
43 else
44 BR2_SYSROOT_PREFIX=$(STAGING_DIR)
45 BR2_SYSROOT_STAGING_DESTDIR=# nothing
46 BR2_SYSROOT_TARGET_DESTDIR=# nothing
47 BR2_CONFIGURE_DEVEL_SYSROOT=--with-sysroot=$(TOOL_BUILD_DIR)/uClibc_dev/
48 BR2_CONFIGURE_STAGING_SYSROOT=# nothing
49 BR2_CONFIGURE_BUILD_TOOLS=# nothing
50 BR2_SYSROOT=# nothing
51 BR2_ISYSROOT=#nothing
52 endif
54 # FIXME -- this is temporary
55 OPTIMIZE_FOR_CPU=$(ARCH)
57 # late binding check to see if the target cc supports -fwhole-program
58 CFLAGS_WHOLE_PROGRAM = $(call cc-option,-fwhole-program,)
59 CFLAGS_COMBINE = $(call cc-option,-combine,)
61 # gcc has a bunch of needed stuff....
62 include toolchain/gcc/Makefile.in