mirror of
https://git.planet-casio.com/Lephenixnoir/fxsdk.git
synced 2024-12-29 13:03: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
|
# Assembler sources
|
||||||
build-fx/%.s.o: %.s
|
build-fx/%.s.o: %.s
|
||||||
@ mkdir -p $(dir $@)
|
@ mkdir -p $(dir $@)
|
||||||
$(TOOLCHAIN_FX)-gcc -c $< -o $@
|
$(TOOLCHAIN_FX)-gcc -c $< -o $@ -Wa,--dsp
|
||||||
build-cg/%.s.o: %.s
|
build-cg/%.s.o: %.s
|
||||||
@ mkdir -p $(dir $@)
|
@ mkdir -p $(dir $@)
|
||||||
$(TOOLCHAIN_CG)-gcc -c $< -o $@
|
$(TOOLCHAIN_CG)-gcc -c $< -o $@ -Wa,--dsp
|
||||||
|
|
||||||
# Preprocessed assembler sources
|
# Preprocessed assembler sources
|
||||||
build-fx/%.S.o: %.S
|
build-fx/%.S.o: %.S
|
||||||
@ mkdir -p $(dir $@)
|
@ mkdir -p $(dir $@)
|
||||||
$(TOOLCHAIN_FX)-gcc -c $< -o $@ $(INCLUDE_FX)
|
$(TOOLCHAIN_FX)-gcc -c $< -o $@ $(INCLUDE_FX) -Wa,--dsp
|
||||||
build-cg/%.S.o: %.S
|
build-cg/%.S.o: %.S
|
||||||
@ mkdir -p $(dir $@)
|
@ mkdir -p $(dir $@)
|
||||||
$(TOOLCHAIN_CG)-gcc -c $< -o $@ $(INCLUDE_CG)
|
$(TOOLCHAIN_CG)-gcc -c $< -o $@ $(INCLUDE_CG) -Wa,--dsp
|
||||||
|
|
||||||
# Assets
|
# Assets
|
||||||
build-fx/assets/%.o: assets-fx/% $(meta-fx)
|
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_C_COMPILER sh-elf-gcc)
|
||||||
set(CMAKE_CXX_COMPILER sh-elf-g++)
|
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)
|
add_link_options(-nostdlib)
|
||||||
link_libraries(-lgcc)
|
link_libraries(-lgcc)
|
||||||
add_compile_definitions(TARGET_FX9860G)
|
add_compile_definitions(TARGET_FX9860G)
|
||||||
|
|
|
@ -11,7 +11,7 @@ set(FXSDK_PLATFORM_LONG fxCG50)
|
||||||
set(CMAKE_C_COMPILER sh-elf-gcc)
|
set(CMAKE_C_COMPILER sh-elf-gcc)
|
||||||
set(CMAKE_CXX_COMPILER sh-elf-g++)
|
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)
|
add_link_options(-nostdlib)
|
||||||
link_libraries(-lgcc)
|
link_libraries(-lgcc)
|
||||||
add_compile_definitions(TARGET_FXCG50)
|
add_compile_definitions(TARGET_FXCG50)
|
||||||
|
|
Loading…
Reference in a new issue