Changeset db71e2a in mainline for uspace/Makefile.common


Ignore:
Timestamp:
2013-07-24T17:42:25Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/fix-logger-deadlock, topic/msim-upgrade, topic/simplify-dev-export
Children:
69b264a9
Parents:
52f1882 (diff), cffa14e6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merge mainline changes.

usb hc macro changes from mainline were reverted, too many conflicts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile.common

    r52f1882 rdb71e2a  
    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
     
    180184        find . -name '*.lo' -follow -exec rm \{\} \;
    181185
    182 GCC_CFLAGS = -I$(LIBC_PREFIX)/include -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
     186GCC_CFLAGS = $(LIBC_INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
    183187        -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \
    184188        -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \
    185189        -Wall -Wextra -Wno-clobbered -Wno-unused-parameter -Wmissing-prototypes \
    186190        -std=gnu99 -Werror-implicit-function-declaration -Wwrite-strings \
    187         -pipe -g -D__$(ENDIANESS)__
    188 
    189 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) \
    190194        -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \
    191195        -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \
     
    194198        -pipe -g -D__$(ENDIANESS)__
    195199
    196 CLANG_CFLAGS = -I$(LIBC_PREFIX)/include -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
    197         -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \
    198         -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 \
    199205        -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \
    200206        -Werror-implicit-function-declaration -Wwrite-strings \
    201         -pipe -g -arch $(CLANG_ARCH) -D__$(ENDIANESS)__
     207        -integrated-as \
     208        -pipe -g -target $(CLANG_TARGET) -D__$(ENDIANESS)__
    202209
    203210LIB_CFLAGS = $(CFLAGS) -fPIC -D__IN_SHARED_LIBC__
     
    215222endif
    216223
    217 ## Setup platform configuration
    218 #
    219 
    220 -include $(LIBC_PREFIX)/arch/$(UARCH)/Makefile.common
    221 
    222 ## Compilation options
    223 #
    224 
    225 JOBFILE = $(LIBC_PREFIX)/../../../tools/jobfile.py
    226 
     224# Prepare for POSIX before including platform specific stuff
    227225ifeq ($(POSIX_COMPAT),y)
    228226        CFLAGS = -I$(LIBPOSIX_PREFIX)/include/posix  -I$(LIBPOSIX_PREFIX)/include/
    229         LIBS += $(LIBPOSIX_PREFIX)/libposix.a
    230 endif
     227        BASE_LIBS = $(LIBPOSIX_PREFIX)/libposixaslibc.a $(LIBPOSIX_PREFIX)/libc4posix.a $(LIBSOFTINT_PREFIX)/libsoftint.a
     228endif
     229
     230## Setup platform configuration
     231#
     232
     233-include $(LIBC_PREFIX)/arch/$(UARCH)/Makefile.common
     234
     235## Compilation options
     236#
     237
     238JOBFILE = $(LIBC_PREFIX)/../../../tools/jobfile.py
    231239
    232240ifeq ($(COMPILER),gcc_cross)
     
    247255ifeq ($(COMPILER),clang)
    248256        CFLAGS += $(CLANG_CFLAGS) $(EXTRA_CFLAGS)
     257        GCC_CFLAGS += $(EXTRA_CFLAGS)
    249258        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    250259endif
     
    299308
    300309%.o: %.S $(DEPEND)
    301         $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@
     310        $(GCC) $(DEFS) $(GCC_CFLAGS) -D__ASM__ -c $< -o $@
    302311ifeq ($(PRECHECK),y)
    303312        $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__
Note: See TracChangeset for help on using the changeset viewer.