A shell that runs x86_64 assembly
c
x86-64
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.

Makefile.am 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. SUBDIRS = . src docs
  2. EXTRA_DIST = regen.sh
  3. TO_LOCAL_CLEAN=
  4. ALL_CHECKS=
  5. LINT=
  6. if CHECK
  7. SUBDIRS += tests
  8. ALL_CHECKS += check
  9. CHECK_STAMP=tests/test-suite.log
  10. $(CHECK_STAMP):
  11. $(MAKE) check
  12. if HAVE_GCOV
  13. if HAVE_LCOV
  14. LCOV_INFO=lcov.info
  15. LCOV_HTML=lcov_html
  16. TO_LOCAL_CLEAN += $(LCOV_INFO) $(LCOV_HTML)
  17. $(LCOV_INFO): $(CHECK_STAMP)
  18. $(LCOV) --base-directory $(top_builddir)/src/ --capture --directory $(top_builddir)/src/ --output-file $@
  19. $(LCOV_HTML): $(LCOV_INFO)
  20. genhtml $< --output-directory $@
  21. endif # HAVE_LCOV
  22. endif # HAVE_GCOV
  23. ALL_CHECKS += coverage
  24. coverage: $(LCOV_HTML)
  25. endif # CHECK
  26. if HAVE_CPPCHECK
  27. LINT += cppcheck
  28. cppcheck:
  29. $(CPPCHECK) --enable=all --inline-suppr --check-config --suppress=missingIncludeSystem -q $(top_builddir)/src -I $(top_builddir)/src/
  30. endif # HAVE_CPPCHECK
  31. checks: $(ALL_CHECKS)
  32. lint: $(LINT)
  33. doxygen:
  34. $(MAKE) -C docs
  35. DEB_BUILD=$(PACKAGE)-$(VERSION)
  36. DEB_PREF=$(PACKAGE)_$(VERSION)-1_amd64
  37. DEB_PKG=$(DEB_PREF).deb
  38. DEB_FOLDER=$(DEB_BUILD)/debian
  39. RPM_BUILD=rpm_build
  40. PKGV=$(PACKAGE)-$(VERSION).tar.gz
  41. TO_LOCAL_CLEAN+=$(PACKAGE)_$(VERSION)-1.debian.tar.xz $(PACKAGE)_$(VERSION)-1.dsc\
  42. $(PACKAGE)_$(VERSION).orig.tar.gz \
  43. $(PACKAGE)-dbgsym_$(VERSION)-1_amd64.deb \
  44. $(DEB_PREF).buildinfo \
  45. $(DEB_PREF).changes \
  46. $(DEB_PREF).deb \
  47. $(PACKAGE)_$(VERSION).tar.gz \
  48. $(PACKAGE)-$(VERSION) \
  49. $(RPM_BUILD) \
  50. *.rpm
  51. $(PKGV): dist
  52. $(DEB_BUILD): $(PACKAGE)-$(VERSION).tar.gz
  53. tar -xf $<
  54. $(DEB_FOLDER): deb_folder $(DEB_BUILD)
  55. cp -R $< $@
  56. $(DEB_PKG): $(PKGV) $(DEB_BUILD) $(DEB_FOLDER)
  57. cd $(DEB_BUILD);\
  58. dh_make -a -y -s -f ../$(PACKAGE)-$(VERSION).tar.gz;\
  59. rm debian/*.ex debian/*.EX debian/README.Debian debian/README.source ;\
  60. dpkg-buildpackage $(shell [ -z ${DEB_SIGN_KEYID} ] && echo "-us -uc" || echo "--sign-key='${DEB_SIGN_KEYID}'");
  61. deb: $(DEB_PKG)
  62. rpm: $(DEB_PKG)
  63. mkdir -p $(RPM_BUILD);\
  64. cd $(RPM_BUILD); \
  65. fakeroot alien -k --to-rpm ../$(DEB_PKG);\
  66. mv *.rpm ../;
  67. release: deb rpm
  68. clean-local:
  69. -rm -rf $(TO_LOCAL_CLEAN)