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


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile.common

    r1dcc0b9 r2f9a8e8  
    142142LIBHOUND_PREFIX = $(LIB_PREFIX)/hound
    143143LIBPCM_PREFIX = $(LIB_PREFIX)/pcm
    144 LIBNET_PREFIX = $(LIB_PREFIX)/net
    145144LIBNIC_PREFIX = $(LIB_PREFIX)/nic
    146145LIBIEEE80211_PREFIX = $(LIB_PREFIX)/ieee80211
     
    158157LIBMBR_PREFIX = $(LIB_PREFIX)/mbr
    159158LIBGPT_PREFIX = $(LIB_PREFIX)/gpt
     159LIBNETTL_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 = $(LIBC_INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
     251CLANG_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
    252252        -ffreestanding -fno-builtin -nostdlib -nostdinc \
    253253        -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \
    254         -Werror-implicit-function-declaration -Wwrite-strings \
    255         -integrated-as \
    256         -pipe -g -target $(CLANG_TARGET) -D__$(ENDIANESS)__
     254        -std=gnu99 -Werror-implicit-function-declaration -Wwrite-strings \
     255        -integrated-as -pipe -g -target $(CLANG_TARGET) -D__$(ENDIANESS)__
    257256
    258257LIB_CFLAGS = $(CFLAGS) -fPIC -D__IN_SHARED_LIBC__
     
    265264
    266265ifeq ($(CONFIG_LINE_DEBUG),y)
    267         GCC_CFLAGS += -g
     266        GCC_CFLAGS += -ggdb
    268267        ICC_CFLAGS += -g
    269268        CLANG_CFLAGS += -g
     
    292291
    293292ifeq ($(COMPILER),gcc_cross)
    294         CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS)
     293        CFLAGS += $(GCC_CFLAGS)
    295294        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    296295endif
    297296
    298297ifeq ($(COMPILER),gcc_helenos)
    299         CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS)
     298        CFLAGS += $(GCC_CFLAGS)
    300299        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    301300endif
    302301
    303302ifeq ($(COMPILER),gcc_native)
    304         CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS)
     303        CFLAGS += $(GCC_CFLAGS)
    305304        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    306305endif
    307306
    308307ifeq ($(COMPILER),icc)
    309         CFLAGS += $(ICC_CFLAGS) $(EXTRA_CFLAGS)
     308        CFLAGS += $(ICC_CFLAGS)
    310309        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    311310endif
    312311
    313312ifeq ($(COMPILER),clang)
    314         CFLAGS += $(CLANG_CFLAGS) $(EXTRA_CFLAGS)
    315         GCC_CFLAGS += $(EXTRA_CFLAGS)
     313        CFLAGS += $(CLANG_CFLAGS)
    316314        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    317315endif
     
    375373
    376374%.o: %.S $(DEPEND)
    377         $(GCC) $(DEFS) $(GCC_CFLAGS) -D__ASM__ -c $< -o $@
    378 ifeq ($(PRECHECK),y)
    379         $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__
     375        $(GCC) $(DEFS) $(GCC_CFLAGS) $(EXTRA_CFLAGS) -D__ASM__ -c $< -o $@
     376ifeq ($(PRECHECK),y)
     377        $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS) -D__ASM__
    380378endif
    381379
     
    387385
    388386%.o: %.c $(DEPEND)
    389         $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
    390 ifeq ($(PRECHECK),y)
    391         $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
     387        $(CC) $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS) -c $< -o $@
     388ifeq ($(PRECHECK),y)
     389        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS)
    392390endif
    393391
    394392%.test.o: %.c $(DEPEND)
    395         $(CC) $(DEFS) $(CFLAGS) $(TEST_CFLAGS) -c $< -o $@
    396 ifeq ($(PRECHECK),y)
    397         $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
     393        $(CC) $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS) $(TEST_CFLAGS) -c $< -o $@
     394ifeq ($(PRECHECK),y)
     395        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS) $(TEST_CFLAGS)
    398396endif
    399397
    400398%.lo: %.S $(DEPEND)
    401         $(CC) $(DEFS) $(LIB_CFLAGS) -D__ASM__ -c $< -o $@
    402 ifeq ($(PRECHECK),y)
    403         $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__
     399        $(CC) $(DEFS) $(LIB_CFLAGS) $(EXTRA_CFLAGS) -D__ASM__ -c $< -o $@
     400ifeq ($(PRECHECK),y)
     401        $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(LIB_CFLAGS) $(EXTRA_CFLAGS) -D__ASM__
    404402endif
    405403
     
    411409
    412410%.lo: %.c $(DEPEND)
    413         $(CC) $(DEFS) $(LIB_CFLAGS) -c $< -o $@
    414 ifeq ($(PRECHECK),y)
    415         $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
     411        $(CC) $(DEFS) $(LIB_CFLAGS) $(EXTRA_CFLAGS) -c $< -o $@
     412ifeq ($(PRECHECK),y)
     413        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(LIB_CFLAGS) $(EXTRA_CFLAGS)
    416414endif
    417415
    418416$(DEPEND): $(PRE_DEPEND)
    419         makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(SOURCES) $(TEST_SOURCES) > $@ 2> /dev/null
     417        makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) $(EXTRA_CFLAGS) -- $(SOURCES) $(TEST_SOURCES) > $@ 2> /dev/null
    420418        -[ -f $(DEPEND_PREV) ] && diff -q $(DEPEND_PREV) $@ && mv -f $(DEPEND_PREV) $@
    421419
Note: See TracChangeset for help on using the changeset viewer.