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.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. bin_PROGRAMS = asmsh child
  2. libcheck_asmsh_a_SOURCES = mmap_parse.c asm_env.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
  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. SUBDIRS =
  17. if CHECK
  18. noinst_LIBRARIES = libcheck_asmsh.a
  19. libcheck_asmsh_a_LDDADD=child_bin.o
  20. if HAVE_GCOV
  21. libcheck_asmsh_a_CFLAGS = @CFLAGS@ -fprofile-arcs -ftest-coverage
  22. gcov: tests/test-suite.log
  23. $(GCOV) -j *.gcno
  24. TO_LOCAL_CLEAN=*.gcov *.gcda *.gcno
  25. if HAVE_LCOV
  26. LCOV_INFO=lcov.info
  27. LCOV_HTML=lcov_html
  28. TO_LOCAL_CLEAN += $(LCOV_INFO) $(LCOV_HTML)
  29. $(LCOV_INFO): gcov
  30. $(LCOV) --base-directory $(top_builddir) --capture --no-recursion --directory . --output-file $@
  31. $(LCOV_HTML): $(LCOV_INFO)
  32. genhtml $< --output-directory $@
  33. endif
  34. clean-local:
  35. -rm -rf $(TO_LOCAL_CLEAN)
  36. endif
  37. SUBDIRS += tests
  38. checks: check coverage
  39. coverage: $(LCOV_HTML)
  40. endif