mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
- Make the tools implicitly when making the ROM
- Add a clean target to the tools Makefile - Run said clean target when cleaning the pokecrystal directory
This commit is contained in:
parent
fb154f5a6e
commit
202cea9705
5
Makefile
5
Makefile
@ -29,11 +29,12 @@ crystal11_obj := $(crystal_obj:.o=11.o)
|
|||||||
roms := pokecrystal.gbc pokecrystal11.gbc
|
roms := pokecrystal.gbc pokecrystal11.gbc
|
||||||
|
|
||||||
all: crystal
|
all: crystal
|
||||||
crystal: pokecrystal.gbc
|
crystal: tools pokecrystal.gbc
|
||||||
crystal11: pokecrystal11.gbc
|
crystal11: tools pokecrystal11.gbc
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(roms) $(crystal_obj) $(crystal11_obj) $(roms:.gbc=.map) $(roms:.gbc=.sym)
|
rm -f $(roms) $(crystal_obj) $(crystal11_obj) $(roms:.gbc=.map) $(roms:.gbc=.sym)
|
||||||
|
make clean -C tools/
|
||||||
|
|
||||||
compare: $(roms)
|
compare: $(roms)
|
||||||
@$(MD5) roms.md5
|
@$(MD5) roms.md5
|
||||||
|
@ -1,13 +1,18 @@
|
|||||||
.PHONY: all
|
.PHONY: all clean
|
||||||
|
|
||||||
all: \
|
tools := \
|
||||||
lzcomp \
|
lzcomp \
|
||||||
png_dimensions \
|
png_dimensions \
|
||||||
scan_includes \
|
scan_includes \
|
||||||
palette \
|
palette \
|
||||||
pokemon_animation \
|
pokemon_animation \
|
||||||
pokemon_animation_graphics
|
pokemon_animation_graphics
|
||||||
|
|
||||||
|
all: $(tools)
|
||||||
@:
|
@:
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f $(tools)
|
||||||
|
|
||||||
%: %.c
|
%: %.c
|
||||||
$(CC) -o $@ $<
|
$(CC) -o $@ $<
|
||||||
|
Loading…
Reference in New Issue
Block a user