Makefileã®åºæ¬çãªæ§é makeã³ãã³ãã使ãã°ãMakefileã«ãããããè¨è¿°ãã¦ãããæé ã«ãããã£ã¦ãC/C++ãªã©ã®ã½ã¼ã¹ãã¡ã¤ã«ããå®è¡ãã¡ã¤ã«ãèªåã§çæã§ãã¾ãã å¦çå: ä¾åãããã¡ã¤ã«ãããã¯å¦çå [ã¿ãã²ã¨ã¤]å®è¡ãããã³ãã³ã Makefile Sample: sample.cpp g++ -o sample sample.cpp sample.cpp #include <iostream> using namespace std; int main() { cout << "This is a sample." << endl; return 0; } å®è¡ä¾ $ make g++ -o sample sample.cpp $ ./sample This is a sample. è¤æ°ã®å¦ç å¦çã¯è¤æ°è¨è¿°ã§ãã¾ããmakeã³ãã³ãã®å¼æ°ãæå®ããªãã

{{#tags}}- {{label}}
{{/tags}}