Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

56 righe
2.0 KiB

  1. SUBDIRS = src test tools gfx
  2. SUBDIRS += deushax
  3. SUBDIRS += monsterz
  4. SUBDIRS += mrpigeon
  5. SUBDIRS += orbital
  6. SUBDIRS += neercs
  7. DIST_SUBDIRS = $(SUBDIRS)
  8. EXTRA_DIST = bootstrap build-linux build-mingw build-mingw64 build-ps3 \
  9. build-nacl32 build-nacl64 build/lol-build
  10. AUTOMAKE_OPTIONS = dist-bzip2
  11. bench:
  12. cd test && $(MAKE) $(AM_MAKEFLAGS) $@
  13. .PHONY: bench
  14. dist: lolunit-$(LOLUNIT_VERSION).tar.gz
  15. dist: lolremez-$(LOLREMEZ_VERSION).tar.gz
  16. .PHONY: lolunit-$(LOLUNIT_VERSION).tar.gz
  17. lolunit-$(LOLUNIT_VERSION).tar.gz:
  18. rm -rf lolunit-$(LOLUNIT_VERSION)
  19. mkdir lolunit-$(LOLUNIT_VERSION)
  20. mkdir lolunit-$(LOLUNIT_VERSION)/lol
  21. cp $(top_srcdir)/src/lol/unit.h lolunit-$(LOLUNIT_VERSION)/lol
  22. tar cvzf lolunit-$(LOLUNIT_VERSION).tar.gz lolunit-$(LOLUNIT_VERSION)
  23. rm -rf lolunit-$(LOLUNIT_VERSION)
  24. .PHONY: lolremez-$(LOLREMEZ_VERSION).tar.gz
  25. lolremez-$(LOLREMEZ_VERSION).tar.gz:
  26. rm -rf lolremez-$(LOLREMEZ_VERSION)
  27. mkdir lolremez-$(LOLREMEZ_VERSION)
  28. mkdir lolremez-$(LOLREMEZ_VERSION)/lol
  29. mkdir lolremez-$(LOLREMEZ_VERSION)/lol/math
  30. cat $(top_srcdir)/test/math/remez.cpp | sed '/#if/,/^$$/d' > \
  31. lolremez-$(LOLREMEZ_VERSION)/remez.cpp
  32. cat $(top_srcdir)/src/real.cpp | sed 's@core.h@lol/math/real.h@' | sed '/#if/,/^$$/d' > \
  33. lolremez-$(LOLREMEZ_VERSION)/real.cpp
  34. cp $(top_srcdir)/test/math/NEWS.txt \
  35. $(top_srcdir)/test/math/lolremez.sln \
  36. $(top_srcdir)/test/math/remez.vcxproj \
  37. $(top_srcdir)/test/math/remez.vcxproj.filters \
  38. lolremez-$(LOLREMEZ_VERSION)/
  39. cp $(top_srcdir)/src/lol/math/real.h \
  40. $(top_srcdir)/src/lol/math/matrix.h \
  41. $(top_srcdir)/src/lol/math/remez.h \
  42. lolremez-$(LOLREMEZ_VERSION)/lol/math/
  43. printf 'remez: real.cpp remez.cpp\n' > lolremez-$(LOLREMEZ_VERSION)/Makefile
  44. printf '\t$$(CXX) -I. -O2 -g -ggdb $$^ -o $$@\n' >> lolremez-$(LOLREMEZ_VERSION)/Makefile
  45. printf 'clean:\n' >> lolremez-$(LOLREMEZ_VERSION)/Makefile
  46. printf '\trm -f remez\n' >> lolremez-$(LOLREMEZ_VERSION)/Makefile
  47. tar cvzf lolremez-$(LOLREMEZ_VERSION).tar.gz lolremez-$(LOLREMEZ_VERSION)
  48. rm -rf lolremez-$(LOLREMEZ_VERSION)