数値計算ライブラリ:itensor:プログラムのメイク
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
数値計算ライブラリ:itensor:プログラムのメイク [2017/06/14 01:54] – koudai | 数値計算ライブラリ:itensor:プログラムのメイク [2021/07/05 15:57] (current) – koudai | ||
---|---|---|---|
Line 5: | Line 5: | ||
次のようなMakefileを作成する。 | 次のようなMakefileを作成する。 | ||
- | <sxh; first-line: 1; highlight: [1]; title: | + | <file make Makefile> |
APP=heisenberg_chain | APP=heisenberg_chain | ||
LIBRARY_DIR=/ | LIBRARY_DIR=/ | ||
Line 50: | Line 50: | ||
mkdebugdir: | mkdebugdir: | ||
mkdir -p .debug_objs | mkdir -p .debug_objs | ||
- | </sxh> | + | </file> |
プログラムのコンパイルと実行は、ソースコードとMakefileのあるディレクトリに入って次のようにする。 | プログラムのコンパイルと実行は、ソースコードとMakefileのあるディレクトリに入って次のようにする。 | ||
- | + | <code> | |
- | >\$ make | + | $ make |
- | >\$ ./ | + | $ ./ |
+ | </ | ||
デバッグモードの場合は | デバッグモードの場合は | ||
- | >\$ make debug | + | <code> |
+ | $ make debug | ||
+ | </ | ||
コンパイルで生成したファイルを消したい場合は | コンパイルで生成したファイルを消したい場合は | ||
- | >\$ make clean | + | <code> |
+ | $ make clean | ||
+ | </ | ||
数値計算ライブラリ/itensor/プログラムのメイク.1497372851.txt.gz · Last modified: 2021/06/27 21:57 (external edit)