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

regen.sh 797B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!/bin/bash
  2. cd $(dirname "$0")
  3. echo "Generating $(pwd)/Makefile.am"
  4. progs="$(echo *.c | sed -e 's/\.c / /g' -e 's/\.c$//')"
  5. cat << __EOF__ > Makefile.am
  6. TESTS = $progs
  7. check_PROGRAMS = $progs
  8. noinst_HEADERS = asmsh_check.h
  9. EXTRA_DIST = samples
  10. SUBDIRS = samples
  11. TESTLIB_NAME=libcheck_asmsh.a
  12. TESTLIB=\$(top_builddir)/\$(TESTLIB_NAME)
  13. CHILD_NAME=child
  14. CHILD=\$(top_builddir)/\$(CHILD_NAME)
  15. BUILT_SOURCES = \$(CHILD)
  16. clean-local:
  17. -rm -rf *.gcov *.gcda *.gcno
  18. \$(CHILD):
  19. make -C \$(top_builddir) \$(CHILD_NAME)
  20. \$(TESTLIB):
  21. make -C \$(top_builddir) \$(TESTLIB_NAME)
  22. .PHONY: \$(TESTLIB) \$(CHILD)
  23. __EOF__
  24. for p in $progs
  25. do
  26. cat << __EOF__ >> Makefile.am
  27. ${p}_SOURCES = ${p}.c
  28. ${p}_CFLAGS = @CHECK_CFLAGS@ -fprofile-arcs -ftest-coverage
  29. ${p}_LDADD = \$(TESTLIB) @CHECK_LIBS@
  30. __EOF__
  31. done