How to customize Makefile output info in custom toolchain approach based Simulink Coder target?
6 次查看(过去 30 天)
显示 更早的评论
Hi
I am in the process of implementing a custom target for Simulink Coder.
All required defines and compiler/linker flags can be set via the
BuildInfo structure in the corresponding *_make_rtw_hook file.
But how to customize output name/file extension and provide a custom output directory in the new toolchain approach?
In my old template makefile (TMF) approach I was able to customize the output info via the corresponding TMF entries.
Now I can only see the hard-coded output info:
PRODUCT = $(RELATIVE_PATH_TO_ANCHOR)\test_fcn.exe
PRODUCT_TYPE = "executable"
BUILD_TYPE = "Top-Level Standalone Executable"
0 个评论
回答(1 个)
Prathamesh
2023-8-18
Hi,
I understand that you want to customize the output name, file extension, and provide a custom output directory for the generated files.
I think you can use template makefile token expansion to specify the information you want to edit for example “|>RELATIVE_PATH_TO_ANCHOR<|”.
Refer to the following documentation for more information.
Also, you can add rules to the generated makefiles to customize folder names and include path. Refer to documentation below for more information.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Build Configuration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!