A shell that runs x86_64 assembly
c
x86-64
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

Makefile.am 1.4KB

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