フィルターのクリア

How to compile and link all files generated with RTW from my .tmf file ??

7 ビュー (過去 30 日間)
Carlos
Carlos 2012 年 3 月 27 日
Hi,
I'm generating a target and all his files. In the .tmf file I need to compile and link all the generated files in the "model directory", because they are not always the same
Thanks in advance.

回答 (1 件)

Kaustubha Govind
Kaustubha Govind 2012 年 3 月 27 日
It's not clear exactly what kind of support you are looking for, but Customize Template Makefiles is a good place to start. I would also recommend familiarizing yourself with Makefiles first. A good beginner exercise is to actually modify the generated .mk file directly and test it until you achieve all your required build steps. Once this is done, it is fairly easy to update the corresponding.tmf file.
  4 件のコメント
Carlos
Carlos 2012 年 4 月 2 日
My problem is that I use a external compiler and linker:
LINK32=link.exe
And to generate the dll I need to pass the names of the .obj to the linker. For this reason, I think if I could concatenate "$(INTDIR)\" to all files in the macro |>MODEL_MODULES_OBJ<|, it could automatically link any model with different source files
Carlos
Carlos 2012 年 4 月 3 日
Or is posible to use this type of commands:
SRCS = $(REQ_SRCS) $(USER_SRCS) $(S_FUNCTIONS)
OBJS_CPP_UPPER = $(SRCS:.CPP=.obj)
OBJS_CPP_LOWER = $(OBJS_CPP_UPPER:.cpp=.obj)
OBJS_C_UPPER = $(OBJS_CPP_LOWER:.C=.obj)
OBJS = $(OBJS_C_UPPER:.c=.obj)
SHARED_OBJS = $(SHARED_SRC:.c=.obj)
with a external linker?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDeployment, Integration, and Supported Hardware についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by