vars.am: Don't build the test programs for installation.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 6 May 2020 09:16:01 +0000 (10:16 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 6 May 2020 09:16:01 +0000 (10:16 +0100)
Most importantly, this makes them much easier to attach a debugger to,
because the actual executables are now where you expect, and you don't
have to write ridiculous runes involving `../libtool --mode=execute
...'.

Also, this makes the actual linking step somewhat faster.

vars.am

diff --git a/vars.am b/vars.am
index b99cfcf..115cb31 100644 (file)
--- a/vars.am
+++ b/vars.am
@@ -120,12 +120,14 @@ SUFFIXES          += .c .t$(EXEEXT) .to
 .c.to:
        $(AM_V_CC)$(COMPILE) -c -DTEST_RIG -DSRCDIR=\"$(srcdir)\" $< -o $@
 .to.t$(EXEEXT):
 .c.to:
        $(AM_V_CC)$(COMPILE) -c -DTEST_RIG -DSRCDIR=\"$(srcdir)\" $< -o $@
 .to.t$(EXEEXT):
-       $(AM_V_CCLD)$(LINK) $< $(TEST_LIBS) $(top_builddir)/libcatacomb.la \
+       $(AM_V_CCLD)$(LINK) -no-install $< \
+               $(TEST_LIBS) $(top_builddir)/libcatacomb.la \
                $(mLib_LIBS) $(CATACOMB_LIBS) $(LIBS)
 %.to: %.c %.lo
        $(AM_V_CC)$(COMPILE) -c -DTEST_RIG -DSRCDIR=\"$(srcdir)\" $< -o $@
 %.t$(EXEEXT): %.to $(TEST_LIBS) $(top_builddir)/libcatacomb.la
                $(mLib_LIBS) $(CATACOMB_LIBS) $(LIBS)
 %.to: %.c %.lo
        $(AM_V_CC)$(COMPILE) -c -DTEST_RIG -DSRCDIR=\"$(srcdir)\" $< -o $@
 %.t$(EXEEXT): %.to $(TEST_LIBS) $(top_builddir)/libcatacomb.la
-       $(AM_V_CCLD)$(LINK) $+ $(mLib_LIBS) $(CATACOMB_LIBS) $(LIBS)
+       $(AM_V_CCLD)$(LINK) -no-install $+ \
+               $(mLib_LIBS) $(CATACOMB_LIBS) $(LIBS)
 
 .PRECIOUS: %.to %.t$(EXEEXT)
 CLEANFILES             += *.to *.t$(EXEEXT)
 
 .PRECIOUS: %.to %.t$(EXEEXT)
 CLEANFILES             += *.to *.t$(EXEEXT)