簡単なMakefileのサンプル - Delphi

Delphi用のシンプルなMakefileのサンプル

#  Delphi用の簡単なMakefile
#

#  コンパイルオプション
DCC = dcc32
DFLAGS = -CG -$O+

all: sample.exe

#  ユニットのコンパイル
form.dcu: form.pas form.dfm
    $(DCC) $(DFLAGS) form.pas

#  EXEの生成
sample.exe: sample.dpr sample.res form.dcu
    $(DCC) $(DFLAGS) sample.dpr

#  中間ファイルの削除
clean:
    del form.dcu
    del sample.exe

著者
iPentecのメインプログラマー
C#, ASP.NET の開発がメイン、少し前まではDelphiを愛用
最終更新日: 2024-01-07
作成日: 2010-02-28
iPentec all rights reserverd.