Changeset 03c971f in mainline for uspace/Makefile.common


Ignore:
Timestamp:
2013-08-15T14:20:16Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bb2a5b2
Parents:
f2c19b0 (diff), 2921602 (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:

Mainline changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile.common

    rf2c19b0 r03c971f  
    191191        -Wall -Wextra -Wno-clobbered -Wno-unused-parameter -Wmissing-prototypes \
    192192        -std=gnu99 -Werror-implicit-function-declaration -Wwrite-strings \
    193         -pipe -g -D__$(ENDIANESS)__
     193        -pipe -ggdb -D__$(ENDIANESS)__
    194194
    195195ICC_CFLAGS = $(LIBC_INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
     
    200200        -pipe -g -D__$(ENDIANESS)__
    201201
     202# clang does not support following options but I am not sure whether
     203# something won't break because of that:
     204# -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) -finput-charset=UTF-8
    202205CLANG_CFLAGS = $(LIBC_INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
    203         -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \
    204         -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \
     206        -ffreestanding -fno-builtin -nostdlib -nostdinc \
    205207        -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \
    206208        -Werror-implicit-function-declaration -Wwrite-strings \
    207         -pipe -g -arch $(CLANG_ARCH) -D__$(ENDIANESS)__
     209        -integrated-as \
     210        -pipe -g -target $(CLANG_TARGET) -D__$(ENDIANESS)__
    208211
    209212LIB_CFLAGS = $(CFLAGS) -fPIC -D__IN_SHARED_LIBC__
     
    221224endif
    222225
    223 ## Setup platform configuration
    224 #
    225 
    226 -include $(LIBC_PREFIX)/arch/$(UARCH)/Makefile.common
    227 
    228 ## Compilation options
    229 #
    230 
    231 JOBFILE = $(LIBC_PREFIX)/../../../tools/jobfile.py
    232 
     226# Prepare for POSIX before including platform specific stuff
    233227ifeq ($(POSIX_COMPAT),y)
    234228        CFLAGS = -I$(LIBPOSIX_PREFIX)/include/posix  -I$(LIBPOSIX_PREFIX)/include/
    235         LIBS += $(LIBPOSIX_PREFIX)/libposix.a
    236 endif
     229        BASE_LIBS = $(LIBPOSIX_PREFIX)/libposixaslibc.a $(LIBPOSIX_PREFIX)/libc4posix.a $(LIBSOFTINT_PREFIX)/libsoftint.a
     230endif
     231
     232## Setup platform configuration
     233#
     234
     235-include $(LIBC_PREFIX)/arch/$(UARCH)/Makefile.common
     236
     237## Compilation options
     238#
     239
     240JOBFILE = $(LIBC_PREFIX)/../../../tools/jobfile.py
    237241
    238242ifeq ($(COMPILER),gcc_cross)
     
    253257ifeq ($(COMPILER),clang)
    254258        CFLAGS += $(CLANG_CFLAGS) $(EXTRA_CFLAGS)
     259        GCC_CFLAGS += $(EXTRA_CFLAGS)
    255260        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    256261endif
     
    310315
    311316%.o: %.S $(DEPEND)
    312         $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@
     317        $(GCC) $(DEFS) $(GCC_CFLAGS) -D__ASM__ -c $< -o $@
    313318ifeq ($(PRECHECK),y)
    314319        $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__
Note: See TracChangeset for help on using the changeset viewer.