Changeset c2646c8 in rtems


Ignore:
Timestamp:
Nov 18, 2002, 12:42:53 AM (17 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
db28d621
Parents:
789a953
Message:

2002-11-17 Joel Sherrill <joel@…>

  • leaf.cfg, main.cfg, compilers/gcc-target-default.cfg: Make build variants work for user applications post install.
Location:
make
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • make/ChangeLog

    r789a953 rc2646c8  
     12002-11-17      Joel Sherrill <joel@OARcorp.com>
     2
     3        * leaf.cfg, main.cfg, compilers/gcc-target-default.cfg: Make
     4        build variants work for user applications post install.
     5
    162002-11-15      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    27
  • make/compilers/gcc-target-default.cfg

    r789a953 rc2646c8  
    5353# when debugging, optimize flag: typically empty
    5454# some compilers do allow optimization with their "-g"
    55 CFLAGS_OPTIMIZE_V=-g
    56 CXXFLAGS_OPTIMIZE_V=-g
     55CFLAGS_OPTIMIZE_V+=-g
     56CXXFLAGS_OPTIMIZE_V+=-g
    5757
    5858# profile flag; use gprof(1)
    59 CFLAGS_PROFILE_V=-pg
    60 CXXFLAGS_PROFILE_V=-pg
     59CFLAGS_PROFILE_V+=-pg
     60CXXFLAGS_PROFILE_V+=-pg
    6161
    6262ifndef AUTOMAKE
    63 # default is to optimize
    64 CFLAGS_OPTIMIZE  =$(CFLAGS_OPTIMIZE_V)
    65 CXXFLAGS_OPTIMIZE=$(CXXFLAGS_OPTIMIZE_V)
     63CFLAGS_$(VARIANT)  =$(CFLAGS_$(VARIANT)_V)
     64CXXFLAGS_$(VARIANT)=$(CXXFLAGS_$(VARIANT)_V)
    6665endif
    6766
  • make/leaf.cfg

    r789a953 rc2646c8  
    6161#
    6262debug:
    63         $(MAKE) -f $(MAKEFILE) MAKEFILE=$(MAKEFILE) "ARCH=o-debug" \
    64       "CFLAGS_DEBUG=$(CFLAGS_DEBUG_V)" \
    65       "CXXFLAGS_DEBUG=$(CXXFLAGS_DEBUG_V)" \
    66       "CFLAGS_OPTIMIZE=$(CFLAGS_OPTIMIZE_V)" \
    67       "LDFLAGS_DEBUG=$(LDFLAGS_DEBUG_V)" $(TARGET_VA)
     63        $(MAKE) -f $(MAKEFILE) MAKEFILE=$(MAKEFILE) VARIANT=DEBUG
    6864
    6965profile:
    70         $(MAKE) -f $(MAKEFILE) \
    71       MAKEFILE=$(MAKEFILE) "ARCH=o-profile" \
    72       "CFLAGS_PROFILE=$(CFLAGS_PROFILE_V)" \
    73       "CXXFLAGS_PROFILE=$(CXXFLAGS_PROFILE_V)" \
    74       "LDFLAGS_PROFILE=$(LDFLAGS_PROFILE_V)" $(TARGET_VA)
     66        $(MAKE) -f $(MAKEFILE) MAKEFILE=$(MAKEFILE) VARIANT=PROFILE
    7567endif
    7668
  • make/main.cfg

    r789a953 rc2646c8  
    2626
    2727## translate VARIANT into VARIANT_V
     28ifeq ($(VARIANT),)
    2829VARIANT = OPTIMIZE
     30endif
    2931
    3032VARIANT_OPTIMIZE_V = OPTIMIZE
Note: See TracChangeset for help on using the changeset viewer.