dither4/Makefile

76 lines
1.7 KiB
Makefile
Raw Normal View History

2024-08-31 16:42:02 +00:00
all : rickroll.xex
# sample5.s from sample5.jpg
# reminder: $< is input
# $@ is output
%.s : %.jpg dither-image.js gif.sh mp4.sh
2022-12-04 22:21:46 +00:00
node dither-image.js $< $@
2022-11-26 01:35:10 +00:00
chickens.s : chickens.wav pack-wav.js
node pack-wav.js $< $@
dubstep.wav.s : dubstep.wav pack-wav.js
node pack-wav.js $< $@
dubstep.wav : Dubstep_Loop_by_WinnieTheMoog.ogg
ffmpeg -i "Dubstep_Loop_by_WinnieTheMoog.ogg" \
-t 2.0 \
-acodec pcm_u8 \
-ac 1 \
-ar 15704 \
-y $@
2024-08-31 16:40:38 +00:00
never-gonna-give-you-up.wav.s : never-gonna-give-you-up.wav pack-wav.js
node pack-wav.js $< $@
never-gonna-give-you-up.wav : never-gonna-give-you-up.mp4
ffmpeg -i "never-gonna-give-you-up.mp4" \
-vn \
-t 2.0 \
-acodec pcm_u8 \
-ac 1 \
-ar 15704 \
-y $@
2024-10-27 19:22:09 +00:00
rickroll-17s.wav.s : rickroll-17s.wav pack-vocoder.js
node pack-vocoder.js $< $@
rickroll-17s.wav : rickroll-17s.mp4
ffmpeg -i "rickroll-17s.mp4" \
-vn \
-t 2.0 \
-acodec pcm_u8 \
-ac 1 \
-ar 15000 \
-y $@
2022-11-26 01:54:58 +00:00
%.o : %.s
ca65 -v -t atari -o $@ $<
2024-10-27 19:22:09 +00:00
rickroll.xex : rickroll.o dither4.o never-gonna-give-you-up.wav.o atari-asm-xex.cfg
2024-08-31 16:40:38 +00:00
ld65 -v -C ./atari-asm-xex.cfg -o $@ dither4.o never-gonna-give-you-up.wav.o $<
2022-11-26 02:01:14 +00:00
2024-10-27 19:22:09 +00:00
vocoder.xex : rickroll.o vocoder.o rickroll-17s.wav.o atari-asm-xex.cfg
ld65 -v -C ./atari-asm-xex.cfg -o $@ vocoder.o rickroll-17s.wav.o $<
2022-11-26 02:01:14 +00:00
clean :
2023-03-19 22:47:22 +00:00
rm -f *.o
rm -f *.s.png
2023-03-23 23:52:48 +00:00
rm -f sample[0-9].s
rm -f fruit.s mapclock.s sailboat.s sunset.s train404.s
rm -f potato.s selfie.s kitty.s meme.s
2022-12-08 00:12:15 +00:00
rm -f *.xex
rm -f chickens.s
rm -f chickens.o
rm -f dubstep.wav
rm -f dubstep.wav.[so]
2024-08-31 16:40:38 +00:00
rm -f never-gonna-give-you-up.wav
rm -f never-gonna-give-you-up.wav.[so]
2024-08-31 16:42:02 +00:00
test : all
atari800 rickroll.xex
.dummy: clean test sample0.s sample1.s sample2.s sample3.s sample4.s sample5.s sample6.s chickens.s rickroll.s