endif\r
endif\r
\r
+include ../../config.mak\r
+\r
../../tools/textfilter: ../../tools/textfilter.c\r
make -C ../../tools/ textfilter\r
\r
readme.txt: ../../tools/textfilter ../base_readme.txt ../../ChangeLog\r
../../tools/textfilter ../base_readme.txt $@ PS2\r
\r
-# ?\r
-rel: ../../PicoDrive readme.txt ../game_def.cfg\r
- mkdir -p PicoDrive/skin/\r
- cp $^ PicoDrive/\r
- cp ../../skin/* PicoDrive/skin/\r
- zip -9 -r ../../PicoDrive_ps2_$(VER).zip PicoDrive\r
- rm -rf PicoDrive\r
- mkdir bin_to_cso_mp3\r
- cp ../../tools/bin_to_cso_mp3/* bin_to_cso_mp3/\r
- zip -9 -r ../../PicoDrive_ps2_$(VER).zip bin_to_cso_mp3\r
- rm -rf bin_to_cso_mp3\r
+PicoDrive: ../../PicoDrive\r
+ $(STRIP) $^ -o $@\r
+\r
+PicoDrive.elf: PicoDrive\r
+ ps2-packer $^ $@\r
\r
+rel: PicoDrive.elf readme.txt ../game_def.cfg\r
+ mkdir -p out/PicoDrive/skin/ out/bin_to_cso_mp3\r
+ cp $^ out/PicoDrive/\r
+ cp ../../skin/* out/PicoDrive/skin/\r
+ #mkdir -p out/bin_to_cso_mp3\r
+ #cp ../../tools/bin_to_cso_mp3/* out/bin_to_cso_mp3/\r
+ cd out && zip -9 -r ../../../PicoDrive_ps2_$(VER).zip *\r
+ rm -rf out\r
\r
{
int ret, l;
- if (samples_made - samples_done < samples_block * (SOUND_BLOCK_COUNT-3)) {
+ if (samples_made - samples_done <= samples_block * (SOUND_BLOCK_COUNT-3)) {
samples_made += len / 2;
PicoIn.sndOut += len / 2;
} else