Makefile: do .PHONY all in one
This commit is contained in:
		
							
								
								
									
										4
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								Makefile
									
									
									
									
									
								
							| @@ -26,6 +26,8 @@ include boot/Makefile.inc | ||||
| include kernel/Makefile.inc | ||||
| include devices/Makefile.inc | ||||
|  | ||||
| .PHONY: all clean boot | ||||
|  | ||||
| all: aedrix-kernel.img aedrix-kernel.elf | ||||
|  | ||||
| aedrix-kernel.elf: $(KOBJS) | ||||
| @@ -50,7 +52,6 @@ aedrix-kernel.img: aedrix-kernel.elf | ||||
| 	$(if $(VERBOSE:1=),@echo '     AS $@') | ||||
| 	$(if $(VERBOSE:1=),@)$(AS) -o $@ $< | ||||
|  | ||||
| .PHONY : clean | ||||
| clean: | ||||
| 	@echo '  CLEAN *.o' | ||||
| 	@rm -f $(KOBJS) | ||||
| @@ -59,6 +60,5 @@ clean: | ||||
| 	@echo '  CLEAN aedrix-kernel.img' | ||||
| 	@rm -f aedrix-kernel.img | ||||
|  | ||||
| .PHONY: boot | ||||
| boot: aedrix-kernel.elf | ||||
| 	@qemu-system-arm -m 1024 -M vexpress-a9 -kernel aedrix-kernel.elf -serial stdio | ||||
|   | ||||
		Reference in New Issue
	
	Block a user