Changeset 6ee6abb in rtems for make/compilers


Ignore:
Timestamp:
May 18, 1998, 4:38:38 PM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
7ebfa93
Parents:
60fa630
Message:

Added C++ rule.

Added CROSS_TARGET conditionals so unix port can share this file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • make/compilers/gcc-target-default.cfg

    r60fa630 r6ee6abb  
    2121
    2222ifeq ($(RTEMS_USE_GCC272),yes)
     23ifeq ($(RTEMS_CROSS_TARGET),no)
     24
     25ifdef RTEMS_LIBC_DIR
     26RTEMS_LIBC_INCLUDES := -I$(RTEMS_LIBC_DIR)/include
     27endif
     28
     29# Used for posix bsps
     30CFLAGS_DEFAULT = $(CPU_DEFINES) $(CPU_CFLAGS) -Wall -ansi -fasm -g \
     31  -I$(PROJECT_INCLUDE) \
     32  $(INCLUDE_KA9Q) \
     33  $(RTEMS_LIBC_INCLUDES) $(DEFINES)
     34
     35ASMFLAGS=$(CPU_DEFINES) $(CPU_CFLAGS) -g \
     36  -I$(PROJECT_INCLUDE) \
     37  $(RTEMS_LIBC_INCLUDES) $(DEFINES)
     38else
     39# Used for embedded bsps
    2340# Ask gcc where it finds its own include files
    2441GCC_INCLUDE=$(shell $(CC) $(CPU_CFLAGS) -print-file-name=include)
     
    3249  -nostdinc -I$(PROJECT_INCLUDE) \
    3350  -I$(RTEMS_LIBC_DIR)/include -I$(GCC_INCLUDE) $(DEFINES)
     51endif
    3452
    3553# default location of Standard C Library
     
    161179
    162180COMPILE.c=$(CC) $(CFLAGS) $(XCFLAGS) -c
     181COMPILE.cc=$(CXX) $(CFLAGS) $(CXXFLAGS) -fno-rtti $(XCFLAGS) -c
    163182
    164183${ARCH}/%.o: %.c
     
    166185
    167186${ARCH}/%.o: %.cc
    168         ${COMPILE.c} -o $@ $<
     187        ${COMPILE.cc} -o $@ $<
    169188
    170189${ARCH}/%.o: %.S
     
    240259LIBC_LOW=
    241260
     261ifndef LIBGCC
    242262LIBGCC = $(shell $(CC) $(CFLAGS) -print-libgcc-file-name)
     263endif
    243264
    244265LINK_OBJS=\
Note: See TracChangeset for help on using the changeset viewer.