mirror of
https://github.com/ioacademy-jikim/debugging
synced 2026-08-21 05:13:27 +00:00
first commit
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,9 @@
|
||||
// my_source.c
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <app.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
printf("%d\n", MAX);
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
#define MAX 100
|
||||
@@ -0,0 +1,8 @@
|
||||
# makefile1
|
||||
# 아래 코드를 먼저 보여 주고.
|
||||
# 문제점으로 app.h 안에있는 #define MAX 100이 변경될경우
|
||||
# 다시 컴파일 되지 않는다는 것을 이야기 할것.
|
||||
# 그리고 makefile2를 수업.
|
||||
|
||||
app: app.c
|
||||
cc -o app app.c -I .
|
||||
@@ -0,0 +1,5 @@
|
||||
# makefile2
|
||||
# make -f makefile2
|
||||
|
||||
app: app.c app.h
|
||||
cc -o app app.c -I .
|
||||
Reference in New Issue
Block a user