mirror of
https://git.planet-casio.com/Lephenixnoir/fxsdk.git
synced 2024-12-28 04:23:37 +01:00
fxsdk: add DSP assemblers flags
This commit is contained in:
parent
ad5d9bdb4c
commit
f5085e693d
3 changed files with 6 additions and 6 deletions
|
@ -123,18 +123,18 @@ build-cg/%.c.o: %.c
|
|||
# Assembler sources
|
||||
build-fx/%.s.o: %.s
|
||||
@ mkdir -p $(dir $@)
|
||||
$(TOOLCHAIN_FX)-gcc -c $< -o $@
|
||||
$(TOOLCHAIN_FX)-gcc -c $< -o $@ -Wa,--dsp
|
||||
build-cg/%.s.o: %.s
|
||||
@ mkdir -p $(dir $@)
|
||||
$(TOOLCHAIN_CG)-gcc -c $< -o $@
|
||||
$(TOOLCHAIN_CG)-gcc -c $< -o $@ -Wa,--dsp
|
||||
|
||||
# Preprocessed assembler sources
|
||||
build-fx/%.S.o: %.S
|
||||
@ mkdir -p $(dir $@)
|
||||
$(TOOLCHAIN_FX)-gcc -c $< -o $@ $(INCLUDE_FX)
|
||||
$(TOOLCHAIN_FX)-gcc -c $< -o $@ $(INCLUDE_FX) -Wa,--dsp
|
||||
build-cg/%.S.o: %.S
|
||||
@ mkdir -p $(dir $@)
|
||||
$(TOOLCHAIN_CG)-gcc -c $< -o $@ $(INCLUDE_CG)
|
||||
$(TOOLCHAIN_CG)-gcc -c $< -o $@ $(INCLUDE_CG) -Wa,--dsp
|
||||
|
||||
# Assets
|
||||
build-fx/assets/%.o: assets-fx/% $(meta-fx)
|
||||
|
|
|
@ -11,7 +11,7 @@ set(FXSDK_PLATFORM_LONG fx9860G)
|
|||
set(CMAKE_C_COMPILER sh-elf-gcc)
|
||||
set(CMAKE_CXX_COMPILER sh-elf-g++)
|
||||
|
||||
add_compile_options(-mb -ffreestanding -nostdlib)
|
||||
add_compile_options(-mb -ffreestanding -nostdlib -Wa,--dsp)
|
||||
add_link_options(-nostdlib)
|
||||
link_libraries(-lgcc)
|
||||
add_compile_definitions(TARGET_FX9860G)
|
||||
|
|
|
@ -11,7 +11,7 @@ set(FXSDK_PLATFORM_LONG fxCG50)
|
|||
set(CMAKE_C_COMPILER sh-elf-gcc)
|
||||
set(CMAKE_CXX_COMPILER sh-elf-g++)
|
||||
|
||||
add_compile_options(-m4-nofpu -mb -ffreestanding -nostdlib)
|
||||
add_compile_options(-m4-nofpu -mb -ffreestanding -nostdlib -Wa,--dsp)
|
||||
add_link_options(-nostdlib)
|
||||
link_libraries(-lgcc)
|
||||
add_compile_definitions(TARGET_FXCG50)
|
||||
|
|
Loading…
Reference in a new issue