Changeset e3bc355 in mainline for uspace/Makefile.common
- Timestamp:
- 2013-07-28T23:07:18Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2b55edb
- Parents:
- 283ea3d (diff), ccdc63e (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
r283ea3d re3bc355 103 103 104 104 LIBC_PREFIX = $(LIB_PREFIX)/c 105 LIBC_INCLUDES_FLAGS = \ 106 -I$(LIBC_PREFIX)/include \ 107 -I$(LIBC_PREFIX)/arch/$(UARCH)/include \ 108 -I$(ROOT_PATH)/abi/include 105 109 LIBSOFTFLOAT_PREFIX = $(LIB_PREFIX)/softfloat 106 110 LIBSOFTINT_PREFIX = $(LIB_PREFIX)/softint … … 183 187 find . -name '*.lo' -follow -exec rm \{\} \; 184 188 185 GCC_CFLAGS = -I$(LIBC_PREFIX)/include-O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \189 GCC_CFLAGS = $(LIBC_INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 186 190 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 187 191 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 188 192 -Wall -Wextra -Wno-clobbered -Wno-unused-parameter -Wmissing-prototypes \ 189 193 -std=gnu99 -Werror-implicit-function-declaration -Wwrite-strings \ 190 -pipe -g -D__$(ENDIANESS)__191 192 ICC_CFLAGS = -I$(LIBC_PREFIX)/include-O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \194 -pipe -ggdb -D__$(ENDIANESS)__ 195 196 ICC_CFLAGS = $(LIBC_INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 193 197 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 194 198 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ … … 197 201 -pipe -g -D__$(ENDIANESS)__ 198 202 199 CLANG_CFLAGS = -I$(LIBC_PREFIX)/include -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 200 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 201 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 203 # clang does not support following options but I am not sure whether 204 # something won't break because of that: 205 # -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) -finput-charset=UTF-8 206 CLANG_CFLAGS = $(LIBC_INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 207 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 202 208 -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \ 203 209 -Werror-implicit-function-declaration -Wwrite-strings \ 204 -pipe -g -arch $(CLANG_ARCH) -D__$(ENDIANESS)__ 210 -integrated-as \ 211 -pipe -g -target $(CLANG_TARGET) -D__$(ENDIANESS)__ 205 212 206 213 LIB_CFLAGS = $(CFLAGS) -fPIC -D__IN_SHARED_LIBC__ … … 218 225 endif 219 226 220 ## Setup platform configuration 221 # 222 223 -include $(LIBC_PREFIX)/arch/$(UARCH)/Makefile.common 224 225 ## Compilation options 226 # 227 228 JOBFILE = $(LIBC_PREFIX)/../../../tools/jobfile.py 229 227 # Prepare for POSIX before including platform specific stuff 230 228 ifeq ($(POSIX_COMPAT),y) 231 229 CFLAGS = -I$(LIBPOSIX_PREFIX)/include/posix -I$(LIBPOSIX_PREFIX)/include/ 232 LIBS += $(LIBPOSIX_PREFIX)/libposix.a 233 endif 230 BASE_LIBS = $(LIBPOSIX_PREFIX)/libposixaslibc.a $(LIBPOSIX_PREFIX)/libc4posix.a $(LIBSOFTINT_PREFIX)/libsoftint.a 231 endif 232 233 ## Setup platform configuration 234 # 235 236 -include $(LIBC_PREFIX)/arch/$(UARCH)/Makefile.common 237 238 ## Compilation options 239 # 240 241 JOBFILE = $(LIBC_PREFIX)/../../../tools/jobfile.py 234 242 235 243 ifeq ($(COMPILER),gcc_cross) … … 250 258 ifeq ($(COMPILER),clang) 251 259 CFLAGS += $(CLANG_CFLAGS) $(EXTRA_CFLAGS) 260 GCC_CFLAGS += $(EXTRA_CFLAGS) 252 261 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 253 262 endif … … 302 311 303 312 %.o: %.S $(DEPEND) 304 $( CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@313 $(GCC) $(DEFS) $(GCC_CFLAGS) -D__ASM__ -c $< -o $@ 305 314 ifeq ($(PRECHECK),y) 306 315 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__
Note:
See TracChangeset
for help on using the changeset viewer.