Commits (2)
@@IF@@ @_Language_@ = SIMULINK
@@IF@@ @_Language_@ = SIMULINK or @_Language_@ = QGenC or @_Language_@ = QGenAda
TRUE
@@END_IF@@
@@-- The documentation of the templates is there:
@@-- https://taste.tuxfamily.org/wiki/index.php?title=Kazoo_Templates_Documentation
@@-- If you are using vim, go over the URL and pres gx in to follow the link
@@-- If you have no internet access you can also use (with vim) Ctrl-W-f or gf in vim to open the text doc:
@@-- $HOME/tool-inst/share/kazoo/doc/templates_skeletons_sub_makefile.ascii
# Simulink function @_Name_@
# @_List_Of_PIs_@
all: compile-linux
clean:
rm -rf obj
compile-linux:
mkdir -p obj && cd obj && gcc -c ../src/*.c
@@IF@@ @_Language_@ = QGenC
generate-code:
mkdir -p code && \
qgenc ../xmi/@_List_Of_PIs_@.xmi --gen-entrypoint --wrap-io --pre-process-xmi --clean --no-misra --language c --output code
:
@@ELSIF@@ @_Language_@ = QGenAda
generate-code:
mkdir -p code && \
qgenc ../xmi/@_List_Of_PIs_@.xmi --gen-entrypoint --wrap-io --pre-process-xmi --clean --no-misra --language ada --output code
:
@@END_IF@@
compile-linux: generate-code
mkdir -p obj && cd obj && gcc -c ../src/*.c ../code/*.c ../wrappers/*.c
@@IF@@ @_Language_@ = SIMULINK
@@IF@@ @_Language_@ = SIMULINK or @_Language_@ = QGenC or @_Language_@ = QGenAda
TRUE
@@END_IF@@
@@IF@@ @_Language_@ = SIMULINK
@@IF@@ @_Language_@ = SIMULINK or @_Language_@ = QGenC or @_Language_@ = QGenAda
TRUE
@@END_IF@@