Changeset 58775d30 in mainline for uspace/Makefile.common


Ignore:
Timestamp:
2015-03-16T16:07:21Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
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.
Message:

Mainline changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile.common

    r6069061 r58775d30  
    157157LIBGPT_PREFIX = $(LIB_PREFIX)/gpt
    158158
     159LIBURCU_PREFIX = $(LIB_PREFIX)/urcu
     160
    159161ifeq ($(STATIC_NEEDED),y)
    160162        STATIC_BUILD = y
     
    245247# something won't break because of that:
    246248# -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) \
     249CLANG_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
    248250        -ffreestanding -fno-builtin -nostdlib -nostdinc \
    249251        -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)__
    253254
    254255LIB_CFLAGS = $(CFLAGS) -fPIC -D__IN_SHARED_LIBC__
     
    282283JOBFILE = $(LIBC_PREFIX)/../../../tools/jobfile.py
    283284
     285ifeq ($(FUTEX_UPGRADABLE),y)
     286        CFLAGS += -I$(LIBURCU_PREFIX)/
     287        LIBS += $(LIBURCU_PREFIX)/liburcu.a
     288endif
     289
    284290ifeq ($(COMPILER),gcc_cross)
    285         CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS)
     291        CFLAGS += $(GCC_CFLAGS)
    286292        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    287293endif
    288294
    289295ifeq ($(COMPILER),gcc_helenos)
    290         CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS)
     296        CFLAGS += $(GCC_CFLAGS)
    291297        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    292298endif
    293299
    294300ifeq ($(COMPILER),gcc_native)
    295         CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS)
     301        CFLAGS += $(GCC_CFLAGS)
    296302        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    297303endif
    298304
    299305ifeq ($(COMPILER),icc)
    300         CFLAGS += $(ICC_CFLAGS) $(EXTRA_CFLAGS)
     306        CFLAGS += $(ICC_CFLAGS)
    301307        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    302308endif
    303309
    304310ifeq ($(COMPILER),clang)
    305         CFLAGS += $(CLANG_CFLAGS) $(EXTRA_CFLAGS)
    306         GCC_CFLAGS += $(EXTRA_CFLAGS)
     311        CFLAGS += $(CLANG_CFLAGS)
    307312        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    308313endif
     
    366371
    367372%.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 $@
     374ifeq ($(PRECHECK),y)
     375        $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS) -D__ASM__
    371376endif
    372377
     
    378383
    379384%.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 $@
     386ifeq ($(PRECHECK),y)
     387        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS)
    383388endif
    384389
    385390%.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 $@
     392ifeq ($(PRECHECK),y)
     393        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS) $(TEST_CFLAGS)
    389394endif
    390395
    391396%.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 $@
     398ifeq ($(PRECHECK),y)
     399        $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(LIB_CFLAGS) $(EXTRA_CFLAGS) -D__ASM__
    395400endif
    396401
     
    402407
    403408%.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 $@
     410ifeq ($(PRECHECK),y)
     411        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(LIB_CFLAGS) $(EXTRA_CFLAGS)
    407412endif
    408413
    409414$(DEPEND): $(PRE_DEPEND)
    410         makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(SOURCES) $(TEST_SOURCES) > $@ 2> /dev/null
     415        makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) $(EXTRA_CFLAGS) -- $(SOURCES) $(TEST_SOURCES) > $@ 2> /dev/null
    411416        -[ -f $(DEPEND_PREV) ] && diff -q $(DEPEND_PREV) $@ && mv -f $(DEPEND_PREV) $@
    412417
Note: See TracChangeset for help on using the changeset viewer.