Makeprojects
Loading...
Searching...
No Matches
makeprojects.makefile.MakeProject Class Reference

Root object for a Makefile make file Created with the name of the project, the IDE code the platform code (Linux) More...

Public Member Functions

 __init__ (self, solution)
 Initialize the exporter.
 write_header (self, line_list)
 Write the header for a gnu makefile.
 write_output_list (self, line_list)
 Output the list of object files to create.
 write_phony_targets (self, line_list)
 Output all of the .PHONY targets.
 write_directory_targets (self, line_list)
 Create directory and make file targets.
 write_test_variables (self, line_list)
 Create tests for environment variables.
 write_configurations (self, line_list)
 Write configuration list.
 write_source_dir (self, line_list)
 Write out the list of directories for the source.
 write_rules (self, line_list)
 Output the default rules for building object code.
 write_files (self, line_list)
 Output the list of object files to create.
 write_all_target (self, line_list)
 Output the all rule.
 write_custom_files (self, line_list)
 Output the list of object files to create.
 write_builds (self, line_list)
 Output the rule to build the exes/libs.
 generate (self, line_list=None)
 Write out the makefile project.

Static Public Member Functions

 write_default_goal (line_list)
 Write the default goal for the makefile.

Public Attributes

 solution = solution
 Parent solution.
list platforms = []
 List of all platform types.
list configuration_list = []
 List of all configurations.
list configuration_names = []
 List of configuration names.
 custom_list = custom_list
 List of custom built files.
 output_list = get_output_list(custom_list)
 List of custom output files.

Protected Member Functions

 _write_phony_all (self, line_list)
 Generate all phony target.
 _write_phony_configurations (self, line_list)
 Generate phony configuration targets.
 _write_phony_platforms (self, line_list)
 Generate a list of platforms.
 _write_phony_binaries (self, line_list)
 Generate phony targets for binaries.
 _setcppflags (self, line_list)
 Output the default rules for C and C++.
 _setasmflags (self, line_list)
 Output the default rules for assembler.
 _setlinkerflags (self, line_list)
 Output the default rules for linker.

Detailed Description

Root object for a Makefile make file Created with the name of the project, the IDE code the platform code (Linux)

Constructor & Destructor Documentation

◆ __init__()

makeprojects.makefile.MakeProject.__init__ ( self,
solution )

Initialize the exporter.

Parameters
solutionSolution object to build from.

Member Function Documentation

◆ _setasmflags()

makeprojects.makefile.MakeProject._setasmflags ( self,
line_list )
protected

Output the default rules for assembler.

Parameters
line_listList of lines of text generated.
Returns
Zero

◆ _setcppflags()

makeprojects.makefile.MakeProject._setcppflags ( self,
line_list )
protected

Output the default rules for C and C++.

Parameters
line_listList of lines of text generated.
Returns
Zero

◆ _setlinkerflags()

makeprojects.makefile.MakeProject._setlinkerflags ( self,
line_list )
protected

Output the default rules for linker.

Parameters
line_listList of lines of text generated.
Returns
Zero

◆ _write_phony_all()

makeprojects.makefile.MakeProject._write_phony_all ( self,
line_list )
protected

Generate all phony target.

Parameters
line_listList of lines of text generated.

◆ _write_phony_binaries()

makeprojects.makefile.MakeProject._write_phony_binaries ( self,
line_list )
protected

Generate phony targets for binaries.

Parameters
line_listList of lines of text generated.

◆ _write_phony_configurations()

makeprojects.makefile.MakeProject._write_phony_configurations ( self,
line_list )
protected

Generate phony configuration targets.

Parameters
line_listList of lines of text generated.

◆ _write_phony_platforms()

makeprojects.makefile.MakeProject._write_phony_platforms ( self,
line_list )
protected

Generate a list of platforms.

Parameters
line_listList of lines of text generated.

◆ generate()

makeprojects.makefile.MakeProject.generate ( self,
line_list = None )

Write out the makefile project.

Parameters
line_liststring list to save the XML text
Returns
Zero on no error, non-zero on error.

◆ write_all_target()

makeprojects.makefile.MakeProject.write_all_target ( self,
line_list )

Output the all rule.

Parameters
line_listList of lines of text generated.
Returns
Zero

◆ write_builds()

makeprojects.makefile.MakeProject.write_builds ( self,
line_list )

Output the rule to build the exes/libs.

Parameters
line_listList of lines of text generated.
Returns
Zero

◆ write_configurations()

makeprojects.makefile.MakeProject.write_configurations ( self,
line_list )

Write configuration list.

Parameters
line_listList of lines of text generated.
Returns
Zero

◆ write_custom_files()

makeprojects.makefile.MakeProject.write_custom_files ( self,
line_list )

Output the list of object files to create.

Parameters
line_listList of lines of text generated.
Returns
Zero

◆ write_default_goal()

makeprojects.makefile.MakeProject.write_default_goal ( line_list)
static

Write the default goal for the makefile.

Parameters
line_listList of lines of text generated.
Returns
Zero

◆ write_directory_targets()

makeprojects.makefile.MakeProject.write_directory_targets ( self,
line_list )

Create directory and make file targets.

Parameters
line_listList of lines of text generated.
Returns
Zero

◆ write_files()

makeprojects.makefile.MakeProject.write_files ( self,
line_list )

Output the list of object files to create.

Parameters
line_listList of lines of text generated.
Returns
Zero

◆ write_header()

makeprojects.makefile.MakeProject.write_header ( self,
line_list )

Write the header for a gnu makefile.

Parameters
line_listList of lines of text generated.
Returns
Zero

◆ write_output_list()

makeprojects.makefile.MakeProject.write_output_list ( self,
line_list )

Output the list of object files to create.

Parameters
line_listList of lines of text generated.
Returns
Zero

◆ write_phony_targets()

makeprojects.makefile.MakeProject.write_phony_targets ( self,
line_list )

Output all of the .PHONY targets.

Create all of the targets, starting with all, and then all the configurations, followed by the clean targets

Parameters
line_listList of lines of text generated.
Returns
Zero

◆ write_rules()

makeprojects.makefile.MakeProject.write_rules ( self,
line_list )

Output the default rules for building object code.

Parameters
line_listList of lines of text generated.
Returns
Zero

◆ write_source_dir()

makeprojects.makefile.MakeProject.write_source_dir ( self,
line_list )

Write out the list of directories for the source.

Parameters
line_listList of lines of text generated.
Returns
Zero

◆ write_test_variables()

makeprojects.makefile.MakeProject.write_test_variables ( self,
line_list )

Create tests for environment variables.

Parameters
line_listList of lines of text generated.
Returns
Zero