2013. 7. 21. 22:05

$gcc -o filename source_1.c [source_2.c source_3.c.....]

> gcc -o hello hello.c

(-o 실행filename)

 

(-c 목적코드 생성)

>gcc -c one.c

(one.o)

 

Makefile의 구조

target_list : dependency_list

command_list   //command_list는 반드시 Tab을 사용하여 들여쓰기를 해야 한다.

 

 

hello: hello.c

gcc -o test test.c

 

Posted by Triany