Changes in uspace/Makefile.common [2989c7e:1dcc0b9] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile.common

    r2989c7e r1dcc0b9  
    120120LIBPOSIX_PREFIX = $(LIB_PREFIX)/posix
    121121
     122LIBCRYPTO_PREFIX = $(LIB_PREFIX)/crypto
    122123LIBBLOCK_PREFIX = $(LIB_PREFIX)/block
    123124LIBFS_PREFIX = $(LIB_PREFIX)/fs
     
    141142LIBHOUND_PREFIX = $(LIB_PREFIX)/hound
    142143LIBPCM_PREFIX = $(LIB_PREFIX)/pcm
     144LIBNET_PREFIX = $(LIB_PREFIX)/net
    143145LIBNIC_PREFIX = $(LIB_PREFIX)/nic
     146LIBIEEE80211_PREFIX = $(LIB_PREFIX)/ieee80211
    144147LIBMINIX_PREFIX = $(LIB_PREFIX)/minix
    145148LIBCOMPRESS_PREFIX = $(LIB_PREFIX)/compress
     
    155158LIBMBR_PREFIX = $(LIB_PREFIX)/mbr
    156159LIBGPT_PREFIX = $(LIB_PREFIX)/gpt
    157 LIBNETTL_PREFIX = $(LIB_PREFIX)/nettl
    158160
    159161LIBURCU_PREFIX = $(LIB_PREFIX)/urcu
     
    201203
    202204ifeq ($(CONFIG_OPTIMIZE_FOR_SIZE),y)
    203         OPTIMIZATION = 0
    204 else
    205         OPTIMIZATION = 0
     205        OPTIMIZATION = s
     206else
     207        OPTIMIZATION = 3
    206208endif
    207209
     
    247249# something won't break because of that:
    248250# -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) -finput-charset=UTF-8
    249 CLANG_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
     251CLANG_CFLAGS = $(LIBC_INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
    250252        -ffreestanding -fno-builtin -nostdlib -nostdinc \
    251253        -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \
    252         -std=gnu99 -Werror-implicit-function-declaration -Wwrite-strings \
    253         -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)__
    254257
    255258LIB_CFLAGS = $(CFLAGS) -fPIC -D__IN_SHARED_LIBC__
     
    262265
    263266ifeq ($(CONFIG_LINE_DEBUG),y)
    264         GCC_CFLAGS += -ggdb
     267        GCC_CFLAGS += -g
    265268        ICC_CFLAGS += -g
    266269        CLANG_CFLAGS += -g
     
    289292
    290293ifeq ($(COMPILER),gcc_cross)
    291         CFLAGS += $(GCC_CFLAGS)
     294        CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS)
    292295        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    293296endif
    294297
    295298ifeq ($(COMPILER),gcc_helenos)
    296         CFLAGS += $(GCC_CFLAGS)
     299        CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS)
    297300        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    298301endif
    299302
    300303ifeq ($(COMPILER),gcc_native)
    301         CFLAGS += $(GCC_CFLAGS)
     304        CFLAGS += $(GCC_CFLAGS) $(EXTRA_CFLAGS)
    302305        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    303306endif
    304307
    305308ifeq ($(COMPILER),icc)
    306         CFLAGS += $(ICC_CFLAGS)
     309        CFLAGS += $(ICC_CFLAGS) $(EXTRA_CFLAGS)
    307310        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    308311endif
    309312
    310313ifeq ($(COMPILER),clang)
    311         CFLAGS += $(CLANG_CFLAGS)
     314        CFLAGS += $(CLANG_CFLAGS) $(EXTRA_CFLAGS)
     315        GCC_CFLAGS += $(EXTRA_CFLAGS)
    312316        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    313317endif
     
    371375
    372376%.o: %.S $(DEPEND)
    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__
     377        $(GCC) $(DEFS) $(GCC_CFLAGS) -D__ASM__ -c $< -o $@
     378ifeq ($(PRECHECK),y)
     379        $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__
    376380endif
    377381
     
    383387
    384388%.o: %.c $(DEPEND)
    385         $(CC) $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS) -c $< -o $@
    386 ifeq ($(PRECHECK),y)
    387         $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS)
     389        $(CC) $(DEFS) $(CFLAGS) -c $< -o $@
     390ifeq ($(PRECHECK),y)
     391        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
    388392endif
    389393
    390394%.test.o: %.c $(DEPEND)
    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)
     395        $(CC) $(DEFS) $(CFLAGS) $(TEST_CFLAGS) -c $< -o $@
     396ifeq ($(PRECHECK),y)
     397        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
    394398endif
    395399
    396400%.lo: %.S $(DEPEND)
    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__
     401        $(CC) $(DEFS) $(LIB_CFLAGS) -D__ASM__ -c $< -o $@
     402ifeq ($(PRECHECK),y)
     403        $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__
    400404endif
    401405
     
    407411
    408412%.lo: %.c $(DEPEND)
    409         $(CC) $(DEFS) $(LIB_CFLAGS) $(EXTRA_CFLAGS) -c $< -o $@
    410 ifeq ($(PRECHECK),y)
    411         $(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)
    412416endif
    413417
    414418$(DEPEND): $(PRE_DEPEND)
    415         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
    416420        -[ -f $(DEPEND_PREV) ] && diff -q $(DEPEND_PREV) $@ && mv -f $(DEPEND_PREV) $@
    417421
Note: See TracChangeset for help on using the changeset viewer.