MOUNT_POINT ?= /mnt/temp BASE_DIR = /home/arrakis LOCAL_BASE = $(MOUNT_POINT)$(BASE_DIR) # base data FILES = arrakis.music loading.sprite # GP2X frame (not needed if GP2X version is not built) # FILES += frame320.raw # intro FILES += arrakis.sprite dunes.sprite # landscape FILES += rocks.sprite rocks_z.sprite # sky FILES += skymap.sprite sun.sprite # ground FILES += sand.sprite sand_night.sprite scroller.sprite # greetings GREETS = tbl mds fr kwl dss hg cns rbs lnx atz nce evk nl rv FILES += $(patsubst %,g_%.sprite,$(GREETS)) # rain FILES += rain.sprite # dawn FILES += shadowpy.sprite bigsun.sprite smallsun.sprite # clouds FILES += cloud1.sprite cloud2.sprite # parallax FILES += p_wall.sprite p_floor.sprite p_ceil.sprite FILES += chandelier.sprite column_bg_0.sprite column_bg_1.sprite column_fg.sprite ball33.sprite # rotozoom FILES += scorpion.sprite # planet FILES += planet.sprite stars.sprite # flash FILES += trbl.sprite # end FILES += end.sprite all: $(FILES) data: $(FILES) compress_music: compress_music.c cc -O -o compress_music compress_music.c rocks.png: rocks_lighting.py rocks_base.png python2 rocks_lighting.py p_wall.png p_floor.png p_ceil.png: parallax_preprocess.py p_wall_base.png p_floor_base.png p_ceil_base.png python2 parallax_preprocess.py lightmap.png: make_lightmap.py python2 make_lightmap.py %.sprite: %.png convert_sprite.py python2 convert_sprite.py $< %.music: %.wav compress_music ./compress_music $< $@ # 64000 # <- silence %.wav: %.mp3 #sox $< -c 1 -r 32000 $@ resample -ql ffmpeg -y -i $< -ac 1 -ar 32000 $@ clean: rm -f *.sprite *.music *.wav adpcm_output.* compress_music rm -f rocks.png p_wall.png p_floor.png p_ceil.png install: mkdir -p $(LOCAL_BASE)/data cp $(FILES) $(LOCAL_BASE)/data release: all cp $(FILES) ../$(RELEASEDIR)/data/ .PHONY: all data clean install release