Changeset 58775d30 in mainline for uspace/Makefile.common
- Timestamp:
- 2015-03-16T16:07:21Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2003739
- Parents:
- 6069061 (diff), 795e2bf (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
r6069061 r58775d30 157 157 LIBGPT_PREFIX = $(LIB_PREFIX)/gpt 158 158 159 LIBURCU_PREFIX = $(LIB_PREFIX)/urcu 160 159 161 ifeq ($(STATIC_NEEDED),y) 160 162 STATIC_BUILD = y … … 245 247 # something won't break because of that: 246 248 # -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) -finput-charset=UTF-8 247 CLANG_CFLAGS = $( LIBC_INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \249 CLANG_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 248 250 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 249 251 -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \ 250 -Werror-implicit-function-declaration -Wwrite-strings \ 251 -integrated-as \ 252 -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)__ 253 254 254 255 LIB_CFLAGS = $(CFLAGS) -fPIC -D__IN_SHARED_LIBC__ … … 282 283 JOBFILE = $(LIBC_PREFIX)/../../../tools/jobfile.py 283 284 285 ifeq ($(FUTEX_UPGRADABLE),y) 286 CFLAGS += -I$(LIBURCU_PREFIX)/ 287 LIBS += $(LIBURCU_PREFIX)/liburcu.a 288 endif 289 284 290 ifeq ($(COMPILER),gcc_cross) 285 CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS)291 CFLAGS += $(GCC_CFLAGS) 286 292 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 287 293 endif 288 294 289 295 ifeq ($(COMPILER),gcc_helenos) 290 CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS)296 CFLAGS += $(GCC_CFLAGS) 291 297 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 292 298 endif 293 299 294 300 ifeq ($(COMPILER),gcc_native) 295 CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS)301 CFLAGS += $(GCC_CFLAGS) 296 302 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 297 303 endif 298 304 299 305 ifeq ($(COMPILER),icc) 300 CFLAGS += $(ICC_CFLAGS) $(EXTRA_CFLAGS)306 CFLAGS += $(ICC_CFLAGS) 301 307 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 302 308 endif 303 309 304 310 ifeq ($(COMPILER),clang) 305 CFLAGS += $(CLANG_CFLAGS) $(EXTRA_CFLAGS) 306 GCC_CFLAGS += $(EXTRA_CFLAGS) 311 CFLAGS += $(CLANG_CFLAGS) 307 312 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 308 313 endif … … 366 371 367 372 %.o: %.S $(DEPEND) 368 $(GCC) $(DEFS) $(GCC_CFLAGS) -D__ASM__ -c $< -o $@369 ifeq ($(PRECHECK),y) 370 $(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__ 371 376 endif 372 377 … … 378 383 379 384 %.o: %.c $(DEPEND) 380 $(CC) $(DEFS) $(CFLAGS) -c $< -o $@381 ifeq ($(PRECHECK),y) 382 $(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) 383 388 endif 384 389 385 390 %.test.o: %.c $(DEPEND) 386 $(CC) $(DEFS) $(CFLAGS) $( TEST_CFLAGS) -c $< -o $@387 ifeq ($(PRECHECK),y) 388 $(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) 389 394 endif 390 395 391 396 %.lo: %.S $(DEPEND) 392 $(CC) $(DEFS) $(LIB_CFLAGS) -D__ASM__ -c $< -o $@393 ifeq ($(PRECHECK),y) 394 $(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__ 395 400 endif 396 401 … … 402 407 403 408 %.lo: %.c $(DEPEND) 404 $(CC) $(DEFS) $(LIB_CFLAGS) -c $< -o $@405 ifeq ($(PRECHECK),y) 406 $(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) 407 412 endif 408 413 409 414 $(DEPEND): $(PRE_DEPEND) 410 makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(SOURCES) $(TEST_SOURCES) > $@ 2> /dev/null415 makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) $(EXTRA_CFLAGS) -- $(SOURCES) $(TEST_SOURCES) > $@ 2> /dev/null 411 416 -[ -f $(DEPEND_PREV) ] && diff -q $(DEPEND_PREV) $@ && mv -f $(DEPEND_PREV) $@ 412 417
Note:
See TracChangeset
for help on using the changeset viewer.