Makefile Generator
Overview
Makefile Generator Template File
Generating Makefile
Generating Makefile Components
Overview
Starting of development tools directly with the help of UDA macros is a possible, but often unsatisfactory way of describing the script used to obtain a program executable code. Besides, these macros impede the simple testing of all inter-dependencies in the entire project. This is why so-called Makefiles and Make software tools, either delivered by the compiler manufacturers, or supplied by independent software producers (usually in cooperation with a VCS) are used instead. If the Generate Makefile or its components check box in the Options > Makefile generator dialog box is active, DA-C is able to generate makefiles or components which can be used in them on the basis of the data received through static code analysis.
Makefile Generator Template File
Template File contains recipe how to generate Makefile. It is written in Makefile Generator Macro Language (MGML).
Example:
...
$(BINNAME): \
#$ ForAll( ASM_SOURCE OR C_SOURCE )
$(OBJDIR)\%FileName( NAME ).OBJ %AppendString(\)
#$ EndFor
echo Linker Command Line for $(BINNAME)
...Generating Makefile
Makefile is generated on the basis of the Makefile Generator (MFG) template file. With the help of Make Template Macro Language (MGML), one or more files generated by DA-C after static analysis are described in it. A Makefile Generator template file example can be found in folder "C:\Users\Public\Documents\RistanCASE\Development Assistant for C\MFG Templates".
Generating Makefile Components
If the Make Template File field in Makefile Generator options is empty, then ProjectName.DEP and ProjectName.OBL files will be generated as in the previous version of DA-C.
A "*.DEP" file describes dependencies found while analyzing the project source code. An "*.OBL" file contains the list of files that are to be linked. The example files (example.DEP and example.OBL) are located in "C:\Users\Public\Documents\RistanCASE\Development Assistant for C\MFG Templates".
Copyright © 1993-2022, RistanCASE PR