Changeset 8e7c9fe in mainline for uspace/Makefile.common
- Timestamp:
- 2014-09-12T03:45:25Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c53b58e
- Parents:
- 3eb0c85 (diff), 105d8d6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/Makefile.common
r3eb0c85 r8e7c9fe 44 44 # EXTRA_CLEAN additional cleanup targets 45 45 # 46 # MATH set to 'y' to use the math library 46 47 # POSIX_COMPAT set to 'y' to use POSIX compatibility layer 47 # NEEDS_MATH set to 'y' to add implementation of mathematical functions48 48 # 49 49 # Optionally, for a binary: … … 87 87 endif 88 88 89 ifeq ($(CONFIG_BUILD_SHARED_LIBS), 89 ifeq ($(CONFIG_BUILD_SHARED_LIBS),y) 90 90 ifneq ($(SLIBRARY),) 91 91 LARCHIVE = $(LIBRARY).la … … 110 110 LIBSOFTFLOAT_PREFIX = $(LIB_PREFIX)/softfloat 111 111 LIBSOFTINT_PREFIX = $(LIB_PREFIX)/softint 112 112 113 LIBMATH_PREFIX = $(LIB_PREFIX)/math 114 LIBMATH_INCLUDES_FLAGS = \ 115 -I$(LIBMATH_PREFIX)/include \ 116 -I$(LIBMATH_PREFIX)/arch/$(UARCH)/include 113 117 114 118 LIBPOSIX_PREFIX = $(LIB_PREFIX)/posix … … 155 159 STATIC_BUILD = y 156 160 else 157 ifeq ($(CONFIG_USE_SHARED_LIBS), 161 ifeq ($(CONFIG_USE_SHARED_LIBS),y) 158 162 STATIC_BUILD = n 159 163 else … … 172 176 BASE_LIBS = $(LIBC_PREFIX)/libc.a $(LIBSOFTINT_PREFIX)/libsoftint.a 173 177 LINKER_SCRIPT ?= $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld 178 ifeq ($(MATH),y) 179 BASE_LIBS += $(LIBMATH_PREFIX)/libmath.a 180 endif 174 181 else 175 182 BASE_LIBS = $(LIBC_PREFIX)/libc.so0 $(LIBSOFTINT_PREFIX)/libsofti.so0 176 183 LFLAGS = -Bdynamic 177 184 LINKER_SCRIPT ?= $(LIBC_PREFIX)/arch/$(UARCH)/_link-dlexe.ld 185 ifeq ($(MATH),y) 186 BASE_LIBS += $(LIBMATH_PREFIX)/libmath.so0 187 endif 188 endif 189 190 ifeq ($(MATH),y) 191 INCLUDES_FLAGS = $(LIBC_INCLUDES_FLAGS) $(LIBMATH_INCLUDES_FLAGS) 192 else 193 INCLUDES_FLAGS = $(LIBC_INCLUDES_FLAGS) 178 194 endif 179 195 … … 194 210 find . -name '*.lo' -follow -exec rm \{\} \; 195 211 196 GCC_CFLAGS = $( LIBC_INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \212 GCC_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 197 213 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 198 214 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ … … 201 217 -pipe -ggdb -D__$(ENDIANESS)__ 202 218 203 ICC_CFLAGS = $( LIBC_INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \219 ICC_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 204 220 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 205 221 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ … … 234 250 # Prepare for POSIX before including platform specific stuff 235 251 ifeq ($(POSIX_COMPAT),y) 236 CFLAGS = -I$(LIBPOSIX_PREFIX)/include/posix 252 CFLAGS = -I$(LIBPOSIX_PREFIX)/include/posix -I$(LIBPOSIX_PREFIX)/include/ 237 253 BASE_LIBS = $(LIBPOSIX_PREFIX)/libposixaslibc.a $(LIBPOSIX_PREFIX)/libc4posix.a $(LIBSOFTINT_PREFIX)/libsoftint.a 238 endif239 240 # Do we need math?241 ifeq ($(NEEDS_MATH),y)242 BASE_LIBS += $(LIBMATH_PREFIX)/libmath.a243 254 endif 244 255
Note:
See TracChangeset
for help on using the changeset viewer.