Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/Makefile.toolchain

    r8786aa5 rac47b7c2  
    2727#
    2828
    29 GCC_CFLAGS = -I$(LIBC_PREFIX)/include -O3 -imacros $(LIBC_PREFIX)/../../../config.h \
     29CFLAGS = -I$(LIBC_PREFIX)/include -O3 -imacros $(LIBC_PREFIX)/../../../config.h \
    3030        -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \
    31         -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \
    32         -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \
    33         -Werror-implicit-function-declaration -pipe -g -D__$(ENDIANESS)__
    34 
    35 ICC_CFLAGS = -I$(LIBC_PREFIX)/include -O3 -imacros $(LIBC_PREFIX)/../../../config.h \
    36         -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \
    37         -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \
    38         -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \
    39         -Werror-implicit-function-declaration -pipe -g -D__$(ENDIANESS)__
    40 
    41 CLANG_CFLAGS = -I$(LIBC_PREFIX)/include -O3 -imacros $(LIBC_PREFIX)/../../../config.h \
    42         -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \
    43         -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \
    44         -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \
    45         -Werror-implicit-function-declaration -pipe -g -arch $(CLANG_ARCH) \
    46         -D__$(ENDIANESS)__
    47 
     31        -finput-charset=UTF-8 -fno-builtin -Wall -Wextra -Wno-unused-parameter \
     32        -Wmissing-prototypes -Werror-implicit-function-declaration -nostdlib \
     33        -nostdinc -pipe -g -D__$(ENDIANESS)__
    4834LFLAGS = -M -N $(SOFTINT_PREFIX)/libsoftint.a
    4935AFLAGS =
     
    5945#
    6046
    61 include $(LIBC_PREFIX)/../../../Makefile.config
    62 include $(LIBC_PREFIX)/../../../config.defs
    63 include $(LIBC_PREFIX)/arch/$(UARCH)/Makefile.inc
     47-include $(LIBC_PREFIX)/../../../Makefile.config
     48-include $(LIBC_PREFIX)/../../../config.defs
     49-include $(LIBC_PREFIX)/arch/$(UARCH)/Makefile.inc
    6450
    6551## Simple detection of the host system
     
    7864#
    7965
    80 JOBFILE = $(LIBC_PREFIX)/../../../tools/jobfile.py
     66ifeq ($(COMPILER),gcc_native)
     67        CC = gcc
     68        AS = $(BINUTILS_PREFIX)as
     69        LD = $(BINUTILS_PREFIX)ld
     70        AR = $(BINUTILS_PREFIX)ar
     71        OBJCOPY = $(BINUTILS_PREFIX)objcopy
     72        OBJDUMP = $(BINUTILS_PREFIX)objdump
     73        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
     74endif
     75
     76ifeq ($(COMPILER),icc_native)
     77        CC = icc
     78        AS = as
     79        LD = ld
     80        AR = ar
     81        OBJCOPY = objcopy
     82        OBJDUMP = objdump
     83        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
     84endif
    8185
    8286ifeq ($(COMPILER),gcc_cross)
    8387        CC = $(TOOLCHAIN_DIR)/$(TARGET)-gcc
    84         GCC = $(CC)
    8588        AS = $(TOOLCHAIN_DIR)/$(TARGET)-as
    8689        LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld
     
    8891        OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy
    8992        OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump
    90         CFLAGS = $(GCC_CFLAGS)
    9193        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    9294endif
    93 
    94 ifeq ($(COMPILER),gcc_native)
    95         CC = gcc
    96         GCC = $(CC)
    97         AS = $(BINUTILS_PREFIX)as
    98         LD = $(BINUTILS_PREFIX)ld
    99         AR = $(BINUTILS_PREFIX)ar
    100         OBJCOPY = $(BINUTILS_PREFIX)objcopy
    101         OBJDUMP = $(BINUTILS_PREFIX)objdump
    102         CFLAGS = $(GCC_CFLAGS)
    103         DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    104 endif
    105 
    106 ifeq ($(COMPILER),icc)
    107         CC = icc
    108         GCC = gcc
    109         AS = as
    110         LD = ld
    111         AR = ar
    112         OBJCOPY = objcopy
    113         OBJDUMP = objdump
    114         CFLAGS = $(ICC_CFLAGS)
    115         DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    116 endif
    117 
    118 ifeq ($(COMPILER),clang)
    119         CC = clang
    120         GCC = gcc
    121         AS = $(BINUTILS_PREFIX)as
    122         LD = $(BINUTILS_PREFIX)ld
    123         AR = $(BINUTILS_PREFIX)ar
    124         OBJCOPY = $(BINUTILS_PREFIX)objcopy
    125         OBJDUMP = $(BINUTILS_PREFIX)objdump
    126         CFLAGS = $(CLANG_CFLAGS)
    127         DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    128 endif
Note: See TracChangeset for help on using the changeset viewer.