diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-06-21 03:34:32 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-06-25 22:07:24 +0000 |
commit | df9729555394542064d1c9e9d1b67446bf36d3f3 (patch) | |
tree | a1a16468871fc3eb1a99560e7fd406492b0f4ceb | |
parent | f159a33754215eac82b26912bce5592294f9a989 (diff) | |
download | cmogstored-df9729555394542064d1c9e9d1b67446bf36d3f3.tar.gz |
Our tests over-link (to save developer time :P), so we must link in probes with our tests. Also, we must keep probes.h around for distclean (but not maintainerclean)
-rw-r--r-- | Makefile.am | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index a0c0989..918200c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2,6 +2,7 @@ ACLOCAL_AMFLAGS = -I m4 AM_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib AM_CFLAGS = $(WARN_CFLAGS) $(GCC_ATOMICS_CFLAGS) $(PTHREAD_CFLAGS) AM_LDFLAGS = $(LIBGNU_LIBDEPS) $(LIB_CLOCK_GETTIME) +DTRACE = @DTRACE@ SUBDIRS = lib # slow.mk is auto-generated by the maintainer (see GNUmakefile) @@ -147,7 +148,7 @@ $(PERL_TESTS:.perl=.log):: $(bin_PROGRAMS) $(test_tmpdir)/.stamp $(test_tmpdir)/.stamp: @mkdir -p $(test_tmpdir) && > $@ -test_COMMON = $(mog_src) $(RL_CGEN) check.h +test_COMMON = $(mog_src) $(RL_CGEN) check.h probes.d test_valid_path_1_SOURCES = test/valid-path-1.c $(test_COMMON) test_trywrite_1_SOURCES = test/trywrite-1.c $(test_COMMON) @@ -226,12 +227,13 @@ dist-hook: echo $(VERSION) > $(distdir)/.tarball-version if ENABLE_SYSTEMTAP -BUILT_SOURCES += probes.h probes.h: probes.d $(DTRACE) -C -h -s $< -o $@ probes.o: probes.d $(DTRACE) -C -G -s $< -o $@ +EXTRA_DIST += probes.h +BUILT_SOURCES += probes.h LDADD += probes.o endif |