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


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile.common

    r8bcd727 r4fb794c  
    103103
    104104LIBC_PREFIX = $(LIB_PREFIX)/c
     105LIBC_INCLUDES_FLAGS = \
     106        -I$(LIBC_PREFIX)/include \
     107        -I$(LIBC_PREFIX)/arch/$(UARCH)/include \
     108        -I$(ROOT_PATH)/abi/include
    105109LIBSOFTFLOAT_PREFIX = $(LIB_PREFIX)/softfloat
    106110LIBSOFTINT_PREFIX = $(LIB_PREFIX)/softint
     
    110114LIBBLOCK_PREFIX = $(LIB_PREFIX)/block
    111115LIBFS_PREFIX = $(LIB_PREFIX)/fs
    112 LIBFB_PREFIX = $(LIB_PREFIX)/fb
    113116LIBCLUI_PREFIX = $(LIB_PREFIX)/clui
    114117LIBFMTUTIL_PREFIX = $(LIB_PREFIX)/fmtutil
    115118
    116 LIBEXT2_PREFIX = $(LIB_PREFIX)/ext2
     119LIBGRAPH_PREFIX = $(LIB_PREFIX)/graph
     120LIBSOFTREND_PREFIX = $(LIB_PREFIX)/softrend
     121LIBDRAW_PREFIX = $(LIB_PREFIX)/draw
     122LIBGUI_PREFIX = $(LIB_PREFIX)/gui
     123
     124LIBEXT4_PREFIX = $(LIB_PREFIX)/ext4
    117125
    118126LIBUSB_PREFIX = $(LIB_PREFIX)/usb
     
    128136
    129137LIBSCSI_PREFIX = $(LIB_PREFIX)/scsi
     138
     139LIBBITHENGE_PREFIX = $(LIB_PREFIX)/bithenge
    130140
    131141ifeq ($(STATIC_NEEDED),y)
     
    174184        find . -name '*.lo' -follow -exec rm \{\} \;
    175185
    176 GCC_CFLAGS = -I$(LIBC_PREFIX)/include -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
     186GCC_CFLAGS = $(LIBC_INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
    177187        -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \
    178188        -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \
    179189        -Wall -Wextra -Wno-clobbered -Wno-unused-parameter -Wmissing-prototypes \
    180190        -std=gnu99 -Werror-implicit-function-declaration -Wwrite-strings \
    181         -pipe -g -D__$(ENDIANESS)__
    182 
    183 ICC_CFLAGS = -I$(LIBC_PREFIX)/include -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
     191        -pipe -ggdb -D__$(ENDIANESS)__
     192
     193ICC_CFLAGS = $(LIBC_INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
    184194        -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \
    185195        -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \
     
    188198        -pipe -g -D__$(ENDIANESS)__
    189199
    190 CLANG_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 \
     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
     203CLANG_CFLAGS = $(LIBC_INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
     204        -ffreestanding -fno-builtin -nostdlib -nostdinc \
    193205        -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \
    194206        -Werror-implicit-function-declaration -Wwrite-strings \
    195         -pipe -g -arch $(CLANG_ARCH) -D__$(ENDIANESS)__
     207        -integrated-as \
     208        -pipe -g -target $(CLANG_TARGET) -D__$(ENDIANESS)__
    196209
    197210LIB_CFLAGS = $(CFLAGS) -fPIC -D__IN_SHARED_LIBC__
     
    206219        GCC_CFLAGS += -g
    207220        ICC_CFLAGS += -g
    208         SUNCC_CFLAGS += -g
    209221        CLANG_CFLAGS += -g
    210222endif
     
    221233
    222234ifeq ($(POSIX_COMPAT),y)
    223         CFLAGS = -I$(LIBPOSIX_PREFIX)
     235        CFLAGS = -I$(LIBPOSIX_PREFIX)/include/posix  -I$(LIBPOSIX_PREFIX)/include/
    224236        LIBS += $(LIBPOSIX_PREFIX)/libposix.a
    225237endif
     
    242254ifeq ($(COMPILER),clang)
    243255        CFLAGS += $(CLANG_CFLAGS) $(EXTRA_CFLAGS)
     256        GCC_CFLAGS += $(EXTRA_CFLAGS)
    244257        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    245258endif
     
    294307
    295308%.o: %.S $(DEPEND)
    296         $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@
     309        $(GCC) $(DEFS) $(GCC_CFLAGS) -D__ASM__ -c $< -o $@
    297310ifeq ($(PRECHECK),y)
    298311        $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__
Note: See TracChangeset for help on using the changeset viewer.