Changeset dd0c8a0 in mainline for uspace/Makefile.common


Ignore:
Timestamp:
2013-09-29T06:56:33Z (12 years ago)
Author:
Beniamino Galvani <b.galvani@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a9bd960d
Parents:
3deb0155 (diff), 13be2583 (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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile.common

    r3deb0155 rdd0c8a0  
    131131
    132132LIBDRV_PREFIX = $(LIB_PREFIX)/drv
     133LIBHOUND_PREFIX = $(LIB_PREFIX)/hound
     134LIBPCM_PREFIX = $(LIB_PREFIX)/pcm
    133135LIBNET_PREFIX = $(LIB_PREFIX)/net
    134136LIBNIC_PREFIX = $(LIB_PREFIX)/nic
     
    138140
    139141LIBBITHENGE_PREFIX = $(LIB_PREFIX)/bithenge
     142
     143LIBHTTP_PREFIX = $(LIB_PREFIX)/http
     144LIBURI_PREFIX = $(LIB_PREFIX)/uri
    140145
    141146ifeq ($(STATIC_NEEDED),y)
     
    189194        -Wall -Wextra -Wno-clobbered -Wno-unused-parameter -Wmissing-prototypes \
    190195        -std=gnu99 -Werror-implicit-function-declaration -Wwrite-strings \
    191         -pipe -g -D__$(ENDIANESS)__
     196        -pipe -ggdb -D__$(ENDIANESS)__
    192197
    193198ICC_CFLAGS = $(LIBC_INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
     
    198203        -pipe -g -D__$(ENDIANESS)__
    199204
     205# clang does not support following options but I am not sure whether
     206# something won't break because of that:
     207# -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) -finput-charset=UTF-8
    200208CLANG_CFLAGS = $(LIBC_INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
    201         -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \
    202         -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \
     209        -ffreestanding -fno-builtin -nostdlib -nostdinc \
    203210        -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \
    204211        -Werror-implicit-function-declaration -Wwrite-strings \
    205         -pipe -g -arch $(CLANG_ARCH) -D__$(ENDIANESS)__
     212        -integrated-as \
     213        -pipe -g -target $(CLANG_TARGET) -D__$(ENDIANESS)__
    206214
    207215LIB_CFLAGS = $(CFLAGS) -fPIC -D__IN_SHARED_LIBC__
     
    219227endif
    220228
    221 ## Setup platform configuration
    222 #
    223 
    224 -include $(LIBC_PREFIX)/arch/$(UARCH)/Makefile.common
    225 
    226 ## Compilation options
    227 #
    228 
    229 JOBFILE = $(LIBC_PREFIX)/../../../tools/jobfile.py
    230 
     229# Prepare for POSIX before including platform specific stuff
    231230ifeq ($(POSIX_COMPAT),y)
    232231        CFLAGS = -I$(LIBPOSIX_PREFIX)/include/posix  -I$(LIBPOSIX_PREFIX)/include/
    233         LIBS += $(LIBPOSIX_PREFIX)/libposix.a
    234 endif
     232        BASE_LIBS = $(LIBPOSIX_PREFIX)/libposixaslibc.a $(LIBPOSIX_PREFIX)/libc4posix.a $(LIBSOFTINT_PREFIX)/libsoftint.a
     233endif
     234
     235## Setup platform configuration
     236#
     237
     238-include $(LIBC_PREFIX)/arch/$(UARCH)/Makefile.common
     239
     240## Compilation options
     241#
     242
     243JOBFILE = $(LIBC_PREFIX)/../../../tools/jobfile.py
    235244
    236245ifeq ($(COMPILER),gcc_cross)
     
    251260ifeq ($(COMPILER),clang)
    252261        CFLAGS += $(CLANG_CFLAGS) $(EXTRA_CFLAGS)
     262        GCC_CFLAGS += $(EXTRA_CFLAGS)
    253263        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    254264endif
     
    303313
    304314%.o: %.S $(DEPEND)
    305         $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@
     315        $(GCC) $(DEFS) $(GCC_CFLAGS) -D__ASM__ -c $< -o $@
    306316ifeq ($(PRECHECK),y)
    307317        $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__
Note: See TracChangeset for help on using the changeset viewer.