X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=mk%2Fjam%2Fflags.jam;h=13641364cd3b5b0ee25cd044d3b5c12b5b067eec;hb=ee229cc4c8769600369fa578e1df9c107cad7762;hp=1b8ea6160fd515c2a58eb04ee78ac21b94dabbc9;hpb=6fe1f3519eecbbb75eca97c45a6697eee36b2442;p=supertux.git diff --git a/mk/jam/flags.jam b/mk/jam/flags.jam index 1b8ea6160..13641364c 100644 --- a/mk/jam/flags.jam +++ b/mk/jam/flags.jam @@ -22,8 +22,8 @@ rule LinkWith # inherit the exported flags CppFlags $(<) : $($(i)_CPPFLAGS) : $(3) ; CFlags $(<) : $($(i)_CFLAGS) : $(3) ; - C++Flags $(<) : $($(i)_C++FLAGS) : $(3) ; - LFlags $(<) : $($(i)_LFLAGS) : $(3) ; + C++Flags $(<) : $($(i)_CXXFLAGS) : $(3) ; + LFlags $(<) : $($(i)_LIBS) : $(3) ; } } else { echo "WARNING: Trying to link" $(i) @@ -74,10 +74,10 @@ rule CFlags rule C++Flags { - C++FLAGS on $($(<)_OBJECTS) += $(>) ; + CXXFLAGS on $($(<)_OBJECTS) += $(>) ; if [ IsElem export : $(3) ] { - $(<)_C++FLAGS = $(>) ; + $(<)_CXXFLAGS = $(>) ; } } @@ -85,10 +85,10 @@ rule C++Flags ## Sets linker flags for a library, plugin or application target rule LFlags { - LFLAGS on $($(<)_TARGET) += $(>) ; + LIBS on $($(<)_TARGET) += $(>) ; if [ IsElem export : $(3) ] { - $(<)_LFLAGS = $(>) ; + $(<)_LIBS = $(>) ; } } @@ -124,7 +124,7 @@ rule ExtraObjects ## sure the dependency scanner is able to locate your header files. The ## directories are relative to the current subdir specified with the SubDir ## rule. -## Implementation: The directories are simply added to the HDRS variable +## Implementation: The directories are simply added to the HDRSEARCH variable ## which is respected by all jam rules. rule IncludeDir { @@ -136,14 +136,14 @@ rule IncludeDir CppFlags $(<) : [ CreateIncludeFlags $(dir) ] ; # needed for header scanning - HDRS on $($(<)_SOURCES) += $(dir) ; + HDRSEARCH on $($(<)_SOURCES) += $(dir) ; } } else { for i in $(<) { dir = [ ConcatDirs $(SUBDIR) $(i) ] ; CPPFLAGS += [ CreateIncludeFlags $(dir) ] ; # needed for header scanning - HDRS += $(dir) ; + HDRSEARCH += $(dir) ; } } }