Changes in uspace/Makefile.common [2f9a8e8:1dcc0b9] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile.common

    r2f9a8e8 r1dcc0b9  
    142142LIBHOUND_PREFIX = $(LIB_PREFIX)/hound
    143143LIBPCM_PREFIX = $(LIB_PREFIX)/pcm
     144LIBNET_PREFIX = $(LIB_PREFIX)/net
    144145LIBNIC_PREFIX = $(LIB_PREFIX)/nic
    145146LIBIEEE80211_PREFIX = $(LIB_PREFIX)/ieee80211
     
    157158LIBMBR_PREFIX = $(LIB_PREFIX)/mbr
    158159LIBGPT_PREFIX = $(LIB_PREFIX)/gpt
    159 LIBNETTL_PREFIX = $(LIB_PREFIX)/nettl
    160160
    161161LIBURCU_PREFIX = $(LIB_PREFIX)/urcu
     
    249249# something won't break because of that:
    250250# -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) -finput-charset=UTF-8
    251 CLANG_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
     251CLANG_CFLAGS = $(LIBC_INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
    252252        -ffreestanding -fno-builtin -nostdlib -nostdinc \
    253253        -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \
    254         -std=gnu99 -Werror-implicit-function-declaration -Wwrite-strings \
    255         -integrated-as -pipe -g -target $(CLANG_TARGET) -D__$(ENDIANESS)__
     254        -Werror-implicit-function-declaration -Wwrite-strings \
     255        -integrated-as \
     256        -pipe -g -target $(CLANG_TARGET) -D__$(ENDIANESS)__
    256257
    257258LIB_CFLAGS = $(CFLAGS) -fPIC -D__IN_SHARED_LIBC__
     
    264265
    265266ifeq ($(CONFIG_LINE_DEBUG),y)
    266         GCC_CFLAGS += -ggdb
     267        GCC_CFLAGS += -g
    267268        ICC_CFLAGS += -g
    268269        CLANG_CFLAGS += -g
     
    291292
    292293ifeq ($(COMPILER),gcc_cross)
    293         CFLAGS += $(GCC_CFLAGS)
     294        CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS)
    294295        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    295296endif
    296297
    297298ifeq ($(COMPILER),gcc_helenos)
    298         CFLAGS += $(GCC_CFLAGS)
     299        CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS)
    299300        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    300301endif
    301302
    302303ifeq ($(COMPILER),gcc_native)
    303         CFLAGS += $(GCC_CFLAGS)
     304        CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS)
    304305        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    305306endif
    306307
    307308ifeq ($(COMPILER),icc)
    308         CFLAGS += $(ICC_CFLAGS)
     309        CFLAGS += $(ICC_CFLAGS) $(EXTRA_CFLAGS)
    309310        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    310311endif
    311312
    312313ifeq ($(COMPILER),clang)
    313         CFLAGS += $(CLANG_CFLAGS)
     314        CFLAGS += $(CLANG_CFLAGS) $(EXTRA_CFLAGS)
     315        GCC_CFLAGS += $(EXTRA_CFLAGS)
    314316        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    315317endif
     
    373375
    374376%.o: %.S $(DEPEND)
    375         $(GCC) $(DEFS) $(GCC_CFLAGS) $(EXTRA_CFLAGS) -D__ASM__ -c $< -o $@
    376 ifeq ($(PRECHECK),y)
    377         $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS) -D__ASM__
     377        $(GCC) $(DEFS) $(GCC_CFLAGS) -D__ASM__ -c $< -o $@
     378ifeq ($(PRECHECK),y)
     379        $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__
    378380endif
    379381
     
    385387
    386388%.o: %.c $(DEPEND)
    387         $(CC) $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS) -c $< -o $@
    388 ifeq ($(PRECHECK),y)
    389         $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS)
     389        $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     390ifeq ($(PRECHECK),y)
     391        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
    390392endif
    391393
    392394%.test.o: %.c $(DEPEND)
    393         $(CC) $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS) $(TEST_CFLAGS) -c $< -o $@
    394 ifeq ($(PRECHECK),y)
    395         $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS) $(TEST_CFLAGS)
     395        $(CC) $(DEFS) $(CFLAGS) $(TEST_CFLAGS) -c $< -o $@
     396ifeq ($(PRECHECK),y)
     397        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
    396398endif
    397399
    398400%.lo: %.S $(DEPEND)
    399         $(CC) $(DEFS) $(LIB_CFLAGS) $(EXTRA_CFLAGS) -D__ASM__ -c $< -o $@
    400 ifeq ($(PRECHECK),y)
    401         $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(LIB_CFLAGS) $(EXTRA_CFLAGS) -D__ASM__
     401        $(CC) $(DEFS) $(LIB_CFLAGS) -D__ASM__ -c $< -o $@
     402ifeq ($(PRECHECK),y)
     403        $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__
    402404endif
    403405
     
    409411
    410412%.lo: %.c $(DEPEND)
    411         $(CC) $(DEFS) $(LIB_CFLAGS) $(EXTRA_CFLAGS) -c $< -o $@
    412 ifeq ($(PRECHECK),y)
    413         $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(LIB_CFLAGS) $(EXTRA_CFLAGS)
     413        $(CC) $(DEFS) $(LIB_CFLAGS) -c $< -o $@
     414ifeq ($(PRECHECK),y)
     415        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
    414416endif
    415417
    416418$(DEPEND): $(PRE_DEPEND)
    417         makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) $(EXTRA_CFLAGS) -- $(SOURCES) $(TEST_SOURCES) > $@ 2> /dev/null
     419        makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(SOURCES) $(TEST_SOURCES) > $@ 2> /dev/null
    418420        -[ -f $(DEPEND_PREV) ] && diff -q $(DEPEND_PREV) $@ && mv -f $(DEPEND_PREV) $@
    419421
Note: See TracChangeset for help on using the changeset viewer.