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.

regen.sh 410B

123456789101112131415161718192021
  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 = ttail_check.h
  9. EXTRA_DIST = samples
  10. __EOF__
  11. for p in $progs
  12. do
  13. echo "
  14. ${p}_SOURCES = ${p}.c
  15. ${p}_CFLAGS = @CHECK_CFLAGS@
  16. ${p}_LDADD = \$(top_builddir)/libasmsh.a @CHECK_LIBS@
  17. "
  18. done >> Makefile.am