2005-11-10から1日間の記事一覧

makefile で basename, dirname を使いたい

つぎのように書けば良い. $(@D) dirname($@) $(@F) basename($@)

makefile の自動変数

makeで使える自動変数のメモ. $@ The file name of the target $ The name of the first prerequisite libhoge.a: hoge.o huga.o ar curs $@ $<は libhoge.a: hoge.o huga.o ar curs libhoge.a hoge.o huga.oと展開される.