mirror of
https://git.planet-casio.com/Lephenixnoir/fxsdk.git
synced 2024-12-28 20:43:37 +01:00
fxsdk: add assembler compilation rules
This commit is contained in:
parent
627fe14290
commit
4f145cb202
1 changed files with 16 additions and 1 deletions
|
@ -38,7 +38,8 @@ target-fx := $(filename).g1a
|
||||||
target-cg := $(filename).g3a
|
target-cg := $(filename).g3a
|
||||||
|
|
||||||
# Source files
|
# Source files
|
||||||
src := $(wildcard src/*.c src/*/*.c src/*/*/*.c src/*/*/*/*.c)
|
src := $(wildcard src/*.[csS] src/*/*.[csS] src/*/*/*.[csS] \
|
||||||
|
src/*/*/*/*.[csS])
|
||||||
assets-fx := $(wildcard assets-fx/*/*)
|
assets-fx := $(wildcard assets-fx/*/*)
|
||||||
assets-cg := $(wildcard assets-cg/*/*)
|
assets-cg := $(wildcard assets-cg/*/*)
|
||||||
|
|
||||||
|
@ -88,6 +89,20 @@ build-cg/%.o: %.c
|
||||||
@ mkdir -p $(dir $@)
|
@ mkdir -p $(dir $@)
|
||||||
sh4eb-elf-gcc -c $< -o $@ $(cf-cg) $(dflags)
|
sh4eb-elf-gcc -c $< -o $@ $(cf-cg) $(dflags)
|
||||||
|
|
||||||
|
# Assembler sources
|
||||||
|
build-fx/%.o: %.s
|
||||||
|
@ mkdir -p $(dir $@)
|
||||||
|
sh3eb-elf-gcc -c $< -o $@
|
||||||
|
build-fx/%.o: %.S
|
||||||
|
@ mkdir -p $(dir $@)
|
||||||
|
sh3eb-elf-gcc -c $< -o $@ $(sflags)
|
||||||
|
build-cg/%.o: %.s
|
||||||
|
@ mkdir -p $(dir $@)
|
||||||
|
sh4eb-elf-gcc -c $< -o $@
|
||||||
|
build-cg/%.o: %.S
|
||||||
|
@ mkdir -p $(dir $@)
|
||||||
|
sh4eb-elf-gcc -c $< -o $@ $(sflags)
|
||||||
|
|
||||||
# Images
|
# Images
|
||||||
build-fx/assets/img/%.o: assets-fx/img/%
|
build-fx/assets/img/%.o: assets-fx/img/%
|
||||||
@ mkdir -p $(dir $@)
|
@ mkdir -p $(dir $@)
|
||||||
|
|
Loading…
Reference in a new issue