Config.sh 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. # Library Configuration rules for uClibc
  2. #
  3. # This file contains rules which are shared between multiple Makefiles. Feel
  4. # free to adjust to taste...
  5. # -Erik Andersen <andersen@lineo.com> <andersee@debian.org>
  6. #
  7. # Copyright (C) 2000 by Lineo, inc.
  8. # Copyright (C) 2001 by Hewlett-Packard Australia
  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. # What arch do you want to compile for...
  28. #TARGET_ARCH=arm
  29. #TARGET_ARCH=i386
  30. #TARGET_ARCH=m68k
  31. #TARGET_ARCH=powerpc
  32. TARGET_ARCH=sh
  33. #TARGET_ARCH=sparc
  34. # If you are running a cross compiler, you may want to set this
  35. # to something more interesting...
  36. NATIVE_CC = gcc
  37. CROSS = /usr/cygnus/yapp-001013/H-i686-pc-linux-gnulibc2.1/bin/sh-linux-gnu-
  38. CC = $(CROSS)gcc
  39. AR = $(CROSS)ar
  40. LD = $(CROSS)ld
  41. NM = $(CROSS)nm
  42. STRIPTOOL = $(CROSS)strip
  43. #STRIPTOOL = /bin/true
  44. # Set the following to `true' to make a debuggable build, and `false' for
  45. # production builds.
  46. DODEBUG = false
  47. # Compiler warnings you want to see
  48. WARNINGS=-Wall
  49. # Enable support for shared libraries?
  50. HAVE_SHARED = false
  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=../../../linux
  59. #
  60. # ARCH_CFLAGS if your have something special to add to the CFLAGS
  61. #
  62. ARCH_CFLAGS = -DNO_UNDERSCORES
  63. ifeq ($(strip $(TARGET_ARCH)),sh)
  64. ifeq ($(strip $(TARGET_PROC)),SH2_BIG_THAMIS)
  65. ARCH_CFLAGS += -DHIOS -mb -m2 -specs=/usr/cygnus/yapp-001013/H-i686-pc-linux-gnulibc2.1/lib/gcc-lib/sh-linux-gnu/2.96-yapp-001013/specs_sh2
  66. HAS_MMU = false
  67. endif
  68. ifeq ($(strip $(TARGET_PROC)),SH3_BIG_UCLINUX)
  69. ARCH_CFLAGS += -mb
  70. HAS_MMU = false
  71. endif
  72. ifeq ($(strip $(TARGET_PROC)),SH3_LITTLE_UCLINUX)
  73. ARCH_CFLAGS += -ml
  74. HAS_MMU = false
  75. endif
  76. ifeq ($(strip $(TARGET_PROC)),SH3)
  77. ARCH_CFLAGS += -ml
  78. HAS_MMU = true
  79. endif
  80. endif
  81. # Set this to `false' if you don't have/need basic floating point support
  82. # support in libc (strtod, printf, scanf). Set it to `true' otherwise.
  83. # Note: If not true, Rules.mak disables libm as well.
  84. HAS_FLOATING_POINT = true
  85. # Set this to `false' if you don't have/need float functions in libm.
  86. # Set it to `true' otherwise, and make sure HAS_FLOATING_POINT is true as well.
  87. HAS_LIBM_FLOAT = false
  88. # Set this to `false' if you don't have/need double functions in libm.
  89. # Set it to `true' otherwise, and make sure HAS_FLOATING_POINT is true as well.
  90. HAS_LIBM_DOUBLE = false
  91. # Set this to `false' if you don't have/need long double functions in libm.
  92. # Set it to `true' otherwise, and make sure HAS_FLOATING_POINT is true as well.
  93. HAS_LIBM_LONG_DOUBLE = false
  94. # Set this to `false' if you don't have/need "(unsigned) long long int" support.
  95. # Set it to `true' otherwise.
  96. # Affects *printf and *scanf functions.
  97. # Also omits strto(u)ll, and (u)lltostr from the library if `false'.
  98. HAS_LONG_LONG = false
  99. # Set this to `false' if you don't have/need locale support; `true' otherwise.
  100. # Note: Currently only affects the ctype functions. You must also generate
  101. # a locale file for anything but the C locale. See directory extra/locale for
  102. # a utility to do so. Also see the following option.
  103. HAS_LOCALE = false
  104. # Set this to the path of your uClibc locale file directory.
  105. # Warning! This must be different than the glibc locale directory to avoid
  106. # name conflicts, as the locale files are entirely different in format!
  107. LOCALE_DIR = "/usr/share/uClibc-locale/"
  108. # This specifies which malloc implementation is used.
  109. # "malloc-simple" is very, very small, but is also very, very dumb
  110. # and does not try to make good use of memory or clean up after itself.
  111. #
  112. # "malloc" on the other hand is a bit bigger, but is pretty smart thereby
  113. # minimizing memory wastage and reusing already allocated memory. This
  114. # can be lots faster and safer IMHO.
  115. #
  116. # "malloc-930716" is from libc-5.3.12 and was/is the standard gnu malloc.
  117. # It is actually smaller than "malloc", at least on i386. Right now, it
  118. # only works on i386 (and maybe m68k) because it needs sbrk.
  119. MALLOC = malloc-simple
  120. #MALLOC = malloc
  121. #MALLOC = malloc-930716
  122. # If you want to collect common syscall code into one function, set to this to
  123. # `true'. Set it to false otherwise.
  124. # On i386 this saves about than 2.8k over all syscalls.
  125. # The idea came from the implementation in dietlibc.
  126. # At present, only affects i386.
  127. UNIFIED_SYSCALL = false
  128. # If you want large file summit support (greater then 2 Gib),
  129. # turn this on. This has no effect unless your kernel supports
  130. # lfs. This currently does nothing, but may someday...
  131. DOLFS = false
  132. # If you want to include RPC support, enable this. RPC is almost never used
  133. # for anything except NFS support, so unless you plan to use NFS, leave this
  134. # disabled. This is off by default.
  135. INCLUDE_RPC = false
  136. # If you want to include support for the next version of the Internet
  137. # Protocol: IP version 6, enable this. This is off by default.
  138. INCLUDE_IPV6 = false
  139. # If you want to compile the library as PIC code, turn this on.
  140. DOPIC = false
  141. # PREFIX is the directory prefix that is applied to all installed
  142. # files. Typically, it is set to /usr or /usr/local, although it could
  143. # also be /opt/vendor_name_here/some/random/path/. The install_runtime
  144. # makefile target installs a few symbolic links based on PREFIX, not
  145. # DEVEL_PREFIX.
  146. #
  147. # DEVEL_PREFIX is the directory where the development environment will
  148. # be installed. The uClibc header files are installed into
  149. # $(DEVEL_PREFIX)/include, static libraries are installed into
  150. # $(DEVEL_PREFIX)/lib, etc. This directory is compiled into the uclibc
  151. # cross compiler spoofer. Generally, DEVEL_PREFIX should be set to
  152. # the same thing as $(PREFIX). DEVEL_PREFIX is used by the Makefile install
  153. # targets install_gcc, install_dev, and install_runtime.
  154. #
  155. # TARGET_PREFIX is the directory into which the target runtime
  156. # environment is installed. The target runtime environment is what one
  157. # would use for a embedded system where uclibc is the native libaray.
  158. # This will typically be a staging area for creating a root filesystem
  159. # for the target system, so the default is in the local directory.
  160. #
  161. # If you want to install to a temporary directory before copying files
  162. # to their final location, define DESTDIR during the install step,
  163. # i.e., 'make install DESTDIR=/home/foo/uclibc/_install'.
  164. PREFIX = /opt/uClinux
  165. DEVEL_PREFIX = $(PREFIX)/$(TARGET_ARCH)-elf
  166. TARGET_PREFIX = $(TOPDIR)/_install