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.

Makefile.am 1.9 KiB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Put "people" at the end because they're more likely to break builds.
  2. SUBDIRS = src tutorial test tools games people
  3. DIST_SUBDIRS = $(SUBDIRS) build binaries
  4. EXTRA_DIST = bootstrap TODO
  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/vector.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)