Hello world and puzzle program.
This commit is contained in:
		
							parent
							
								
									c4e5fbf0c9
								
							
						
					
					
						commit
						1f4cc71b96
					
				
					 6 changed files with 178 additions and 0 deletions
				
			
		
							
								
								
									
										12
									
								
								hello_world/SimpleMakefile
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								hello_world/SimpleMakefile
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,12 @@
 | 
			
		|||
CC := gcc
 | 
			
		||||
OPTIMIZATION := -O3
 | 
			
		||||
CFLAGS = $(OPTIMIZATION) -Werror -Wextra -Wall -Wpedantic
 | 
			
		||||
all: helloworld
 | 
			
		||||
 | 
			
		||||
#could be automatically built from implicit rules.
 | 
			
		||||
helloworld: src/helloworld.c
 | 
			
		||||
	mkdir -p build
 | 
			
		||||
	$(CC) $(CFLAGS) -o build/$@ $^
 | 
			
		||||
 | 
			
		||||
clean:
 | 
			
		||||
	rm -rf build
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue