# Version.mk について

Version.mk ファイルは、各ターゲットの Source フォルダに格納し、Makefile から参照され、出力ファイル名のバージョンなどの決定に使用されます。

以下のように指定します。

```
VERSION_MAIN = 1 	← 主バージョン(0-255)
VERSION_SUB  = 3	← 副バージョン(0-255)
VERSION_VAR  = 10	← ビルドなどの派生(0-255)
```

Makefile は Version.mk から以下のコンパイルオプションを追加します。

上記の例ではコンパイル時に -DVERSION\_MAIN=1 -DVERSION\_SUB=3 -DVERSION\_VAR=10 を追加します。

{% hint style="warning" %}
SDK 2013/11版までは Version.h が生成されましたが省略されます。ソース中で Version.h をインクルードしている場合は、Version.h を空ファイルにする、またはインクルードしないようにしてください。
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sdk.twelite.info/twelite-sdk-howto/birudonitsuite/versionmk-nitsuite.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
