Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # release packaging makefile
  2. VER := $(shell head -n 1 ../common/version.h | \
  3. sed 's/.*"\(.*\)\.\(.*\)".*/\1\2/g')
  4. BUILD := $(shell git describe HEAD | grep -- - | \
  5. sed -e 's/.*\-\(.*\)\-.*/\1/')
  6. ifneq "$(BUILD)" ""
  7. VER := $(VER)_$(BUILD)
  8. endif
  9. include ../../config.mak
  10. all: rel
  11. ../../tools/textfilter: ../../tools/textfilter.c
  12. make -C ../../tools/ textfilter
  13. readme.txt: ../../tools/textfilter ../base_readme.txt ../../ChangeLog
  14. ../../tools/textfilter ../base_readme.txt $@ GP2X
  15. CODE940 = code940/pico940_v3.bin
  16. PicoDrive: ../../PicoDrive
  17. $(STRIP) $^ -o $@
  18. rel: PicoDrive PicoDrive.gpe $(CODE940) readme.txt ../game_def.cfg \
  19. PicoDrive.png PicoDrive_s.png PicoDrive_t.png \
  20. warm_2.4.25.o warm_2.4.26-open2x.o warm_2.6.24.ko \
  21. ../../pico/carthw.cfg
  22. mkdir -p out/PicoDrive/skin/
  23. cp $^ out/PicoDrive/
  24. cp PicoDrive.ini out/
  25. cp skin/*.png out/PicoDrive/skin/
  26. cp skin/*.txt out/PicoDrive/skin/
  27. #mkdir out/bin_to_cso_mp3
  28. #cp ../../tools/bin_to_cso_mp3/* out/bin_to_cso_mp3/
  29. cd out && zip -9 -r ../../../PicoDrive_$(VER).zip *
  30. rm -rf out
  31. $(CODE940):
  32. make -C code940/