Changeset 0707bd20 in rtems
- Timestamp:
- 06/06/03 02:59:13 (20 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 581c3117
- Parents:
- b52d7bc
- Location:
- c/src/make
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/make/ChangeLog
rb52d7bc r0707bd20 1 2003-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 1 9 2003-04-08 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2 10 -
c/src/make/README
rb52d7bc r0707bd20 31 31 another under 4.x, another under HPUX. 32 32 33 . Builtin support for compiling "variants" such as debug ,34 profile, and tcovversions. These variants can be built33 . Builtin support for compiling "variants" such as debug 34 versions. These variants can be built 35 35 recursively. 36 36 … … 111 111 o-optimize/ -- optimized binaries 112 112 o-debug/ -- debug binaries 113 o-profile/ -- profiling binaries114 113 115 114 Using the template Makefiles, this will all happen automatically. … … 124 123 Typing 'make' will place objects in o-optimize. 125 124 '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 129 127 CFLAGS and/or LDFLAGS are modified as per the compiler config file for 130 128 debug and profile support. 131 129 132 The targets debug , profile,etc., can be invoked recursively at130 The targets debug etc., can be invoked recursively at 133 131 the directory make level. So from the top of a tree, one could 134 132 install a debug version of everything under that point by: … … 142 140 143 141 For example, the following fragments link the normal, debug, or 144 profileversion of "libmine.a" as appropriate:142 version of "libmine.a" as appropriate: 145 143 146 144 LD_LIBS += $(LIBMINE) … … 251 249 252 250 Also specifies compiler flags to be used to generate optimized, 253 debugging and profileversions, as well as rules to compile251 debugging versions, as well as rules to compile 254 252 assembly language and make makefile dependencies. 255 253 … … 315 313 VARIANTS -- full list of all possible values for $(ARCH); 316 314 used mainly for 'make clean' 317 [ eg: "o-optimize o-debug o-profile" ]315 [ eg: "o-optimize o-debug" ] 318 316 319 317 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". 322 319 323 320 see make/leaf.cfg for more info. … … 335 332 CFLAGS_DEBUG_V -- value of debug flag for compiler 336 333 [ eg: -g ] 337 338 CFLAGS_PROFILE_V -- compiler profile flags339 [ eg: -pg ]340 334 341 335 CFLAGS_DEBUG_OPTIMIZE_V … … 344 338 345 339 CFLAGS_DEBUG 346 CFLAGS_PROFILE347 340 CFLAGS_OPTIMIZE -- current values for each depending 348 341 on make variant. -
c/src/make/bsp.mak
rb52d7bc r0707bd20 14 14 @echo ac_cv_env_CFLAGS_OPTIMIZE_V=\"$(CFLAGS_OPTIMIZE_V)\" >> $@ 15 15 @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 6 6 7 7 ## 8 # CFLAGS_OPTIMIZE_V, CFLAGS_DEBUG_V , CFLAGS_PROFILE_Vare the values we8 # CFLAGS_OPTIMIZE_V, CFLAGS_DEBUG_V are the values we 9 9 # would want the corresponding macros to be set to. 10 10 # 11 # CFLAGS_OPTIMIZE, CFLAGS_DEBUG , CFLAGS_PROFILEare set in the leaf12 # 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. 13 13 # 14 14 … … 31 31 GCCSPECS_OPTIMIZE_V = 32 32 GCCSPECS_DEBUG_V = -qrtems_debug 33 GCCSPECS_PROFILE_V =34 33 35 34 GCCSPECS = -B$(PROJECT_RELEASE)/lib/ -specs bsp_specs -qrtems … … 59 58 CXXFLAGS_OPTIMIZE_V+=-g 60 59 61 # profile flag; use gprof(1)62 CFLAGS_PROFILE_V+=-pg63 CXXFLAGS_PROFILE_V+=-pg64 65 60 ifndef AUTOMAKE 66 61 CFLAGS_$(VARIANT) =$(CFLAGS_$(VARIANT)_V) … … 69 64 70 65 ifndef AUTOMAKE 71 CFLAGS += $(CFLAGS_OPTIMIZE) $(CFLAGS_DEBUG) $(CFLAGS_PROFILE)72 CXXFLAGS += $(CXXFLAGS_OPTIMIZE) $(CXXFLAGS_DEBUG) $(CXXFLAGS_PROFILE)66 CFLAGS += $(CFLAGS_OPTIMIZE) $(CFLAGS_DEBUG) 67 CXXFLAGS += $(CXXFLAGS_OPTIMIZE) $(CXXFLAGS_DEBUG) 73 68 endif 74 69 … … 95 90 LDFLAGS_DYNAMIC_LIBNAME_V = -h $(DYNAMIC_VERSION_LIBNAME) 96 91 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%) 93 LDFLAGS=$(LDFLAGS_DEBUG) 103 94 104 95 # … … 173 164 # Replace foo.o with $(ARCH)/foo.o 174 165 # Replace $(ARCH) value with string $(ARCH) 175 # so that it will for debug and profilecases166 # so that it will for debug cases 176 167 $(COMPILE.c) $(AM_CPPFLAGS) $(AM_CFLAGS) -M $^ | \ 177 168 $(SED) -e 's?^\(.*\)\.o[ ]*:?$$(ARCH)/\1.o:?' \ -
c/src/make/configure.ac
rb52d7bc r0707bd20 80 80 AC_SUBST(CC_CFLAGS_DEFAULT) 81 81 AC_SUBST(CC_CFLAGS_DEBUG_V) 82 AC_SUBST(CC_CFLAGS_PROFILE_V)83 AC_SUBST(CC_LDFLAGS_PROFILE_V)84 82 85 83 cfg_dir="${RTEMS_TOPdir}/make"
Note: See TracChangeset
for help on using the changeset viewer.