Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

53 linhas
2.0 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 tools doc
  4. DIST_SUBDIRS = $(SUBDIRS) binaries
  5. EXTRA_DIST += bootstrap COPYING TODO
  6. AUTOMAKE_OPTIONS = dist-bzip2
  7. ACLOCAL_AMFLAGS = -I build/autotools/m4
  8. test: lolcheck
  9. check: lolcheck
  10. dist: lolunit-$(LOLUNIT_VERSION).tar.gz
  11. dist: lolremez-$(LOLREMEZ_VERSION).tar.gz
  12. .PHONY: lolunit-$(LOLUNIT_VERSION).tar.gz
  13. lolunit-$(LOLUNIT_VERSION).tar.gz:
  14. rm -rf lolunit-$(LOLUNIT_VERSION)
  15. mkdir lolunit-$(LOLUNIT_VERSION)
  16. mkdir lolunit-$(LOLUNIT_VERSION)/lol
  17. cp $(top_srcdir)/src/lol/unit.h lolunit-$(LOLUNIT_VERSION)/lol
  18. tar cvzf lolunit-$(LOLUNIT_VERSION).tar.gz lolunit-$(LOLUNIT_VERSION)
  19. rm -rf lolunit-$(LOLUNIT_VERSION)
  20. .PHONY: lolremez-$(LOLREMEZ_VERSION).tar.gz
  21. lolremez-$(LOLREMEZ_VERSION).tar.gz:
  22. rm -rf lolremez-$(LOLREMEZ_VERSION)
  23. mkdir lolremez-$(LOLREMEZ_VERSION)
  24. mkdir lolremez-$(LOLREMEZ_VERSION)/lol
  25. mkdir lolremez-$(LOLREMEZ_VERSION)/lol/math
  26. cat $(top_srcdir)/test/math/remez.cpp | sed '/#if/,/^$$/d' > \
  27. lolremez-$(LOLREMEZ_VERSION)/remez.cpp
  28. cat $(top_srcdir)/src/real.cpp | sed 's@core.h@lol/math/real.h@' | sed '/#if/,/^$$/d' > \
  29. lolremez-$(LOLREMEZ_VERSION)/real.cpp
  30. cp $(top_srcdir)/test/math/NEWS.txt \
  31. $(top_srcdir)/test/math/lolremez.sln \
  32. $(top_srcdir)/test/math/remez.vcxproj \
  33. $(top_srcdir)/test/math/remez.vcxproj.filters \
  34. lolremez-$(LOLREMEZ_VERSION)/
  35. cp $(top_srcdir)/src/lol/math/real.h \
  36. $(top_srcdir)/src/lol/math/vector.h \
  37. $(top_srcdir)/src/lol/math/remez.h \
  38. lolremez-$(LOLREMEZ_VERSION)/lol/math/
  39. printf 'remez: real.cpp remez.cpp\n' > lolremez-$(LOLREMEZ_VERSION)/Makefile
  40. printf '\t$$(CXX) -I. -O2 -g -ggdb $$^ -o $$@\n' >> lolremez-$(LOLREMEZ_VERSION)/Makefile
  41. printf 'clean:\n' >> lolremez-$(LOLREMEZ_VERSION)/Makefile
  42. printf '\trm -f remez\n' >> lolremez-$(LOLREMEZ_VERSION)/Makefile
  43. tar cvzf lolremez-$(LOLREMEZ_VERSION).tar.gz lolremez-$(LOLREMEZ_VERSION)
  44. rm -rf lolremez-$(LOLREMEZ_VERSION)