Problem Set 5 - Makefile

Makefileのメモ、箇条書き

speller: コロンの前は新しくできるファイルの名前
speller.oとdictionary.oを基にして新しいファイルができる。
上の2つこいつらに使われるのがdictionary.h

$@は:の前に書いてあるものに展開される(=置換される)=spellerのこと

make speller の内訳は以下のよう---

speller: speller.o dictionary.o
clang -o speller speller.o dictionary.o

speller.o: speller.c dictionary.h
clang -o speller.o speller.c

dictionary.o: dictionary.c dictionary.h
clang -o dictionary.o dictionary.c

ここまで---

LIBSは今回は関係無い(だから省略した、結局空白に展開されるから)