makefile.txt

来自「makefile示例及编写方法」· 文本 代码 · 共 35 行

TXT
35
字号
/*main.c*/
#include "mytool1.h"
#include "mytool2.h"
int main()
{
         mytool1_print("hello mytool1!");
         mytool2_print("hello mytool2!");
        return 0;
}
  
/*mytool1.c*/
#include "mytool1.h"
#include stdio.h>
void mytool1_print(char *print_str)
{
         printf("This is mytool1 print : %s ",print_str);
}
/*mytool1.h*/
#ifndef _MYTOOL_1_H
#define _MYTOOL_1_H
        void mytool1_print(char *print_str);
#endif
/*mytool2.c*/
#include "mytool2.h"
#include stdio.h>
void mytool2_print(char *print_str)
{
         printf("This is mytool2 print : %s ",print_str);
}
/*mytool2.h*/
#ifndef _MYTOOL_2_H
#define _MYTOOL_2_H
        void mytool2_print(char *print_str);
#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?