123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- bin_PROGRAMS = asmsh child
-
- libcheck_asmsh_a_SOURCES = mmap_parse.c asm_env.c compile.c logger.c \
- completion.c shell.c shell_cmds.c shell_sym.c \
- history.c
-
- asmsh_SOURCES = asmsh.c $(libcheck_asmsh_a_SOURCES)
- child_SOURCES = child.s
-
- asmsh_LDADD=child_bin.o
- asmsh_LDFLAGS=-g -O2
-
- AM_CFLAGS=-Wall
- AM_CCASFLAGS=-g -O0
- child_LDFLAGS=-nostdlib
-
- child$(EXEEXT): $(child_SOURCES:.s=.o)
- $(LD) -s -o $@ $^
-
- child_bin.o: child$(EXEEXT)
- $(LD) -r -b binary -o $@ $<
-
- SUBDIRS =
- if CHECK
- noinst_LIBRARIES = libcheck_asmsh.a
- libcheck_asmsh_a_LDDADD=child_bin.o
-
- if HAVE_GCOV
- libcheck_asmsh_a_CFLAGS = @CFLAGS@ -fprofile-arcs -ftest-coverage
-
- gcov: tests/test-suite.log
- $(GCOV) -j *.gcno
-
- TO_LOCAL_CLEAN=*.gcov *.gcda *.gcno
-
- if HAVE_LCOV
-
- LCOV_INFO=lcov.info
- LCOV_HTML=lcov_html
-
- TO_LOCAL_CLEAN += $(LCOV_INFO) $(LCOV_HTML)
-
- $(LCOV_INFO): gcov
- $(LCOV) --base-directory $(top_builddir) --capture --no-recursion --directory . --output-file $@
-
- $(LCOV_HTML): $(LCOV_INFO)
- genhtml $< --output-directory $@
-
- endif
-
- clean-local:
- -rm -rf $(TO_LOCAL_CLEAN)
-
- endif
-
- SUBDIRS += tests
-
- checks: check coverage
-
- coverage: $(LCOV_HTML)
-
- endif
|