Does this work? The unittest fragments all have paths relative to test/unit, but $(srcdir) should actually be that directory when the test harness runs. $(top_srcdir)/test/unit should work, but $(srcdir) is less brittle.