http://verse2.tistory.com/m/post/19
http://m.egloos.zum.com/rucaus/v/2374063
http://developinghappiness.com/?p=520
http://m.egloos.zum.com/rucaus/v/2374063
http://developinghappiness.com/?p=520
https://gist.github.com/zeph1e/8840168
make를 사용해 컴파일
all:make
like : like.c love.c
$(cc) $(CFLAGS) -o $@ $^ $(LDFLAGS)
$@ like
$^ like.c love.c
-c
By default, the object file name for a source file is made by replacing the suffix ‘.c’, ‘.i’, ‘.s’, etc., with ‘.o’.
Unrecognized input files, not requiring compilation or assembly, are ignored.
-S
By default, the assembler file name for a source file is made by replacing the suffix ‘.c’, ‘.i’, etc., with ‘.s’.
Input files that don't require compilation are ignored.
-E
Input files that don't require preprocessing are ignored.
-o
fileIf -o is not specified, the default is to put an executable file in a.out, the object file for source.suffix in source.o, its assembler file in source.s, a precompiled header file in source.suffix.gch, and all preprocessed C source on standard output.
-v