diff options
author | Mikael Ronstrom <mikael@mysql.com> | 2009-02-21 21:32:46 +0100 |
---|---|---|
committer | Mikael Ronstrom <mikael@mysql.com> | 2009-02-21 21:32:46 +0100 |
commit | 6e5ddfadd5d8ede26db097b21670740dd823cbb0 (patch) | |
tree | f318172306c3584d206dc4ea5959de42af6e2ade | |
parent | e61846bf7535a41d732f01dd2d4fd8480ac799d0 (diff) | |
download | mariadb-git-6e5ddfadd5d8ede26db097b21670740dd823cbb0.tar.gz |
Yet another attempt of getting DTrace builds done properly
-rw-r--r-- | mysys/Makefile.am | 8 | ||||
-rw-r--r-- | sql/Makefile.am | 4 | ||||
-rw-r--r-- | storage/archive/Makefile.am | 6 | ||||
-rw-r--r-- | storage/blackhole/Makefile.am | 6 | ||||
-rw-r--r-- | storage/csv/Makefile.am | 13 | ||||
-rw-r--r-- | storage/example/Makefile.am | 6 | ||||
-rw-r--r-- | storage/federated/Makefile.am | 6 | ||||
-rw-r--r-- | storage/myisam/Makefile.am | 6 | ||||
-rw-r--r-- | storage/myisammrg/Makefile.am | 6 |
9 files changed, 31 insertions, 30 deletions
diff --git a/mysys/Makefile.am b/mysys/Makefile.am index afe558a5c06..8519dd61bb0 100644 --- a/mysys/Makefile.am +++ b/mysys/Makefile.am @@ -135,14 +135,14 @@ DTRACEPROVIDER = probes_mysql.d dtrace_files: echo $(DTRACEFILES) > $@ -dtrace_providers: dtrace_sources - echo $(SQL_DTRACEPROVIDER) > $@ -dtrace_sources: +dtrace_providers: probes_mysql.d + echo $(DTRACEPROVIDER) > $@ +probes_mysql.d: -$(RM) -f probes_mysql.d $(CP) $(top_srcdir)/include/probes_mysql.d probes_mysql.d echo timestamp > dtrace_sources -probes_mysql.o: $(DTRACEPROVIDER) $(DTRACEFILES) dtrace_sources +probes_mysql.o: $(DTRACEPROVIDER) $(DTRACEFILES) $(DTRACE) $(DTRACEFLAGS) -G -s $(DTRACEPROVIDER) $(DTRACEFILES) -o $@ endif diff --git a/sql/Makefile.am b/sql/Makefile.am index e50420cc524..89776370bde 100644 --- a/sql/Makefile.am +++ b/sql/Makefile.am @@ -217,13 +217,13 @@ dtrace_files: echo $(DTRACEFILES) > $@ dtrace_providers: dtrace_sources echo $(DTRACEPROVIDER) > $@ -dtrace_sources: +probes_mysql.d: -$(RM) -f probes_mysql.d $(CP) $(top_srcdir)/include/probes_mysql.d probes_mysql.d DTRACEDIRS = . ../mysys $(patsubst %,$(top_builddir)/storage/%,@mysql_se_dirs@) -probes_all.o: probes_mysql.d $(DTRACEFILES) dtrace_sources +probes_all.o: probes_mysql.d $(DTRACEFILES) providers=`(for i in $(DTRACEDIRS); do cat $$i/dtrace_providers 2>/dev/null; done) | tr " " "\n" | sort | uniq | sed -e '/^$$/d' -e 's/^/-s /'`; \ objects=`for i in $(DTRACEDIRS); do f=\`cat $$i/dtrace_files 2>/dev/null\`; for j in $$f; do test -f $$i/$$j && echo "$$i/$$j "; done; done`; \ $(DTRACE) $(DTRACEFLAGS) -G $$providers $$objects -o $@ diff --git a/storage/archive/Makefile.am b/storage/archive/Makefile.am index ac3dd995637..2dc4b18e729 100644 --- a/storage/archive/Makefile.am +++ b/storage/archive/Makefile.am @@ -76,14 +76,14 @@ DTRACEPROVIDER = probes_mysql.d dtrace_files: echo $(DTRACEFILES) > $@ -dtrace_providers: dtrace_sources +dtrace_providers: probes_mysql.d echo $(DTRACEPROVIDER) > $@ -dtrace_sources: +probes_mysql.d: -$(RM) -f probes_mysql.d $(CP) $(top_srcdir)/include/probes_mysql.d probes_mysql.d echo timestamp > dtrace_sources -probes_mysql.o: $(DTRACEPROVIDER) $(DTRACEFILES) dtrace_sources +probes_mysql.o: $(DTRACEPROVIDER) $(DTRACEFILES) $(DTRACE) $(DTRACEFLAGS) -G -s $(DTRACEPROVIDER) $(DTRACEFILES) -o $@ endif diff --git a/storage/blackhole/Makefile.am b/storage/blackhole/Makefile.am index b417c900f11..7ebd8a92e19 100644 --- a/storage/blackhole/Makefile.am +++ b/storage/blackhole/Makefile.am @@ -58,14 +58,14 @@ DTRACEPROVIDER = probes_mysql.d dtrace_files: echo $(DTRACEFILES) > $@ -dtrace_providers: dtrace_sources +dtrace_providers: probes_mysql.d echo $(DTRACEPROVIDER) > $@ -dtrace_sources: +probes_mysql.d: -$(RM) -f probes_mysql.d $(CP) $(top_srcdir)/include/probes_mysql.d probes_mysql.d echo timestamp > dtrace_sources -probes_mysql.o: $(DTRACEPROVIDER) $(DTRACEFILES) dtrace_sources +probes_mysql.o: $(DTRACEPROVIDER) $(DTRACEFILES) $(DTRACE) $(DTRACEFLAGS) -G -s $(DTRACEPROVIDER) $(DTRACEFILES) -o $@ endif diff --git a/storage/csv/Makefile.am b/storage/csv/Makefile.am index 41111da4c6f..6ce5731092a 100644 --- a/storage/csv/Makefile.am +++ b/storage/csv/Makefile.am @@ -48,16 +48,17 @@ libcsv_a_DEPENDENCIES = probes_mysql.o dtrace_files dtrace_providers CLEANFILES = probes_mysql.o dtrace_files dtrace_providers DTRACEFILES = libcsv_a-ha_tina.o DTRACEPROVIDER = probes_mysql.d -dtrace_sources: - -$(RM) -f probes_mysql.d - $(CP) $(top_srcdir)/include/probes_mysql.d probes_mysql.d - echo timestamp > dtrace_sources dtrace_files: echo $(DTRACEFILES) > $@ -dtrace_providers: dtrace_sources +dtrace_providers: probes_mysql.d echo $(DTRACEPROVIDER) > $@ -probes_mysql.o: $(DTRACEPROVIDER) $(DTRACEFILES) dtrace_sources +probes_mysql.d: + -$(RM) -f probes_mysql.d + $(CP) $(top_srcdir)/include/probes_mysql.d probes_mysql.d + echo timestamp > dtrace_sources + +probes_mysql.o: $(DTRACEPROVIDER) $(DTRACEFILES) $(DTRACE) $(DTRACEFLAGS) -G -s $(DTRACEPROVIDER) $(DTRACEFILES) -o $@ endif diff --git a/storage/example/Makefile.am b/storage/example/Makefile.am index 6361589ef1c..996e9e77db7 100644 --- a/storage/example/Makefile.am +++ b/storage/example/Makefile.am @@ -59,14 +59,14 @@ DTRACEPROVIDER = probes_mysql.d dtrace_files: echo $(DTRACEFILES) > $@ -dtrace_providers: dtrace_sources +dtrace_providers: probes_mysql.d echo $(DTRACEPROVIDER) > $@ -dtrace_sources: +probes_mysql.d: -$(RM) -f probes_mysql.d $(CP) $(top_srcdir)/include/probes_mysql.d probes_mysql.d echo timestamp > dtrace_sources -probes_mysql.o: $(DTRACEPROVIDER) $(DTRACEFILES) dtrace_sources +probes_mysql.o: $(DTRACEPROVIDER) $(DTRACEFILES) $(DTRACE) $(DTRACEFLAGS) -G -s $(DTRACEPROVIDER) $(DTRACEFILES) -o $@ endif diff --git a/storage/federated/Makefile.am b/storage/federated/Makefile.am index daf6070533b..4610a33299d 100644 --- a/storage/federated/Makefile.am +++ b/storage/federated/Makefile.am @@ -58,14 +58,14 @@ DTRACEPROVIDER = probes_mysql.d dtrace_files: echo $(DTRACEFILES) > $@ -dtrace_providers: dtrace_sources +dtrace_providers: probes_mysql.d echo $(DTRACEPROVIDER) > $@ -dtrace_sources: +probes_mysql.d: -$(RM) -f probes_mysql.d $(CP) $(top_srcdir)/include/probes_mysql.d probes_mysql.d echo timestamp > dtrace_sources -probes_mysql.o: $(DTRACEPROVIDER) $(DTRACEFILES) dtrace_sources +probes_mysql.o: $(DTRACEPROVIDER) $(DTRACEFILES) $(DTRACE) $(DTRACEFLAGS) -G -s $(DTRACEPROVIDER) $(DTRACEFILES) -o $@ endif diff --git a/storage/myisam/Makefile.am b/storage/myisam/Makefile.am index c7593cb7fb3..110692301b7 100644 --- a/storage/myisam/Makefile.am +++ b/storage/myisam/Makefile.am @@ -159,14 +159,14 @@ DTRACEPROVIDER = probes_mysql.d dtrace_files: echo $(DTRACEFILES) > $@ -dtrace_providers: dtrace_sources +dtrace_providers: probes_mysql.d echo $(DTRACEPROVIDER) > $@ -dtrace_sources: +probes_mysql.d: -$(RM) -f probes_mysql.d $(CP) $(top_srcdir)/include/probes_mysql.d probes_mysql.d echo timestamp > dtrace_sources -probes_mysql.o: $(DTRACEPROVIDER) $(DTRACEFILES) dtrace_sources +probes_mysql.o: $(DTRACEPROVIDER) $(DTRACEFILES) $(DTRACE) $(DTRACEFLAGS) -G -s $(DTRACEPROVIDER) $(DTRACEFILES) -o $@ endif diff --git a/storage/myisammrg/Makefile.am b/storage/myisammrg/Makefile.am index 547f50c1d49..0149cc7ee9b 100644 --- a/storage/myisammrg/Makefile.am +++ b/storage/myisammrg/Makefile.am @@ -49,14 +49,14 @@ DTRACEPROVIDER = probes_mysql.d dtrace_files: echo $(DTRACEFILES) > $@ -dtrace_providers: dtrace_sources +dtrace_providers: probes_mysql.d echo $(DTRACEPROVIDER) > $@ -dtrace_sources: +probes_mysql.d: -$(RM) -f probes_mysql.d $(CP) $(top_srcdir)/include/probes_mysql.d probes_mysql.d echo timestamp > dtrace_sources -probes_mysql.o: $(DTRACEPROVIDER) $(DTRACEFILES) dtrace_sources +probes_mysql.o: $(DTRACEPROVIDER) $(DTRACEFILES) $(DTRACE) $(DTRACEFLAGS) -G -s $(DTRACEPROVIDER) $(DTRACEFILES) -o $@ endif |