Changeset 0707bd20 in rtems


Ignore:
Timestamp:
06/06/03 02:59:13 (20 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
581c3117
Parents:
b52d7bc
Message:

2003-06-06 Ralf Corsepius <corsepiu@…>

  • bsp.mak: Remove support for profile-variant.
  • configure.ac: Ditto.
  • directory.cfg: Ditto.
  • compilers/gcc-target-default.cfg: Ditto.
  • make/README: Remove references to profile-variant.
Location:
c/src/make
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • c/src/make/ChangeLog

    rb52d7bc r0707bd20  
     12003-06-06      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
     2
     3        * bsp.mak: Remove support for profile-variant.
     4        * configure.ac: Ditto.
     5        * directory.cfg: Ditto.
     6        * compilers/gcc-target-default.cfg: Ditto.
     7        * make/README: Remove references to profile-variant.
     8
    192003-04-08      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    210
  • c/src/make/README

    rb52d7bc r0707bd20  
    3131            another under 4.x, another under HPUX.
    3232
    33         .  Builtin support for compiling "variants" such as debug,
    34             profile, and tcov versions.  These variants can be built
     33        .  Builtin support for compiling "variants" such as debug
     34            versions.  These variants can be built
    3535            recursively.
    3636
     
    111111            o-optimize/       -- optimized binaries
    112112            o-debug/          -- debug binaries
    113             o-profile/        -- profiling binaries
    114113
    115114        Using the template Makefiles, this will all happen automatically.
     
    124123        Typing 'make' will place objects in o-optimize.
    125124        'make debug' will place objects in o-debug.
    126         'make profile' will place objects in o-profile.
    127 
    128         The debug and profile targets are equivalent to 'all' except that
     125
     126        The debug targets are equivalent to 'all' except that
    129127        CFLAGS and/or LDFLAGS are modified as per the compiler config file for
    130128        debug and profile support.
    131129
    132         The targets debug, profile, etc., can be invoked recursively at
     130        The targets debug etc., can be invoked recursively at
    133131        the directory make level.  So from the top of a tree, one could
    134132        install a debug version of everything under that point by:
     
    142140
    143141        For example, the following fragments link the normal, debug, or
    144         profile version of "libmine.a" as appropriate:
     142        version of "libmine.a" as appropriate:
    145143
    146144            LD_LIBS   += $(LIBMINE)
     
    251249
    252250            Also specifies compiler flags to be used to generate optimized,
    253             debugging and profile versions, as well as rules to compile
     251            debugging versions, as well as rules to compile
    254252            assembly language and make makefile dependencies.
    255253
     
    315313            VARIANTS    -- full list of all possible values for $(ARCH);
    316314                           used mainly for 'make clean'
    317                            [ eg: "o-optimize o-debug o-profile" ]
     315                           [ eg: "o-optimize o-debug" ]
    318316
    319317            VARIANT_VA  -- Variant name.
    320                            Normally "", but for 'make debug' it is "debug",
    321                            for 'make profile', "profile, etc.
     318                           Normally "", but for 'make debug' it is "debug".
    322319
    323320                           see make/leaf.cfg for more info.
     
    335332            CFLAGS_DEBUG_V      -- value of debug flag for compiler
    336333                                   [ eg: -g ]
    337 
    338             CFLAGS_PROFILE_V    -- compiler profile flags
    339                                    [ eg: -pg ]
    340334
    341335            CFLAGS_DEBUG_OPTIMIZE_V
     
    344338
    345339            CFLAGS_DEBUG
    346             CFLAGS_PROFILE
    347340            CFLAGS_OPTIMIZE     -- current values for each depending
    348341                                    on make variant.
  • c/src/make/bsp.mak

    rb52d7bc r0707bd20  
    1414        @echo ac_cv_env_CFLAGS_OPTIMIZE_V=\"$(CFLAGS_OPTIMIZE_V)\" >> $@
    1515        @echo ac_cv_env_CFLAGS_DEBUG_V=\"$(CFLAGS_DEBUG_V)\" >> $@
    16         @echo ac_cv_env_CFLAGS_PROFILE_V=\"$(CFLAGS_PROFILE_V)\" >> $@
  • c/src/make/compilers/gcc-target-default.cfg

    rb52d7bc r0707bd20  
    66
    77##
    8 # CFLAGS_OPTIMIZE_V, CFLAGS_DEBUG_V, CFLAGS_PROFILE_V are the values we
     8# CFLAGS_OPTIMIZE_V, CFLAGS_DEBUG_V are the values we
    99# would want the corresponding macros to be set to.
    1010#
    11 # CFLAGS_OPTIMIZE, CFLAGS_DEBUG, CFLAGS_PROFILE are set in the leaf
    12 # Makefiles by the 'debug:' and 'profile:' targets to their _V values.
     11# CFLAGS_OPTIMIZE, CFLAGS_DEBUG are set in the leaf
     12# Makefiles by the 'debug:' targets to their _V values.
    1313#
    1414
     
    3131GCCSPECS_OPTIMIZE_V =
    3232GCCSPECS_DEBUG_V = -qrtems_debug
    33 GCCSPECS_PROFILE_V =
    3433
    3534GCCSPECS = -B$(PROJECT_RELEASE)/lib/ -specs bsp_specs -qrtems
     
    5958CXXFLAGS_OPTIMIZE_V+=-g
    6059
    61 # profile flag; use gprof(1)
    62 CFLAGS_PROFILE_V+=-pg
    63 CXXFLAGS_PROFILE_V+=-pg
    64 
    6560ifndef AUTOMAKE
    6661CFLAGS_$(VARIANT)  =$(CFLAGS_$(VARIANT)_V)
     
    6964
    7065ifndef AUTOMAKE
    71 CFLAGS   += $(CFLAGS_OPTIMIZE) $(CFLAGS_DEBUG) $(CFLAGS_PROFILE)
    72 CXXFLAGS += $(CXXFLAGS_OPTIMIZE) $(CXXFLAGS_DEBUG) $(CXXFLAGS_PROFILE)
     66CFLAGS   += $(CFLAGS_OPTIMIZE) $(CFLAGS_DEBUG)
     67CXXFLAGS += $(CXXFLAGS_OPTIMIZE) $(CXXFLAGS_DEBUG)
    7368endif
    7469
     
    9590LDFLAGS_DYNAMIC_LIBNAME_V = -h $(DYNAMIC_VERSION_LIBNAME)
    9691
    97 # ld flags for profiling, debugging
    98 LDFLAGS_PROFILE_V =
    99 LDFLAGS_DEBUG_V = -qrtems_debug
    100 
    101 # LDFLAGS=$(LDFLAGS_PROFILE) $(LDFLAGS_DEBUG) $(LD_PATHS:%=-L%)
    102 LDFLAGS=$(LDFLAGS_PROFILE) $(LDFLAGS_DEBUG)
     92# LDFLAGS=$(LDFLAGS_DEBUG) $(LD_PATHS:%=-L%)
     93LDFLAGS=$(LDFLAGS_DEBUG)
    10394
    10495#
     
    173164#       Replace foo.o with $(ARCH)/foo.o
    174165#       Replace $(ARCH) value with string $(ARCH)
    175 #           so that it will for debug and profile cases
     166#           so that it will for debug cases
    176167        $(COMPILE.c) $(AM_CPPFLAGS) $(AM_CFLAGS) -M   $^    |  \
    177168        $(SED) -e 's?^\(.*\)\.o[ ]*:?$$(ARCH)/\1.o:?' \
  • c/src/make/configure.ac

    rb52d7bc r0707bd20  
    8080AC_SUBST(CC_CFLAGS_DEFAULT)
    8181AC_SUBST(CC_CFLAGS_DEBUG_V)
    82 AC_SUBST(CC_CFLAGS_PROFILE_V)
    83 AC_SUBST(CC_LDFLAGS_PROFILE_V)
    8482
    8583cfg_dir="${RTEMS_TOPdir}/make"
Note: See TracChangeset for help on using the changeset viewer.