第十章完结

This commit is contained in:
lzy
2024-04-13 18:12:27 +08:00
parent 431558b5e9
commit 51c29273f3
6 changed files with 54 additions and 0 deletions

11
Chapter10/Makefile.md Normal file
View File

@@ -0,0 +1,11 @@
# Makefile
## makefile与Makefile的区别
`make`使`makefile``Makefile`便`makefile`
## 参考资料
[Makefile Makefile 1.0 (seisman.github.io)](

13
Chapter10/testmake/main.c Normal file
View File

@@ -0,0 +1,13 @@
#include <stdio.h>
#include <stdlib.h>
#include "tool1.h"
#include "tool2.h"
int main()
{
mytool1();
mytool2();
return 0;
}

View File

@@ -0,0 +1,9 @@
#include <stdio.h>
#include <stdlib.h>
#include "tool1.h"
void mytool1(void)
{
printf("tool1 print\n");
}

View File

@@ -0,0 +1,6 @@
#ifndef TOOL1_H__
#define TOOL1_H__
void mytool1(void);
#endif

View File

@@ -0,0 +1,9 @@
#include <stdio.h>
#include <stdlib.h>
#include "tool2.h"
void mytool2(void)
{
printf("tool2 print\n");
}

View File

@@ -0,0 +1,6 @@
#ifndef TOOL2_H__
#define TOOL2_H__
void mytool2(void);
#endif