make/common/Defs.gmk

Print this page




 650 #    used for this file, otherwise the default settings are used.
 651 #
 652 CFLAGS_$(VARIANT)/BYFILE    = $(CFLAGS_$(VARIANT)/$(@F)) \
 653                               $(CFLAGS_$(VARIANT)$(CFLAGS_$(VARIANT)/$(@F)))
 654 CXXFLAGS_$(VARIANT)/BYFILE  = $(CXXFLAGS_$(VARIANT)/$(@F)) \
 655                               $(CXXFLAGS_$(VARIANT)$(CXXFLAGS_$(VARIANT)/$(@F)))
 656 
 657 #
 658 # Tool flags
 659 #
 660 ASFLAGS         = $(ASFLAGS_$(VARIANT)) $(ASFLAGS_COMMON) $(OTHER_ASFLAGS)
 661 CFLAGS          = $(CFLAGS_$(VARIANT)/BYFILE)   $(CFLAGS_COMMON) $(OTHER_CFLAGS)
 662 CXXFLAGS        = $(CXXFLAGS_$(VARIANT)/BYFILE) $(CXXFLAGS_COMMON) $(OTHER_CXXFLAGS)
 663 CPPFLAGS        = $(CPPFLAGS_$(VARIANT)) $(CPPFLAGS_COMMON) $(OTHER_CPPFLAGS) \
 664                   $(DEFINES) $(OPTIONS:%=-D%)
 665 LDFLAGS         = $(LDFLAGS_$(VARIANT)) $(LDFLAGS_COMMON) $(OTHER_LDFLAGS)
 666 LDLIBS          = $(OTHER_LDLIBS) $(LDLIBS_$(VARIANT)) $(LDLIBS_COMMON)
 667 LINTFLAGS       = $(LINTFLAGS_$(VARIANT)) $(LINTFLAGS_COMMON) \
 668                   $(OTHER_LINTFLAGS)
 669 
 670 # this should be moved into Defs-<platform>.gmk.....
 671 ifeq ($(PLATFORM), windows)
 672   VERSION_DEFINES = -DRELEASE="\"$(RELEASE)\""
 673 else
 674   VERSION_DEFINES = -DRELEASE='"$(RELEASE)"'
 675 endif
 676 
 677 # Note: As a rule, GNU Make rules should not appear in any of the 
 678 # Defs*.gmk files. These were added for Kestrel-Solaris and do address
 679 # a TeamWare bug. They should be moved elsewhere for Merlin.
 680 # 
 681 #  Override gnumake built-in rules which do sccs get operations badly.
 682 #  (They put the checked out code in the current directory, not in the
 683 #  directory of the original file.) 
 684 # Since this is a symptom of a teamware failure, complain and die on the spot.
 685 
 686 # This message immediately goes to stdout and the build terminates.
 687 define SCCS-trouble
 688 $(error  \
 689 "ERROR: File $@ referenced while building in $(CURRENT_DIRECTORY) \
 690  is out of date with respect to its SCCS file $<. \
 691  This can happen from an unresolved Teamware conflict, a file movement, or \
 692  a failure in which SCCS files are updated but the 'sccs get' was not done. \
 693  You should double check for other out of date files in your workspace. \
 694  Or run: cd $(TOPDIR) && $(MAKE) sccs_get")
 695 endef




 650 #    used for this file, otherwise the default settings are used.
 651 #
 652 CFLAGS_$(VARIANT)/BYFILE    = $(CFLAGS_$(VARIANT)/$(@F)) \
 653                               $(CFLAGS_$(VARIANT)$(CFLAGS_$(VARIANT)/$(@F)))
 654 CXXFLAGS_$(VARIANT)/BYFILE  = $(CXXFLAGS_$(VARIANT)/$(@F)) \
 655                               $(CXXFLAGS_$(VARIANT)$(CXXFLAGS_$(VARIANT)/$(@F)))
 656 
 657 #
 658 # Tool flags
 659 #
 660 ASFLAGS         = $(ASFLAGS_$(VARIANT)) $(ASFLAGS_COMMON) $(OTHER_ASFLAGS)
 661 CFLAGS          = $(CFLAGS_$(VARIANT)/BYFILE)   $(CFLAGS_COMMON) $(OTHER_CFLAGS)
 662 CXXFLAGS        = $(CXXFLAGS_$(VARIANT)/BYFILE) $(CXXFLAGS_COMMON) $(OTHER_CXXFLAGS)
 663 CPPFLAGS        = $(CPPFLAGS_$(VARIANT)) $(CPPFLAGS_COMMON) $(OTHER_CPPFLAGS) \
 664                   $(DEFINES) $(OPTIONS:%=-D%)
 665 LDFLAGS         = $(LDFLAGS_$(VARIANT)) $(LDFLAGS_COMMON) $(OTHER_LDFLAGS)
 666 LDLIBS          = $(OTHER_LDLIBS) $(LDLIBS_$(VARIANT)) $(LDLIBS_COMMON)
 667 LINTFLAGS       = $(LINTFLAGS_$(VARIANT)) $(LINTFLAGS_COMMON) \
 668                   $(OTHER_LINTFLAGS)
 669 
 670 VERSION_DEFINES = -DRELEASE='"$(RELEASE)"'





 671 
 672 # Note: As a rule, GNU Make rules should not appear in any of the 
 673 # Defs*.gmk files. These were added for Kestrel-Solaris and do address
 674 # a TeamWare bug. They should be moved elsewhere for Merlin.
 675 # 
 676 #  Override gnumake built-in rules which do sccs get operations badly.
 677 #  (They put the checked out code in the current directory, not in the
 678 #  directory of the original file.) 
 679 # Since this is a symptom of a teamware failure, complain and die on the spot.
 680 
 681 # This message immediately goes to stdout and the build terminates.
 682 define SCCS-trouble
 683 $(error  \
 684 "ERROR: File $@ referenced while building in $(CURRENT_DIRECTORY) \
 685  is out of date with respect to its SCCS file $<. \
 686  This can happen from an unresolved Teamware conflict, a file movement, or \
 687  a failure in which SCCS files are updated but the 'sccs get' was not done. \
 688  You should double check for other out of date files in your workspace. \
 689  Or run: cd $(TOPDIR) && $(MAKE) sccs_get")
 690 endef