Changes in uspace/Makefile.common [8620b2f:af0a2c7] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/Makefile.common
r8620b2f raf0a2c7 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 … … 146 150 LIBURI_PREFIX = $(LIB_PREFIX)/uri 147 151 152 LIBMBR_PREFIX = $(LIB_PREFIX)/mbr 153 LIBGPT_PREFIX = $(LIB_PREFIX)/gpt 154 148 155 ifeq ($(STATIC_NEEDED),y) 149 156 STATIC_BUILD = y … … 152 159 STATIC_BUILD = y 153 160 else 154 ifeq ($(CONFIG_USE_SHARED_LIBS), 161 ifeq ($(CONFIG_USE_SHARED_LIBS),y) 155 162 STATIC_BUILD = n 156 163 else … … 169 176 BASE_LIBS = $(LIBC_PREFIX)/libc.a $(LIBSOFTINT_PREFIX)/libsoftint.a 170 177 LINKER_SCRIPT ?= $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld 178 ifeq ($(MATH),y) 179 BASE_LIBS += $(LIBMATH_PREFIX)/libmath.a 180 endif 171 181 else 172 182 BASE_LIBS = $(LIBC_PREFIX)/libc.so0 $(LIBSOFTINT_PREFIX)/libsofti.so0 173 183 LFLAGS = -Bdynamic 174 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) 175 194 endif 176 195 … … 191 210 find . -name '*.lo' -follow -exec rm \{\} \; 192 211 193 GCC_CFLAGS = $( LIBC_INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \212 GCC_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 194 213 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 195 214 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ … … 198 217 -pipe -ggdb -D__$(ENDIANESS)__ 199 218 200 ICC_CFLAGS = $( LIBC_INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \219 ICC_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 201 220 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 202 221 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ … … 231 250 # Prepare for POSIX before including platform specific stuff 232 251 ifeq ($(POSIX_COMPAT),y) 233 CFLAGS = -I$(LIBPOSIX_PREFIX)/include/posix 252 CFLAGS = -I$(LIBPOSIX_PREFIX)/include/posix -I$(LIBPOSIX_PREFIX)/include/ 234 253 BASE_LIBS = $(LIBPOSIX_PREFIX)/libposixaslibc.a $(LIBPOSIX_PREFIX)/libc4posix.a $(LIBSOFTINT_PREFIX)/libsoftint.a 235 endif236 237 # Do we need math?238 ifeq ($(NEEDS_MATH),y)239 BASE_LIBS += $(LIBMATH_PREFIX)/libmath.a240 254 endif 241 255
Note:
See TracChangeset
for help on using the changeset viewer.