Changes in uspace/Makefile.common [1dcc0b9:795e2bf] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile.common

    r1dcc0b9 r795e2bf  
    120120LIBPOSIX_PREFIX = $(LIB_PREFIX)/posix
    121121
    122 LIBCRYPTO_PREFIX = $(LIB_PREFIX)/crypto
    123122LIBBLOCK_PREFIX = $(LIB_PREFIX)/block
    124123LIBFS_PREFIX = $(LIB_PREFIX)/fs
     
    144143LIBNET_PREFIX = $(LIB_PREFIX)/net
    145144LIBNIC_PREFIX = $(LIB_PREFIX)/nic
    146 LIBIEEE80211_PREFIX = $(LIB_PREFIX)/ieee80211
    147145LIBMINIX_PREFIX = $(LIB_PREFIX)/minix
    148146LIBCOMPRESS_PREFIX = $(LIB_PREFIX)/compress
     
    249247# something won't break because of that:
    250248# -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) \
     249CLANG_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
    252250        -ffreestanding -fno-builtin -nostdlib -nostdinc \
    253251        -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)__
     252        -std=gnu99 -Werror-implicit-function-declaration -Wwrite-strings \
     253        -integrated-as -pipe -g -target $(CLANG_TARGET) -D__$(ENDIANESS)__
    257254
    258255LIB_CFLAGS = $(CFLAGS) -fPIC -D__IN_SHARED_LIBC__
     
    292289
    293290ifeq ($(COMPILER),gcc_cross)
    294         CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS)
     291        CFLAGS += $(GCC_CFLAGS)
    295292        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    296293endif
    297294
    298295ifeq ($(COMPILER),gcc_helenos)
    299         CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS)
     296        CFLAGS += $(GCC_CFLAGS)
    300297        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    301298endif
    302299
    303300ifeq ($(COMPILER),gcc_native)
    304         CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS)
     301        CFLAGS += $(GCC_CFLAGS)
    305302        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    306303endif
    307304
    308305ifeq ($(COMPILER),icc)
    309         CFLAGS += $(ICC_CFLAGS) $(EXTRA_CFLAGS)
     306        CFLAGS += $(ICC_CFLAGS)
    310307        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    311308endif
    312309
    313310ifeq ($(COMPILER),clang)
    314         CFLAGS += $(CLANG_CFLAGS) $(EXTRA_CFLAGS)
    315         GCC_CFLAGS += $(EXTRA_CFLAGS)
     311        CFLAGS += $(CLANG_CFLAGS)
    316312        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    317313endif
     
    375371
    376372%.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__
     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__
    380376endif
    381377
     
    387383
    388384%.o: %.c $(DEPEND)
    389         $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
    390 ifeq ($(PRECHECK),y)
    391         $(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)
    392388endif
    393389
    394390%.test.o: %.c $(DEPEND)
    395         $(CC) $(DEFS) $(CFLAGS) $(TEST_CFLAGS) -c $< -o $@
    396 ifeq ($(PRECHECK),y)
    397         $(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)
    398394endif
    399395
    400396%.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__
     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__
    404400endif
    405401
     
    411407
    412408%.lo: %.c $(DEPEND)
    413         $(CC) $(DEFS) $(LIB_CFLAGS) -c $< -o $@
    414 ifeq ($(PRECHECK),y)
    415         $(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)
    416412endif
    417413
    418414$(DEPEND): $(PRE_DEPEND)
    419         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
    420416        -[ -f $(DEPEND_PREV) ] && diff -q $(DEPEND_PREV) $@ && mv -f $(DEPEND_PREV) $@
    421417
Note: See TracChangeset for help on using the changeset viewer.