1
0

Makefile: do .PHONY all in one

This commit is contained in:
Aaron Lindsay 2012-09-21 11:48:31 -04:00
parent 583765fd7c
commit ae45deb789

View File

@ -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