This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
前回は、1つのMakefileを複数のMakefileに分ける方法を取り上げた。分割したMakefileは同じディレクトリにある必要はなく、includeディレクティブでパスを指定すれば読み込むことができる。例えば、次のように大本となるMakefileの一部を「inc01.mk」と「inc02.mk」に ...
Makefileは育てていくと大きな塊になってくる。内容を整理していくと、ほかのところで使っているMakefileと共通する部分が結構出てくるのだ。ほとんど同じ内容が複数のMakefileに存在している状態になってきたら「include」の出番だ。 Makefileにはincludeという ...
コンパイルを楽にするもの。 どのファイルからどうやって何のファイルを作り出すのか書いておく。 再コンパイルが必要かどうかの判断も make が行い、必要であれば再コンパイルしてくれる。 Makefile の基本構成 Makefile は次のルールで構成する。 複数書く ...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.