Changes in uspace/Makefile.common [d9be488:8620b2f] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/Makefile.common
rd9be488 r8620b2f 44 44 # EXTRA_CLEAN additional cleanup targets 45 45 # 46 # MATH set to 'y' to use the math library47 46 # POSIX_COMPAT set to 'y' to use POSIX compatibility layer 47 # NEEDS_MATH set to 'y' to add implementation of mathematical functions 48 48 # 49 49 # Optionally, for a binary: … … 87 87 endif 88 88 89 ifeq ($(CONFIG_BUILD_SHARED_LIBS), y)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 113 112 LIBMATH_PREFIX = $(LIB_PREFIX)/math 114 LIBMATH_INCLUDES_FLAGS = \115 -I$(LIBMATH_PREFIX)/include \116 -I$(LIBMATH_PREFIX)/arch/$(UARCH)/include117 113 118 114 LIBPOSIX_PREFIX = $(LIB_PREFIX)/posix … … 150 146 LIBURI_PREFIX = $(LIB_PREFIX)/uri 151 147 152 LIBMBR_PREFIX = $(LIB_PREFIX)/mbr153 LIBGPT_PREFIX = $(LIB_PREFIX)/gpt154 155 148 ifeq ($(STATIC_NEEDED),y) 156 149 STATIC_BUILD = y … … 159 152 STATIC_BUILD = y 160 153 else 161 ifeq ($(CONFIG_USE_SHARED_LIBS), y)154 ifeq ($(CONFIG_USE_SHARED_LIBS), y) 162 155 STATIC_BUILD = n 163 156 else … … 176 169 BASE_LIBS = $(LIBC_PREFIX)/libc.a $(LIBSOFTINT_PREFIX)/libsoftint.a 177 170 LINKER_SCRIPT ?= $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld 178 ifeq ($(MATH),y)179 BASE_LIBS += $(LIBMATH_PREFIX)/libmath.a180 endif181 171 else 182 172 BASE_LIBS = $(LIBC_PREFIX)/libc.so0 $(LIBSOFTINT_PREFIX)/libsofti.so0 183 173 LFLAGS = -Bdynamic 184 174 LINKER_SCRIPT ?= $(LIBC_PREFIX)/arch/$(UARCH)/_link-dlexe.ld 185 ifeq ($(MATH),y)186 BASE_LIBS += $(LIBMATH_PREFIX)/libmath.so0187 endif188 endif189 190 ifeq ($(MATH),y)191 INCLUDES_FLAGS = $(LIBC_INCLUDES_FLAGS) $(LIBMATH_INCLUDES_FLAGS)192 else193 INCLUDES_FLAGS = $(LIBC_INCLUDES_FLAGS)194 175 endif 195 176 … … 210 191 find . -name '*.lo' -follow -exec rm \{\} \; 211 192 212 GCC_CFLAGS = $( INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \193 GCC_CFLAGS = $(LIBC_INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 213 194 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 214 195 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ … … 217 198 -pipe -ggdb -D__$(ENDIANESS)__ 218 199 219 ICC_CFLAGS = $( INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \200 ICC_CFLAGS = $(LIBC_INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 220 201 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 221 202 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ … … 250 231 # Prepare for POSIX before including platform specific stuff 251 232 ifeq ($(POSIX_COMPAT),y) 252 CFLAGS = -I$(LIBPOSIX_PREFIX)/include/posix -I$(LIBPOSIX_PREFIX)/include/233 CFLAGS = -I$(LIBPOSIX_PREFIX)/include/posix -I$(LIBPOSIX_PREFIX)/include/ 253 234 BASE_LIBS = $(LIBPOSIX_PREFIX)/libposixaslibc.a $(LIBPOSIX_PREFIX)/libc4posix.a $(LIBSOFTINT_PREFIX)/libsoftint.a 235 endif 236 237 # Do we need math? 238 ifeq ($(NEEDS_MATH),y) 239 BASE_LIBS += $(LIBMATH_PREFIX)/libmath.a 254 240 endif 255 241
Note:
See TracChangeset
for help on using the changeset viewer.