Changeset ccf2cfd in rtems for make


Ignore:
Timestamp:
Sep 13, 2002, 1:39:52 PM (17 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
d464fe7
Parents:
cb72774
Message:

2002-09-13 Joel Sherrill <joel@…>

  • Part of addressing PR281.
  • main.cfg: Added recognition of VARIANT=DEBUG on command line.
  • compilers/gcc-target-default.cfg: Removed remaining support for RTEMS_USE_GCC272 and RTEMS_LIBC_DIR as well as added -qrtems_debug as one of the LDFLAGS when the debug variant is specified.
Location:
make
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • make/ChangeLog

    rcb72774 rccf2cfd  
     12002-09-13      Joel Sherrill <joel@OARcorp.com>
     2
     3        * Part of addressing PR281.
     4        * main.cfg: Added recognition of VARIANT=DEBUG on command line.
     5        * compilers/gcc-target-default.cfg: Removed remaining support for
     6        RTEMS_USE_GCC272 and RTEMS_LIBC_DIR as well as added -qrtems_debug
     7        as one of the LDFLAGS when the debug variant is specified.
     8
    192002-08-12      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    210
  • make/compilers/gcc-target-default.cfg

    rcb72774 rccf2cfd  
    2828ASFLAGS  = $(CPU_ASFLAGS) $(XASFLAGS)
    2929
    30 ifeq ($(RTEMS_USE_GCC272),yes)
    31 ifeq ($(RTEMS_CROSS_TARGET),no)
    32 
    33 ifdef RTEMS_LIBC_DIR
    34 RTEMS_LIBC_INCLUDES := -I$(RTEMS_LIBC_DIR)/include
    35 endif
    36 
    37 # Used for posix bsps
    38 CPPFLAGS += \
    39   -I$(PROJECT_INCLUDE) \
    40   $(RTEMS_LIBC_INCLUDES)
    41 else
    42 # Used for embedded bsps
    43 # Ask gcc where it finds its own include files
    44 GCC_INCLUDE=$(shell $(CC) $(CPU_CFLAGS) -print-file-name=include $(GCCSED))
    45 
    46 CPPFLAGS += -nostdinc \
    47   -I$(PROJECT_INCLUDE) \
    48   -I$(GCC_INCLUDE) \
    49   -I$(RTEMS_LIBC_DIR)/sys-include \
    50   -I$(RTEMS_LIBC_DIR)/include
    51 endif
    52 
    53 # default location of Standard C Library
    54 ifndef LIBC_LIBC
    55 LIBC_LIBC=$(RTEMS_LIBC_DIR)/lib/libc.a
    56 endif
    57 
    58 ifndef LIBC_LIBM
    59 LIBC_LIBM=$(RTEMS_LIBC_DIR)/lib/libm.a
    60 endif
    61 
    62 else
    6330# NOTE: GCCSPECS probably belongs to CPPFLAGS
    6431# Unfortunately, many custom/*.cfg files do not pass CPPFLAGS
     
    7138CPPFLAGS +=
    7239
    73 # default location of Standard C Library
    74 ifndef LIBC_LIBC
    75 LIBC_LIBC=$(shell $(CC) $(CPU_CFLAGS) -print-file-name=libc.a $(GCCSED))
    76 endif
    77 
    78 ifndef LIBC_LIBM
    79 LIBC_LIBM=$(shell $(CC) $(CPU_CFLAGS) -print-file-name=libm.a $(GCCSED))
    80 endif
    81 endif
    82 
    8340# Define this to yes if C++ is included in the development environment.
    8441# This requires that at least the GNU C++ compiler and libg++ be installed.
     
    9148CXXFLAGS_DEBUG_V+=
    9249
    93 ifeq ($(RTEMS_USE_GCC272),no)
    9450CFLAGS_DEBUG_V+=-qrtems_debug
    9551CXXFLAGS_DEBUG_V+=-qrtems_debug
    96 endif
    9752
    9853# when debugging, optimize flag: typically empty
     
    14196# ld flags for profiling, debugging
    14297LDFLAGS_PROFILE_V =
    143 LDFLAGS_DEBUG_V =
     98LDFLAGS_DEBUG_V = -qrtems_debug
    14499
    145100LDFLAGS=$(LDFLAGS_PROFILE) $(LDFLAGS_DEBUG) $(LD_PATHS:%=-L %)
     
    238193endif
    239194
    240 CONSTRUCTOR=
    241 
    242 LIBC_LOW=
    243 
    244 ifndef LIBGCC
    245 LIBGCC = $(shell $(CC) $(CFLAGS) -print-libgcc-file-name $(GCCSED))
    246 endif
    247 
    248195#
    249196# NOTE: a rule to link an rtems' application should look similar to this
    250197#       (cf. "make-exe" in make/custom/*.cfg):
    251 #
    252 # gcc27:
    253 # $(PGM): $(LINK_FILES)
    254 #       $(LD) $(LDFLAGS) -o $@ $(LINK_OBJS) \
    255 #       --start-group $(LINK_LIBS) --end-group
    256198#
    257199# gcc28:
     
    273215    $(PROJECT_RELEASE)/lib/librtemscpu$(LIBSUFFIX_VA)
    274216
    275 ifeq ($(RTEMS_USE_GCC272),yes)
    276 LINK_LIBS = $(PROJECT_RELEASE)/lib/librtemsall$(LIBSUFFIX_VA)
    277 ifeq ($(RTEMS_CROSS_TARGET),yes)
    278 # NOTE: add libc and libgcc only for embedded targets
    279 #       LIBC_LIBM should not be needed by rtems itself.
    280 # FIXME: If a BSP requires libm, its make/custom/*.cfg file should add
    281 #        LIBC_LIBM to LINK_LIBS (untested)
    282 LINK_LIBS += $(LIBC_LIBC) $(LIBGCC)
    283 endif
    284 endif
    285 
    286217LINK_LIBS += $(LD_LIBS)   
    287218
     
    293224endif
    294225
    295 ifeq ($(RTEMS_USE_GCC272),yes)
    296226define make-rel
    297         $(LD) $(LDFLAGS_INCOMPLETE) $(XLDFLAGS) -o $@ $^
    298 endef
    299 else
    300 define make-rel
    301         $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
     227        $(LINK.c) $(CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \
    302228          -qnolinkcmds -nostdlib -Wl,-r $(XLDFLAGS) -o $@ $^
    303229endef
    304 endif
  • make/main.cfg

    rcb72774 rccf2cfd  
    2222#
    2323
     24ifeq ($(VARIANT),)
    2425ARCH=o-optimize
    25 
    2626VARIANT=
     27else
     28ifeq ($(VARIANT),DEBUG)
     29ARCH=o-debug
     30VARIANT=DEBUG
     31endif
     32endif
    2733
    2834#
Note: See TracChangeset for help on using the changeset viewer.