OSDN Git Service

Support arch specific optimizations (examples shown for x86 and ARM).
[uclinux-h8/uClibc.git] / extra / Configs / Config.arm
1 # Library Configuration rules for uClibc
2 #
3 # This file contains rules which are shared between multiple Makefiles.  All
4 # normal configuration options live in the file named "Config".  You probably
5 # should not mess with this file unless you know what you are doing...  
6
7 # Copyright (C) 2000 by Lineo, inc.
8 # Copyright (C) 2000,2001 Erik Andersen <andersee@debian.org>
9 #
10 # This program is free software; you can redistribute it and/or modify it under
11 # the terms of the GNU Library General Public License as published by the Free
12 # Software Foundation; either version 2 of the License, or (at your option) any
13 # later version.
14 #
15 # This program is distributed in the hope that it will be useful, but WITHOUT
16 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
17 # FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more
18 # details.
19 #
20 # You should have received a copy of the GNU Library General Public License
21 # along with this program; if not, write to the Free Software Foundation, Inc.,
22 # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 #
24 # Derived in part from the Linux-8086 C library, the GNU C Library, and several
25 # other sundry sources.  Files within this library are copyright by their
26 # respective copyright holders.
27
28 # If you are running a cross compiler, you may want to set this
29 # to something more interesting...  Target architecture is determined
30 # by asking this compiler what arch it compiles stuff for.
31 NATIVE_CC = gcc
32 CROSS = #arm-linux-
33 CC = $(CROSS)gcc
34 AR = $(CROSS)ar
35 LD = $(CROSS)ld
36 NM = $(CROSS)nm
37 STRIPTOOL = $(CROSS)strip
38 #STRIPTOOL = /bin/true
39
40 #
41 # just in case someone wants to use it
42 ARCH_CFLAGS=
43
44 # Set the following to `true' to make a debuggable build, and `false' for
45 # production builds.
46 DODEBUG = false
47
48 # Compiler warnings you want to see 
49 WARNINGS=-Wall
50
51 # Note that the kernel source you use to compile with should be the same as the
52 # Linux kernel you run your apps on.  uClibc doesn't even try to achieve binary
53 # compatibility across kernel versions.  So don't expect, for example, uClibc
54 # compiled with Linux kernel 2.0.x to implement lchown properly, since 2.0.x
55 # can't do that. Similarly, if you compile uClibc vs Linux 2.4.x kernel headers,
56 # but then run on Linux 2.0.x, lchown will be compiled into uClibc, but won't
57 # work at all.  You have been warned.
58 KERNEL_SOURCE=/usr/src/linux
59
60 # Set this to `false' if your CPU doesn't have a memory management unit (MMU).
61 # Set it to `true' otherwise.
62 HAS_MMU = true
63
64 # Set this to `false' if you don't have/need basic floating point support
65 # support in libc (strtod, printf, scanf).  Set it to `true' otherwise.
66 # If this is not true, then libm will not be built.
67 HAS_FLOATING_POINT = true
68
69 # Set to `true' if you want the math library to contain the full set
70 # of C99 math library features.  Costs an extra 35k or so on x86. 
71 DO_C99_MATH = false
72
73 # Set this to `false' if you don't have/need "(unsigned) long long int" support.
74 # Set it to `true' otherwise.
75 # Affects *printf and *scanf functions.
76 # Also omits strto(u)ll, and (u)lltostr from the library if `false'.
77 HAS_LONG_LONG = true
78
79 # Set this to `false' if you don't have/need locale support; `true' otherwise.
80 # Note: Currently only affects the ctype functions.  You must also generate
81 # a locale file for anything but the C locale.  See directory extra/locale for
82 # a utility to do so.  Also see the following option.
83 HAS_LOCALE = false
84
85 # Set this to the path of your uClibc locale file directory.
86 # Warning!  This must be different than the glibc locale directory to avoid
87 # name conflicts, as the locale files are entirely different in format!
88 LOCALE_DIR = "/usr/share/uClibc-locale/"
89
90 # This specifies which malloc implementation is used.
91 # "malloc-simple" is very, very small, but is also very, very dumb 
92 # and does not try to make good use of memory or clean up after itself.
93 #
94 # "malloc" on the other hand is a bit bigger, but is pretty smart thereby
95 # minimizing memory wastage and reusing already allocated memory.  This 
96 # can be lots faster and safer IMHO.
97 #
98 # "malloc-930716" is from libc-5.3.12 and was/is the standard gnu malloc.
99 # It is actually smaller than "malloc", at least on i386.  Right now, it
100 # only works on i386 (and maybe m68k) because it needs sbrk.
101 #MALLOC = malloc-simple
102 MALLOC = malloc 
103 #MALLOC = malloc-930716
104
105 # If you want to collect common syscall code into one function, set to this to
106 # `true'.  Set it to false otherwise.
107 # On i386 this saves about than 2.8k over all syscalls.
108 # The idea came from the implementation in dietlibc.
109 # At present, only affects i386.
110 UNIFIED_SYSCALL = false
111
112 # If you want large file summit support (greater then 2 Gib), 
113 # turn this on.  This has no effect unless your kernel supports 
114 # lfs.  This currently does nothing, but may someday...
115 DOLFS = false
116
117 # If you want to include RPC support, enable this.  RPC is almost never used 
118 # for anything except NFS support, so unless you plan to use NFS, leave this
119 # disabled.  This is off by default.
120 INCLUDE_RPC = false
121
122 # If you want to include support for the next version of the Internet
123 # Protocol: IP version 6, enable this.  This is off by default.
124 INCLUDE_IPV6 = false
125
126 # If you want to compile the library as PIC code, turn this on.
127 DOPIC = false
128
129
130
131 # Enable support for shared libraries?  If this is false, you can
132 # ignore all the rest of the options in this file...
133 HAVE_SHARED = true
134
135 # uClibc has a native shared library loader for some architectures.
136 BUILD_UCLIBC_LDSO=true
137
138 # If you are using shared libraries, but do not want/have a native
139 # uClibc shared library loader, please specify the name of your
140 # system's shared library loader here...
141 #SYSTEM_LDSO=/lib/ld-linux.so.2
142
143 # When using shared libraries, this path is the location where the
144 # shared library will be invoked.  This value will be compiled into
145 # every binary compiled with uClibc.  
146 #
147 # BIG FAT WARNING:  
148 # If you do not have a shared library loader with the correct name
149 # sitting in the directory this points to, your binaries will not run.
150 SHARED_LIB_LOADER_PATH=$(DEVEL_PREFIX)/lib
151
152 # DEVEL_PREFIX is the directory into which the uClibc development
153 # environment will be installed.   The result will look something 
154 # like the following:
155 #   DEVEL_PREFIX/
156 #       bin/            <contains gcc, ld, etc>
157 #       lib/            <contains all runtime and static libs>
158 #       include/        <Where all the header files go>
159 # This value is used by the 'make install' Makefile target.  Since this
160 # directory is compiled into the uclibc cross compiler spoofer, you
161 # have to recompile if you change this value...
162 DEVEL_PREFIX = /usr/$(TARGET_ARCH)-linux-uclibc
163
164 # SYSTEM_DEVEL_PREFIX is the directory prefix used when installing
165 # bin/arch-uclibc-gcc, bin/arch-uclibc-ld, etc.   This is only used by
166 # the 'make install' target, and is not compiled into anything.  This
167 # defaults to $DEVEL_PREFIX/usr, but makers of .rpms and .debs will
168 # want to set this to "/usr" instead.
169 SYSTEM_DEVEL_PREFIX = $(DEVEL_PREFIX)/usr
170
171 # If you want 'make install' to install everything under a temporary
172 # directory, the define PREFIX during the install step,
173 # i.e., 'make PREFIX=/var/tmp/uClibc install'.
174 #PREFIX = $(TOPDIR)/_install
175 PREFIX =
176