Using makefiles.
This commit is contained in:
		
							
								
								
									
										15
									
								
								Makefile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								Makefile
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
				
			|||||||
 | 
					AS=as
 | 
				
			||||||
 | 
					LINKER=ld
 | 
				
			||||||
 | 
					OBJ=src/MaxValue.o
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					%.o: %.asm
 | 
				
			||||||
 | 
						$(AS) -o $@ $<
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					maxvalue: $(OBJ)
 | 
				
			||||||
 | 
						mkdir bin/
 | 
				
			||||||
 | 
						$(LINKER) -o bin/$@ $^
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.PHONY: clean
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					clean:
 | 
				
			||||||
 | 
						rm $(OBJ)
 | 
				
			||||||
		Reference in New Issue
	
	Block a user