mirror of
				https://e.coding.net/weidongshan/01_all_series_quickstart.git
				synced 2025-11-04 13:05:59 +08:00 
			
		
		
		
	添加:01_嵌入式Linux应用开发基础知识/002.GCC编译器的使用.mp4
This commit is contained in:
		
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								04_快速入门(正式开始)/01_嵌入式Linux应用开发基础知识/doc_pic/02.GCC编译器的使用.tif
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								04_快速入门(正式开始)/01_嵌入式Linux应用开发基础知识/doc_pic/02.GCC编译器的使用.tif
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										11
									
								
								04_快速入门(正式开始)/01_嵌入式Linux应用开发基础知识/source/02_options/Makefile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								04_快速入门(正式开始)/01_嵌入式Linux应用开发基础知识/source/02_options/Makefile
									
									
									
									
									
										Normal 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		
 | 
			
		||||
							
								
								
									
										10
									
								
								04_快速入门(正式开始)/01_嵌入式Linux应用开发基础知识/source/02_options/main.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								04_快速入门(正式开始)/01_嵌入式Linux应用开发基础知识/source/02_options/main.c
									
									
									
									
									
										Normal 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;
 | 
			
		||||
}
 | 
			
		||||
@@ -0,0 +1,4 @@
 | 
			
		||||
void sub_fun(void)
 | 
			
		||||
{
 | 
			
		||||
       printf("Sub fun!\n");
 | 
			
		||||
}
 | 
			
		||||
@@ -0,0 +1 @@
 | 
			
		||||
void sub_fun(void);
 | 
			
		||||
		Reference in New Issue
	
	Block a user