diff --git a/tools/Makefile b/tools/Makefile index f843f833..35622cf9 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -27,14 +27,15 @@ reset_vector.bin: reset_vector.o ld --oformat binary -Ttext 0 -melf_i386 -o $@ $< SCC: scc_setup.bin reset_vector.bin - cp ../metalsvm.bin . + cp ../metalsvm.bin ./metalsvm.elf + objcopy -O binary metalsvm.elf metalsvm.bin chmod a-x *.bin . ./prepare.sh /home/lankes/tools/bin2obj -m load.map -o metalsvm.obj sccMerge -noimage -m 8 -n 12 -force ./metalsvm.mt clean: - $(RM) -rf *.o *~ make_initrd *.bin *.obj obj + $(RM) -rf *.o *~ make_initrd *.bin *.obj *.elf obj depend: $(CC) -MM $(CFLAGS) *.c > Makefile.dep