"Makefile 만들기"의 두 판 사이의 차이

(새 문서: ==개요== ;makefile 만들기 ;How to make the makefile *make 빌드를 위한 makefile 만들기 ==make 란?== {{참고|make}} ==makefile 이란?== {{참고|makefile}} ==컴파...)
(차이 없음)

2018년 6월 13일 (수) 14:51 판

1 개요

makefile 만들기
How to make the makefile
  • make 빌드를 위한 makefile 만들기

2 make 란?

3 makefile 이란?

4 컴파일 예제

4.1 파일 개요

  • a.c (a.h), b.c (b.h), main.c 파일을 각각 만들어 보자

Files.png

4.2 파일 내용

a.c
#include <stdio.h>

void foo()
{
    printf("foo\n");
}
a.h
void foo();
b.c
#include <stdio.h>

void bar()
{
    printf("bar\n");
}
b.h
void bar();
main.c
#include "a.h"
#include "b.h"

int main()
{
    foo();
    bar();

    return 0;
}

작성중...

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}