diff --git a/example/aica.cpp b/example/aica.cpp index 8df3058..4851143 100644 --- a/example/aica.cpp +++ b/example/aica.cpp @@ -4,8 +4,8 @@ #include "systembus.hpp" #include "systembus_bits.hpp" -extern void * _binary_start __asm("_binary_example_arm_main_bin_start"); -extern void * _binary_size __asm("_binary_example_arm_main_bin_size"); +extern void * _binary_start __asm("_binary_example_arm_channel_bin_start"); +extern void * _binary_size __asm("_binary_example_arm_channel_bin_size"); void wait() { diff --git a/example/arm/Makefile b/example/arm/Makefile index 987484d..9591d55 100644 --- a/example/arm/Makefile +++ b/example/arm/Makefile @@ -18,8 +18,14 @@ TARGET = arm-none-eabi- include base.mk -main.elf: LDSCRIPT = main.lds -main.elf: start.o main.o audio.pcm.o +channel.elf: LDSCRIPT = main.lds +channel.elf: start.o channel.o audio.pcm.o + +clean: + find -P \ + -regextype posix-egrep \ + -regex '.*\.(o|d|bin|elf|gch)$$' \ + -exec rm {} \; .SUFFIXES: .INTERMEDIATE: diff --git a/example/arm/main.cpp b/example/arm/channel.cpp similarity index 100% rename from example/arm/main.cpp rename to example/arm/channel.cpp diff --git a/example/example.mk b/example/example.mk index 37cd118..a9072e9 100644 --- a/example/example.mk +++ b/example/example.mk @@ -368,7 +368,7 @@ example/gdrom_iso9660.elf: $(START_OBJ) $(GDROM_ISO9660_OBJ) AICA_OBJ = \ example/aica.o \ sh7091/serial.o \ - example/arm/main.bin.o \ + example/arm/channel.bin.o \ example/aica.elf: LDSCRIPT = $(LIB)/alt.lds example/aica.elf: $(START_OBJ) $(AICA_OBJ)