org.eclipse.cdt.make.internal.core.makefile.gnu
Class GNUMakefile
java.lang.Object
org.eclipse.cdt.make.internal.core.makefile.Directive
org.eclipse.cdt.make.internal.core.makefile.Parent
org.eclipse.cdt.make.internal.core.makefile.AbstractMakefile
org.eclipse.cdt.make.internal.core.makefile.gnu.GNUMakefile
- All Implemented Interfaces:
- IGNUMakefile, IDirective, IMakefile, IParent
public class GNUMakefile
- extends AbstractMakefile
- implements IGNUMakefile
Makefile : ( statement ) *
statement : rule | macro_definition | comments | empty
rule : inference_rule | target_rule
inference_rule : target ':' ( command ) +
target_rule : target [ ( target ) * ] ':' [ ( prerequisite ) * ] [ ';' command ]
[ ( command ) * ]
macro_definition : string '=' (string)*
comments : ('#' (string) ) *
empty :
command : prefix_command string
target : string
prefix_command : '-' | '@' | '+'
internal_macro : "$<" | "$*" | "$@" | "$?" | "$%"
Method Summary |
IDirective[] |
getBuiltins()
Return all the builtin directives. |
IDirective[] |
getDirectives(boolean expand)
|
java.lang.String[] |
getIncludeDirectories()
Get the include directories search paths. |
static void |
main(java.lang.String[] args)
|
void |
parse(java.lang.String name)
|
void |
parse(java.lang.String name,
java.io.Reader reader)
Clear the all statements and (re)parse the Makefile |
void |
setIncludeDirectories(java.lang.String[] dirs)
Set the search include directories for the
"include" directive |
Methods inherited from class org.eclipse.cdt.make.internal.core.makefile.AbstractMakefile |
expandString, expandString, getBuiltinInferenceRules, getBuiltinInferenceRules, getBuiltinMacroDefinitions, getBuiltinMacroDefinitions, getInferenceRules, getInferenceRules, getMacroDefinitions, getMacroDefinitions, getRules, getRules, getTargetRules, getTargetRules |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.cdt.make.core.makefile.IMakefile |
expandString, expandString, getBuiltinMacroDefinitions, getBuiltinMacroDefinitions, getInferenceRules, getInferenceRules, getMacroDefinitions, getMacroDefinitions, getRules, getRules, getTargetRules, getTargetRules |
PATH_SEPARATOR
public static java.lang.String PATH_SEPARATOR
FILE_SEPARATOR
public static java.lang.String FILE_SEPARATOR
GNUMakefile
public GNUMakefile()
parse
public void parse(java.lang.String name)
throws java.io.IOException
- Throws:
java.io.IOException
parse
public void parse(java.lang.String name,
java.io.Reader reader)
throws java.io.IOException
- Description copied from interface:
IMakefile
- Clear the all statements and (re)parse the Makefile
- Specified by:
parse
in interface IMakefile
- Throws:
java.io.IOException
getDirectives
public IDirective[] getDirectives(boolean expand)
- Overrides:
getDirectives
in class Parent
getBuiltins
public IDirective[] getBuiltins()
- Description copied from interface:
IMakefile
- Return all the builtin directives.
- Specified by:
getBuiltins
in interface IMakefile
- Specified by:
getBuiltins
in class AbstractMakefile
- Returns:
setIncludeDirectories
public void setIncludeDirectories(java.lang.String[] dirs)
- Description copied from interface:
IGNUMakefile
- Set the search include directories for the
"include" directive
- Specified by:
setIncludeDirectories
in interface IGNUMakefile
getIncludeDirectories
public java.lang.String[] getIncludeDirectories()
- Description copied from interface:
IGNUMakefile
- Get the include directories search paths.
- Specified by:
getIncludeDirectories
in interface IGNUMakefile
- Returns:
main
public static void main(java.lang.String[] args)