From: Mark Wooding Date: Wed, 6 May 2020 09:16:01 +0000 (+0100) Subject: vars.am: Don't build the test programs for installation. X-Git-Tag: 2.4.5~11 X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/commitdiff_plain/d49bdecf5f8d61fece826560a741c21e4f14bcd7 vars.am: Don't build the test programs for installation. 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. --- diff --git a/vars.am b/vars.am index b99cfcfe..115cb317 100644 --- 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): - $(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 - $(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)