添加:01_嵌入式Linux应用开发基础知识/002.GCC编译器的使用.mp4

This commit is contained in:
weidongshan
2019-10-02 16:05:50 +08:00
parent 32b39a45a0
commit 1e8ad89c00
8 changed files with 31 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
src := $(shell ls *.c)
objs := $(patsubst %.c,%.o,$(src))
test: $(objs)
gcc -o $@ $^
%.o:%.c
gcc -c -o $@ $<
clean:
rm -f test *.o

View File

@@ -0,0 +1,10 @@
#include <stdio.h>
#include "sub.h"
int main(int argc, char *argv[])
{
int i;
printf("Main fun!\n");
sub_fun();
return 0;
}

View File

@@ -0,0 +1,4 @@
void sub_fun(void)
{
printf("Sub fun!\n");
}

View File

@@ -33,3 +33,8 @@
2019.09.30
上传了这个视频及对应的文档:
01_全系列视频第1季之快速入门/01_嵌入式Linux应用开发基础知识/01.HelloWorld背后没那么简单.mp4
08.
2019.10.02
上传了这个视频及对应的文档、图片、源码:
01_全系列视频第1季之快速入门/01_嵌入式Linux应用开发基础知识/002.GCC编译器的使用.mp4