Changes in uspace/Makefile.common [4fb794c:8bcd727] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile.common

    r4fb794c r8bcd727  
    103103
    104104LIBC_PREFIX = $(LIB_PREFIX)/c
    105 LIBC_INCLUDES_FLAGS = \
    106         -I$(LIBC_PREFIX)/include \
    107         -I$(LIBC_PREFIX)/arch/$(UARCH)/include \
    108         -I$(ROOT_PATH)/abi/include
    109105LIBSOFTFLOAT_PREFIX = $(LIB_PREFIX)/softfloat
    110106LIBSOFTINT_PREFIX = $(LIB_PREFIX)/softint
     
    114110LIBBLOCK_PREFIX = $(LIB_PREFIX)/block
    115111LIBFS_PREFIX = $(LIB_PREFIX)/fs
     112LIBFB_PREFIX = $(LIB_PREFIX)/fb
    116113LIBCLUI_PREFIX = $(LIB_PREFIX)/clui
    117114LIBFMTUTIL_PREFIX = $(LIB_PREFIX)/fmtutil
    118115
    119 LIBGRAPH_PREFIX = $(LIB_PREFIX)/graph
    120 LIBSOFTREND_PREFIX = $(LIB_PREFIX)/softrend
    121 LIBDRAW_PREFIX = $(LIB_PREFIX)/draw
    122 LIBGUI_PREFIX = $(LIB_PREFIX)/gui
    123 
    124 LIBEXT4_PREFIX = $(LIB_PREFIX)/ext4
     116LIBEXT2_PREFIX = $(LIB_PREFIX)/ext2
    125117
    126118LIBUSB_PREFIX = $(LIB_PREFIX)/usb
     
    136128
    137129LIBSCSI_PREFIX = $(LIB_PREFIX)/scsi
    138 
    139 LIBBITHENGE_PREFIX = $(LIB_PREFIX)/bithenge
    140130
    141131ifeq ($(STATIC_NEEDED),y)
     
    184174        find . -name '*.lo' -follow -exec rm \{\} \;
    185175
    186 GCC_CFLAGS = $(LIBC_INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
     176GCC_CFLAGS = -I$(LIBC_PREFIX)/include -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
    187177        -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \
    188178        -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \
    189179        -Wall -Wextra -Wno-clobbered -Wno-unused-parameter -Wmissing-prototypes \
    190180        -std=gnu99 -Werror-implicit-function-declaration -Wwrite-strings \
    191         -pipe -ggdb -D__$(ENDIANESS)__
    192 
    193 ICC_CFLAGS = $(LIBC_INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
     181        -pipe -g -D__$(ENDIANESS)__
     182
     183ICC_CFLAGS = -I$(LIBC_PREFIX)/include -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
    194184        -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \
    195185        -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \
     
    198188        -pipe -g -D__$(ENDIANESS)__
    199189
    200 # clang does not support following options but I am not sure whether
    201 # something won't break because of that:
    202 # -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) -finput-charset=UTF-8
    203 CLANG_CFLAGS = $(LIBC_INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
    204         -ffreestanding -fno-builtin -nostdlib -nostdinc \
     190CLANG_CFLAGS = -I$(LIBC_PREFIX)/include -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
     191        -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \
     192        -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \
    205193        -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \
    206194        -Werror-implicit-function-declaration -Wwrite-strings \
    207         -integrated-as \
    208         -pipe -g -target $(CLANG_TARGET) -D__$(ENDIANESS)__
     195        -pipe -g -arch $(CLANG_ARCH) -D__$(ENDIANESS)__
    209196
    210197LIB_CFLAGS = $(CFLAGS) -fPIC -D__IN_SHARED_LIBC__
     
    219206        GCC_CFLAGS += -g
    220207        ICC_CFLAGS += -g
     208        SUNCC_CFLAGS += -g
    221209        CLANG_CFLAGS += -g
    222210endif
     
    233221
    234222ifeq ($(POSIX_COMPAT),y)
    235         CFLAGS = -I$(LIBPOSIX_PREFIX)/include/posix  -I$(LIBPOSIX_PREFIX)/include/
     223        CFLAGS = -I$(LIBPOSIX_PREFIX)
    236224        LIBS += $(LIBPOSIX_PREFIX)/libposix.a
    237225endif
     
    254242ifeq ($(COMPILER),clang)
    255243        CFLAGS += $(CLANG_CFLAGS) $(EXTRA_CFLAGS)
    256         GCC_CFLAGS += $(EXTRA_CFLAGS)
    257244        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    258245endif
     
    307294
    308295%.o: %.S $(DEPEND)
    309         $(GCC) $(DEFS) $(GCC_CFLAGS) -D__ASM__ -c $< -o $@
     296        $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@
    310297ifeq ($(PRECHECK),y)
    311298        $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__
Note: See TracChangeset for help on using the changeset viewer.