Next: , Previous: , Up: Dezyne Code Integration   [Contents]


3.4 Compiling your application

To compile your application, an example makefile has been included. In this section, we will explore the features this makefile offers and help you configure it to your environment’s needs. The makefile that was used to compile the AlarmSystem project can be found at https://github.com/VerumSoftwareTools/DezyneSection/tree/master/Code_Integration/Ch3_Makefile.

The nice thing about this makefile is that it can be re-used for other C++ projects that combine foreign code with code generated from Dezyne. Additionally, the makefile has gradually grown to facilitate version control. Dzn model files are treated as source code and checked into version control. Dezyne-generated C++ is treated similar to C++-generated object files: it is not checked into version control because it can always be regenerated.