- Timestamp:
- 2015-03-15T15:31:49Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0e4c5f0, 58775d30, eec5795
- Parents:
- c12f891
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/Makefile.common
rc12f891 r795e2bf 247 247 # something won't break because of that: 248 248 # -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) -finput-charset=UTF-8 249 CLANG_CFLAGS = $( LIBC_INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \249 CLANG_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 250 250 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 251 251 -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \ 252 -Werror-implicit-function-declaration -Wwrite-strings \ 253 -integrated-as \ 254 -pipe -g -target $(CLANG_TARGET) -D__$(ENDIANESS)__ 252 -std=gnu99 -Werror-implicit-function-declaration -Wwrite-strings \ 253 -integrated-as -pipe -g -target $(CLANG_TARGET) -D__$(ENDIANESS)__ 255 254 256 255 LIB_CFLAGS = $(CFLAGS) -fPIC -D__IN_SHARED_LIBC__ … … 290 289 291 290 ifeq ($(COMPILER),gcc_cross) 292 CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS)291 CFLAGS += $(GCC_CFLAGS) 293 292 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 294 293 endif 295 294 296 295 ifeq ($(COMPILER),gcc_helenos) 297 CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS)296 CFLAGS += $(GCC_CFLAGS) 298 297 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 299 298 endif 300 299 301 300 ifeq ($(COMPILER),gcc_native) 302 CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS)301 CFLAGS += $(GCC_CFLAGS) 303 302 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 304 303 endif 305 304 306 305 ifeq ($(COMPILER),icc) 307 CFLAGS += $(ICC_CFLAGS) $(EXTRA_CFLAGS)306 CFLAGS += $(ICC_CFLAGS) 308 307 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 309 308 endif 310 309 311 310 ifeq ($(COMPILER),clang) 312 CFLAGS += $(CLANG_CFLAGS) $(EXTRA_CFLAGS) 313 GCC_CFLAGS += $(EXTRA_CFLAGS) 311 CFLAGS += $(CLANG_CFLAGS) 314 312 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 315 313 endif … … 373 371 374 372 %.o: %.S $(DEPEND) 375 $(GCC) $(DEFS) $(GCC_CFLAGS) -D__ASM__ -c $< -o $@376 ifeq ($(PRECHECK),y) 377 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__373 $(GCC) $(DEFS) $(GCC_CFLAGS) $(EXTRA_CFLAGS) -D__ASM__ -c $< -o $@ 374 ifeq ($(PRECHECK),y) 375 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS) -D__ASM__ 378 376 endif 379 377 … … 385 383 386 384 %.o: %.c $(DEPEND) 387 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@388 ifeq ($(PRECHECK),y) 389 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 385 $(CC) $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS) -c $< -o $@ 386 ifeq ($(PRECHECK),y) 387 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS) 390 388 endif 391 389 392 390 %.test.o: %.c $(DEPEND) 393 $(CC) $(DEFS) $(CFLAGS) $( TEST_CFLAGS) -c $< -o $@394 ifeq ($(PRECHECK),y) 395 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 391 $(CC) $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS) $(TEST_CFLAGS) -c $< -o $@ 392 ifeq ($(PRECHECK),y) 393 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS) $(TEST_CFLAGS) 396 394 endif 397 395 398 396 %.lo: %.S $(DEPEND) 399 $(CC) $(DEFS) $(LIB_CFLAGS) -D__ASM__ -c $< -o $@400 ifeq ($(PRECHECK),y) 401 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $( CFLAGS) -D__ASM__397 $(CC) $(DEFS) $(LIB_CFLAGS) $(EXTRA_CFLAGS) -D__ASM__ -c $< -o $@ 398 ifeq ($(PRECHECK),y) 399 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(LIB_CFLAGS) $(EXTRA_CFLAGS) -D__ASM__ 402 400 endif 403 401 … … 409 407 410 408 %.lo: %.c $(DEPEND) 411 $(CC) $(DEFS) $(LIB_CFLAGS) -c $< -o $@412 ifeq ($(PRECHECK),y) 413 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $( CFLAGS)409 $(CC) $(DEFS) $(LIB_CFLAGS) $(EXTRA_CFLAGS) -c $< -o $@ 410 ifeq ($(PRECHECK),y) 411 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(LIB_CFLAGS) $(EXTRA_CFLAGS) 414 412 endif 415 413 416 414 $(DEPEND): $(PRE_DEPEND) 417 makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(SOURCES) $(TEST_SOURCES) > $@ 2> /dev/null415 makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) $(EXTRA_CFLAGS) -- $(SOURCES) $(TEST_SOURCES) > $@ 2> /dev/null 418 416 -[ -f $(DEPEND_PREV) ] && diff -q $(DEPEND_PREV) $@ && mv -f $(DEPEND_PREV) $@ 419 417
Note:
See TracChangeset
for help on using the changeset viewer.