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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. bin_PROGRAMS = asmsh child
  2. libcheck_asmsh_a_SOURCES = mmap_parse.c asm_env.c breakpoints.c compile.c logger.c \
  3. completion.c history.c \
  4. shell.c shell_cmds.c shell_sym.c \
  5. shell_cmd_breakpoint.c
  6. asmsh_SOURCES = asmsh.c $(libcheck_asmsh_a_SOURCES)
  7. child_SOURCES = child.s
  8. asmsh_LDADD=child_bin.o
  9. asmsh_LDFLAGS=-g -O2
  10. AM_CFLAGS=-Wall -Werror
  11. AM_CCASFLAGS=-g -O0
  12. child_LDFLAGS=-nostdlib
  13. child$(EXEEXT): $(child_SOURCES:.s=.o)
  14. $(LD) -s -o $@ $^
  15. child_bin.o: child$(EXEEXT)
  16. $(LD) -r -b binary -o $@ $<
  17. ALL_CHECKS=
  18. LINT=
  19. SUBDIRS = . docs
  20. if CHECK
  21. noinst_LIBRARIES = libcheck_asmsh.a
  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