You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

51 regels
1.9 KiB

  1. include $(top_srcdir)/build/autotools/common.am
  2. # Put "people" at the end because they're more likely to break builds.
  3. SUBDIRS = build src tutorial test tools games people
  4. DIST_SUBDIRS = $(SUBDIRS) binaries
  5. EXTRA_DIST = bootstrap TODO
  6. AUTOMAKE_OPTIONS = dist-bzip2
  7. check: lolcheck
  8. dist: lolunit-$(LOLUNIT_VERSION).tar.gz
  9. dist: lolremez-$(LOLREMEZ_VERSION).tar.gz
  10. .PHONY: lolunit-$(LOLUNIT_VERSION).tar.gz
  11. lolunit-$(LOLUNIT_VERSION).tar.gz:
  12. rm -rf lolunit-$(LOLUNIT_VERSION)
  13. mkdir lolunit-$(LOLUNIT_VERSION)
  14. mkdir lolunit-$(LOLUNIT_VERSION)/lol
  15. cp $(top_srcdir)/src/lol/unit.h lolunit-$(LOLUNIT_VERSION)/lol
  16. tar cvzf lolunit-$(LOLUNIT_VERSION).tar.gz lolunit-$(LOLUNIT_VERSION)
  17. rm -rf lolunit-$(LOLUNIT_VERSION)
  18. .PHONY: lolremez-$(LOLREMEZ_VERSION).tar.gz
  19. lolremez-$(LOLREMEZ_VERSION).tar.gz:
  20. rm -rf lolremez-$(LOLREMEZ_VERSION)
  21. mkdir lolremez-$(LOLREMEZ_VERSION)
  22. mkdir lolremez-$(LOLREMEZ_VERSION)/lol
  23. mkdir lolremez-$(LOLREMEZ_VERSION)/lol/math
  24. cat $(top_srcdir)/test/math/remez.cpp | sed '/#if/,/^$$/d' > \
  25. lolremez-$(LOLREMEZ_VERSION)/remez.cpp
  26. cat $(top_srcdir)/src/real.cpp | sed 's@core.h@lol/math/real.h@' | sed '/#if/,/^$$/d' > \
  27. lolremez-$(LOLREMEZ_VERSION)/real.cpp
  28. cp $(top_srcdir)/test/math/NEWS.txt \
  29. $(top_srcdir)/test/math/lolremez.sln \
  30. $(top_srcdir)/test/math/remez.vcxproj \
  31. $(top_srcdir)/test/math/remez.vcxproj.filters \
  32. lolremez-$(LOLREMEZ_VERSION)/
  33. cp $(top_srcdir)/src/lol/math/real.h \
  34. $(top_srcdir)/src/lol/math/vector.h \
  35. $(top_srcdir)/src/lol/math/remez.h \
  36. lolremez-$(LOLREMEZ_VERSION)/lol/math/
  37. printf 'remez: real.cpp remez.cpp\n' > lolremez-$(LOLREMEZ_VERSION)/Makefile
  38. printf '\t$$(CXX) -I. -O2 -g -ggdb $$^ -o $$@\n' >> lolremez-$(LOLREMEZ_VERSION)/Makefile
  39. printf 'clean:\n' >> lolremez-$(LOLREMEZ_VERSION)/Makefile
  40. printf '\trm -f remez\n' >> lolremez-$(LOLREMEZ_VERSION)/Makefile
  41. tar cvzf lolremez-$(LOLREMEZ_VERSION).tar.gz lolremez-$(LOLREMEZ_VERSION)
  42. rm -rf lolremez-$(LOLREMEZ_VERSION)