summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorkenistoj <kenistoj>2007-11-13 21:57:21 +0000
committerkenistoj <kenistoj>2007-11-13 21:57:21 +0000
commitdb3a383b3ba2efb0cea830a2407cdd1a73fc03c5 (patch)
tree93d622c85317f1ee722e27090911a41257337d5a /runtime
parent163a52d9b453bdbea0a4604b8c8e037639b49854 (diff)
downloadsystemtap-steved-db3a383b3ba2efb0cea830a2407cdd1a73fc03c5.tar.gz
systemtap-steved-db3a383b3ba2efb0cea830a2407cdd1a73fc03c5.tar.xz
systemtap-steved-db3a383b3ba2efb0cea830a2407cdd1a73fc03c5.zip
PR 5270
* main.cxx: Restored pre-10-08 version: moved uprobes build to buildrun.cxx. * buildrun.cxx: Reworked uprobes build so that the resulting Module.symvers can be used in building the stap-generated module. If user isn't root, call verify_uprobes_uptodate() rather than trying (and failing) to rebuild uprobes.ko. * buildrun.h: uprobes_enabled() and make_uprobes() are no longer extern. * runtime/uprobes/Makefile: Added uprobes.ko target for use by verify_uprobes_uptodate().
Diffstat (limited to 'runtime')
-rw-r--r--runtime/uprobes/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/uprobes/Makefile b/runtime/uprobes/Makefile
index 806f7c48..40af7aa2 100644
--- a/runtime/uprobes/Makefile
+++ b/runtime/uprobes/Makefile
@@ -1,10 +1,16 @@
obj-m := uprobes.o
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
+DEPENDENCIES := $(shell echo uprobes_arch.[ch] uprobes.[ch] uprobes_*.[ch])
+DEPENDENCIES += Makefile $(KDIR)/Module.symvers
default:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
+# This target is used with "make -q" to see whether a "real" build is needed.
+uprobes.ko: $(DEPENDENCIES)
+ @echo uprobes.ko is not a valid target. See Makefile.
+
clean:
rm -f *.mod.c *.ko *.o .*.cmd *~
rm -rf .tmp_versions