2008-01-18から1日間の記事一覧

依存関係のあるmake

C

sub1.c (サブルーチン) #include <stdio.h> int submethod(int a) { return a * 5; } sub2.c #include <stdio.h> int b; int main() { b = 10; printf("%d\n", submethod(5)); return 0; } a.mk # Makefile a.out: sub1.obj # ? bcc32 sub2.c sub1.obj # sub2のコンパイル sub1</stdio.h></stdio.h>…