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