您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

Makefile.am 1.9 KiB

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