set correct dependencies between the rules
This commit is contained in:
parent
12fb2a60f2
commit
4da0a6e15e
1 changed files with 3 additions and 3 deletions
|
@ -17,7 +17,7 @@ default: all
|
|||
|
||||
all: make_initrd initrd.img
|
||||
|
||||
initrd.img: $(EXECFILES)
|
||||
initrd.img: $(EXECFILES) make_initrd
|
||||
./make_initrd /bin $(foreach FILE, $(EXECFILES), $(FILE) $(shell basename $(FILE)))
|
||||
|
||||
make_initrd: make_initrd.o
|
||||
|
@ -41,7 +41,7 @@ scc_bootinfo.asm: bootinfo.sh
|
|||
scc_bootinfo.bin: scc_bootinfo.asm
|
||||
$(NASM) $(NASMFLAGS) -o $@ $<
|
||||
|
||||
SCC: scc_bootinfo.bin scc_setup.bin reset_vector.bin
|
||||
SCC: scc_bootinfo.bin scc_setup.bin reset_vector.bin initrd.img
|
||||
cp ../metalsvm.elf .
|
||||
$(CROSS_OBJCOPY) -j .mboot -j .text -j .data -j .rodata -j .bss -O binary metalsvm.elf metalsvm.bin
|
||||
chmod a-x *.bin
|
||||
|
@ -50,7 +50,7 @@ SCC: scc_bootinfo.bin scc_setup.bin reset_vector.bin
|
|||
sccMerge -noimage -m 8 -n 12 -force ./metalsvm.mt
|
||||
|
||||
clean:
|
||||
$(RM) -rf *.o *~ make_initrd *.bin *.obj *.hex *.elf obj
|
||||
$(RM) -rf *.o *~ make_initrd initrd.img *.bin *.obj *.hex *.elf obj
|
||||
|
||||
depend:
|
||||
$(CC) -MM $(CFLAGS) *.c > Makefile.dep
|
||||
|
|
Loading…
Add table
Reference in a new issue