- Timestamp:
- 2017-10-03T18:12:17Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a41cda7
- Parents:
- 0f28387
- Location:
- uspace
- Files:
-
- 9 edited
-
Makefile.common (modified) (8 diffs)
-
lib/c/Makefile (modified) (1 diff)
-
lib/c/arch/amd64/Makefile.common (modified) (1 diff)
-
lib/c/arch/arm32/Makefile.common (modified) (2 diffs)
-
lib/c/arch/ia32/Makefile.common (modified) (1 diff)
-
lib/c/arch/mips32/Makefile.common (modified) (2 diffs)
-
lib/c/arch/mips32eb/Makefile.common (modified) (2 diffs)
-
lib/c/arch/ppc32/Makefile.common (modified) (1 diff)
-
lib/c/arch/sparc64/Makefile.common (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/Makefile.common
r0f28387 ra0a273e 160 160 LIBNETTL_PREFIX = $(LIB_PREFIX)/nettl 161 161 162 AFLAGS = --fatal-warnings162 AFLAGS = 163 163 LFLAGS = --fatal-warnings 164 165 # FIXME: This condition is a workaround for issues #692 and #693. 166 ifneq ($(KARCH),ia64) 167 ifneq ($(KARCH),mips32) 168 AFLAGS += --fatal-warnings 169 endif 170 endif 164 171 165 172 ifeq ($(STATIC_NEEDED),y) … … 228 235 find . -name '*.lo' -follow -exec rm \{\} \; 229 236 230 GCC_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 231 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 232 -finput-charset=UTF-8 -ffreestanding -fno-builtin -ffunction-sections \ 233 -nostdlib -nostdinc -Wall -Wextra -Wno-clobbered -Wno-unused-parameter \ 234 -Wmissing-prototypes -std=gnu99 -Werror-implicit-function-declaration \ 235 -Wwrite-strings -pipe -ggdb -D__$(ENDIANESS)__ 236 237 ICC_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 238 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 239 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 240 -Wall -Wextra -Wno-clobbered -Wno-unused-parameter -Wmissing-prototypes \ 241 -Werror-implicit-function-declaration -Wwrite-strings \ 242 -pipe -g -D__$(ENDIANESS)__ 243 244 # clang does not support following options but I am not sure whether 245 # something won't break because of that: 246 # -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) -finput-charset=UTF-8 247 CLANG_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 248 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 249 -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \ 237 COMMON_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 238 -ffreestanding -fno-builtin -nostdlib -nostdinc -fexec-charset=UTF-8 \ 239 -finput-charset=UTF-8 -D__$(ENDIANESS)__ 240 241 GCC_CFLAGS = -ffunction-sections -Wall -Wextra -Wno-clobbered \ 242 -Wno-unused-parameter -Wmissing-prototypes -std=gnu99 \ 243 -Werror-implicit-function-declaration \ 244 -Wwrite-strings -pipe 245 246 ICC_CFLAGS = -Wall -Wextra -Wno-clobbered -Wno-unused-parameter \ 247 -Wmissing-prototypes -Werror-implicit-function-declaration \ 248 -Wwrite-strings -pipe 249 250 CLANG_CFLAGS = -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \ 250 251 -std=gnu99 -Werror-implicit-function-declaration -Wwrite-strings \ 251 -integrated-as -pipe -g -target $(CLANG_TARGET) -D__$(ENDIANESS)__ 252 253 LIB_CFLAGS = $(CFLAGS) -fPIC 254 LIB_LFLAGS = $(LFLAGS) -shared -soname $(LSONAME) --whole-archive 252 -pipe -fno-stack-protector -fno-PIC 255 253 256 254 ifeq ($(CONFIG_DEBUG),y) 257 GCC_CFLAGS += -Werror 258 ICC_CFLAGS += -Werror 255 COMMON_CFLAGS += -Werror 259 256 endif 260 257 … … 267 264 # Prepare for POSIX before including platform specific stuff 268 265 ifeq ($(POSIX_COMPAT),y) 269 CFLAGS = -I$(LIBPOSIX_PREFIX)/include/posix -I$(LIBPOSIX_PREFIX)/include/266 CFLAGS += -I$(LIBPOSIX_PREFIX)/include/posix -I$(LIBPOSIX_PREFIX)/include/ 270 267 BASE_LIBS = $(LIBPOSIX_PREFIX)/libposixaslibc.a $(LIBPOSIX_PREFIX)/libc4posix.a $(LIBSOFTINT_PREFIX)/libsoftint.a 271 268 endif … … 282 279 283 280 ifeq ($(COMPILER),gcc_cross) 284 CFLAGS += $( GCC_CFLAGS)281 CFLAGS += $(COMMON_CFLAGS) $(GCC_CFLAGS) 285 282 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 286 283 endif 287 284 288 285 ifeq ($(COMPILER),gcc_helenos) 289 CFLAGS += $( GCC_CFLAGS)286 CFLAGS += $(COMMON_CFLAGS) $(GCC_CFLAGS) 290 287 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 291 288 endif 292 289 293 290 ifeq ($(COMPILER),gcc_native) 294 CFLAGS += $( GCC_CFLAGS)291 CFLAGS += $(COMMON_CFLAGS) $(GCC_CFLAGS) 295 292 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 296 293 endif 297 294 298 295 ifeq ($(COMPILER),icc) 299 CFLAGS += $( ICC_CFLAGS)296 CFLAGS += $(COMMON_CFLAGS) $(ICC_CFLAGS) 300 297 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 301 298 endif 302 299 303 300 ifeq ($(COMPILER),clang) 304 CFLAGS += $(C LANG_CFLAGS)301 CFLAGS += $(COMMON_CFLAGS) $(CLANG_CFLAGS) 305 302 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 306 303 endif 304 305 LIB_CFLAGS = $(CFLAGS) -fPIC 306 LIB_LFLAGS = $(LFLAGS) -shared -soname $(LSONAME) --whole-archive 307 307 308 308 ifneq ($(MAKECMDGOALS),clean) 309 309 -include $(DEPEND) 310 310 endif 311 312 AS_CFLAGS := $(addprefix -Xassembler ,$(AFLAGS)) 313 LD_CFLAGS := $(addprefix -Xlinker ,$(LFLAGS)) 311 314 312 315 OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) … … 372 375 373 376 %.o: %.S $(DEPEND) 374 $( GCC) $(DEFS) $(GCC_CFLAGS) $(EXTRA_CFLAGS) -D__ASM__ -c $< -o $@377 $(CC) $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS) $(AS_CFLAGS) -D__ASM__ -c $< -o $@ 375 378 ifeq ($(PRECHECK),y) 376 379 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS) -D__ASM__ … … 378 381 379 382 %.o: %.s $(DEPEND) 380 $( AS) $(AFLAGS) -o $@ $<383 $(CC) $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS) $(AS_CFLAGS) -D__ASM__ -c $< -o $@ 381 384 ifeq ($(PRECHECK),y) 382 385 $(JOBFILE) $(JOB) $< $@ as asm … … 396 399 397 400 %.lo: %.S $(DEPEND) 398 $(CC) $(DEFS) $(LIB_CFLAGS) $(EXTRA_CFLAGS) -D__ASM__ -c $< -o $@401 $(CC) $(DEFS) $(LIB_CFLAGS) $(EXTRA_CFLAGS) $(AS_CFLAGS) -D__ASM__ -c $< -o $@ 399 402 ifeq ($(PRECHECK),y) 400 403 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(LIB_CFLAGS) $(EXTRA_CFLAGS) -D__ASM__ … … 402 405 403 406 %.lo: %.s $(DEPEND) 404 $( AS) $(AFLAGS) -o $@ $<407 $(CC) $(DEFS) $(LIB_CFLAGS) $(EXTRA_CFLAGS) $(AS_CFLAGS) -D__ASM__ -c $< -o $@ 405 408 ifeq ($(PRECHECK),y) 406 409 $(JOBFILE) $(JOB) $< $@ as asm -
uspace/lib/c/Makefile
r0f28387 ra0a273e 194 194 %.h: %.ag 195 195 $(AUTOGEN) probe $< >$<.probe.c 196 $(CC ) $(DEFS) $(CFLAGS) -S -o $<.probe.s $<.probe.c196 $(CC_AUTOGEN) $(DEFS) $(CFLAGS) -S -o $<.probe.s $<.probe.c 197 197 $(AUTOGEN) generate $< <$<.probe.s >$@ 198 198 -
uspace/lib/c/arch/amd64/Makefile.common
r0f28387 ra0a273e 27 27 # 28 28 29 GCC_CFLAGS += -mno-tls-direct-seg-refs -fno-omit-frame-pointer 30 CLANG_CFLAGS += -fno-omit-frame-pointer 29 COMMON_CFLAGS += -mno-tls-direct-seg-refs -fno-omit-frame-pointer 31 30 LFLAGS += --gc-sections 32 31 -
uspace/lib/c/arch/arm32/Makefile.common
r0f28387 ra0a273e 28 28 # 29 29 30 GCC_CFLAGS += -ffixed-r9 -mtp=soft -fno-omit-frame-pointer -mapcs-frame \30 COMMON_CFLAGS += -ffixed-r9 -mtp=soft -fno-omit-frame-pointer -mapcs-frame \ 31 31 -march=$(subst _,-,$(PROCESSOR_ARCH)) 32 32 … … 34 34 35 35 ifeq ($(CONFIG_FPU),y) 36 GCC_CFLAGS += -mfloat-abi=hard36 COMMON_CFLAGS += -mfloat-abi=hard 37 37 else 38 38 BASE_LIBS += $(LIBSOFTFLOAT_PREFIX)/libsoftfloat.a -
uspace/lib/c/arch/ia32/Makefile.common
r0f28387 ra0a273e 28 28 29 29 ifeq ($(PROCESSOR),i486) 30 GCC_CFLAGS += -march=i48630 COMMON_CFLAGS += -march=i486 31 31 else 32 GCC_CFLAGS += -march=pentium32 COMMON_CFLAGS += -march=pentium 33 33 endif 34 34 35 GCC_CFLAGS += -mno-tls-direct-seg-refs -fno-omit-frame-pointer 36 CLANG_CFLAGS += -fno-omit-frame-pointer 35 COMMON_CFLAGS += -mno-tls-direct-seg-refs -fno-omit-frame-pointer 37 36 LFLAGS += --gc-sections 38 37 -
uspace/lib/c/arch/mips32/Makefile.common
r0f28387 ra0a273e 27 27 # 28 28 29 GCC_CFLAGS += -msoft-float -mabi=3229 COMMON_CFLAGS += -msoft-float -mabi=32 30 30 BASE_LIBS += $(LIBSOFTFLOAT_PREFIX)/libsoftfloat.a 31 31 AS_PROLOG = .module softfloat;.abicalls; … … 38 38 39 39 ifeq ($(MACHINE),msim) 40 GCC_CFLAGS += -march=r400040 COMMON_CFLAGS += -march=r4000 41 41 endif 42 42 43 43 ifeq ($(MACHINE),lmalta) 44 GCC_CFLAGS += -march=4kc44 COMMON_CFLAGS += -march=4kc 45 45 endif 46 46 -
uspace/lib/c/arch/mips32eb/Makefile.common
r0f28387 ra0a273e 27 27 # 28 28 29 GCC_CFLAGS += -msoft-float -mabi=3229 COMMON_CFLAGS += -msoft-float -mabi=32 30 30 BASE_LIBS += $(LIBSOFTFLOAT_PREFIX)/libsoftfloat.a 31 31 AS_PROLOG = .module softfloat;.abicalls; … … 38 38 39 39 ifeq ($(MACHINE),bmalta) 40 GCC_CFLAGS += -march=4kc40 COMMON_CFLAGS += -march=4kc 41 41 endif 42 42 -
uspace/lib/c/arch/ppc32/Makefile.common
r0f28387 ra0a273e 33 33 endif 34 34 35 GCC_CFLAGS += -mcpu=powerpc -m$(FLOATS)-float -m3235 COMMON_CFLAGS += -mcpu=powerpc -m$(FLOATS)-float -m32 36 36 BASE_LIBS += $(LIBSOFTFLOAT_PREFIX)/libsoftfloat.a 37 37 AFLAGS += -a32 -
uspace/lib/c/arch/sparc64/Makefile.common
r0f28387 ra0a273e 28 28 29 29 ifeq ($(PROCESSOR),sun4v) 30 GCC_CFLAGS += -mcpu=niagara -mno-vis30 COMMON_CFLAGS += -mcpu=niagara -mno-vis 31 31 else 32 GCC_CFLAGS += -mcpu=ultrasparc32 COMMON_CFLAGS += -mcpu=ultrasparc 33 33 endif 34 34 35 GCC_CFLAGS += -m64 -mcmodel=medlow35 COMMON_CFLAGS += -m64 -mcmodel=medlow 36 36 37 37 LFLAGS += -no-check-sections --gc-sections
Note:
See TracChangeset
for help on using the changeset viewer.
