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 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. bin_PROGRAMS = asmsh child
  2. noinst_LIBRARIES= libcheck_asmsh.a
  3. libcheck_asmsh_a_SOURCES = mmap_parse.c asm_env.c breakpoints.c compile.c logger.c \
  4. completion.c history.c \
  5. shell.c shell_cmds.c shell_sym.c \
  6. shell_cmd_breakpoint.c
  7. asmsh_SOURCES = asmsh.c $(libcheck_asmsh_a_SOURCES)
  8. child_SOURCES = child.s
  9. asmsh_LDADD=child_bin.o
  10. asmsh_LDFLAGS=-g -O2
  11. AM_CFLAGS=-Wall -Werror
  12. AM_CCASFLAGS=-g -O0
  13. child_LDFLAGS=-nostdlib
  14. child$(EXEEXT): $(child_SOURCES:.s=.o)
  15. $(LD) -s -o $@ $^
  16. child_bin.o: child$(EXEEXT)
  17. $(LD) -r -b binary -o $@ $<
  18. ALL_CHECKS=
  19. LINT=
  20. SUBDIRS = . docs
  21. if CHECK
  22. libcheck_asmsh_a_LDDADD=child_bin.o
  23. SUBDIRS += tests
  24. ALL_CHECKS += check
  25. CHECK_STAMP=tests/test-suite.log
  26. $(CHECK_STAMP):
  27. $(MAKE) check
  28. if HAVE_GCOV
  29. libcheck_asmsh_a_CFLAGS = @CFLAGS@ -fprofile-arcs -ftest-coverage
  30. TO_LOCAL_CLEAN=*.gcda *.gcno
  31. if HAVE_LCOV
  32. LCOV_INFO=lcov.info
  33. LCOV_HTML=lcov_html
  34. TO_LOCAL_CLEAN += $(LCOV_INFO) $(LCOV_HTML)
  35. $(LCOV_INFO): $(CHECK_STAMP)
  36. $(LCOV) --base-directory $(top_builddir) --capture --no-recursion --directory . --output-file $@
  37. $(LCOV_HTML): $(LCOV_INFO)
  38. genhtml $< --output-directory $@
  39. endif
  40. clean-local:
  41. -rm -rf $(TO_LOCAL_CLEAN)
  42. endif
  43. ALL_CHECKS += coverage
  44. coverage: $(LCOV_HTML)
  45. endif
  46. if HAVE_CPPCHECK
  47. LINT += cppcheck
  48. cppcheck:
  49. $(CPPCHECK) --enable=all --inline-suppr --check-config --suppress=missingIncludeSystem -q . -I .
  50. endif
  51. checks: $(ALL_CHECKS)
  52. lint: $(LINT)
  53. doxygen:
  54. $(MAKE) -C docs