Add an asm dump with source to the coldboot makefile
authorRaptor Engineering Development Team <support@raptorengineering.com>
Thu, 7 Apr 2022 21:33:51 +0000 (16:33 -0500)
committerRaptor Engineering Development Team <support@raptorengineering.com>
Thu, 7 Apr 2022 21:33:51 +0000 (16:33 -0500)
Clean all files, including libgram files, when running
make clean

coldboot/Makefile

index 8262c9c10d5174b442e0031bf7ac91af916edc50..4a90fe6fa5c6e85b50ae38e760ab9617aefde26e 100644 (file)
@@ -40,7 +40,7 @@ CFLAGS = -Os -g -Wall -std=c99 -msoft-float -mno-string \
 ASFLAGS = $(CFLAGS)
 LDFLAGS = -T powerpc.lds
 
-all: coldboot.hex
+all: coldboot.hex coldboot.S
 
 console.o: ../lib/console.c
        $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
@@ -67,9 +67,12 @@ coldboot.hex: coldboot.bin
        ../scripts/bin2hex.py $^ > $@
        powerpc64le-linux-gnu-objdump -D coldboot.elf > coldboot.as
 
+coldboot.S: coldboot.elf
+       objdump -S coldboot.elf > coldboot.S
+
 
 clean:
-       @rm -f *.o coldboot.elf coldboot.bin coldboot.hex coldboot.as powerpc.lds
+       @rm -f ../lib/*.o ../libgram/src/*.o *.o coldboot.elf coldboot.bin coldboot.hex coldboot.as coldboot.S powerpc.lds
 distclean: clean
        rm -f *~