summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/atomic_module.makefile
diff options
context:
space:
mode:
authorDavid Smith <dsmith@redhat.com>2010-03-16 15:47:36 -0500
committerDavid Smith <dsmith@redhat.com>2010-03-16 15:47:36 -0500
commitd7c88bfad6ef6188fcbd888bd1235486aa31a5e6 (patch)
treeb5057a0953169e94f5441a99b660f856657762a1 /testsuite/systemtap.base/atomic_module.makefile
parent1fe5254260d0c3b6438553cf5f4af645820647fe (diff)
downloadsystemtap-steved-d7c88bfad6ef6188fcbd888bd1235486aa31a5e6.tar.gz
systemtap-steved-d7c88bfad6ef6188fcbd888bd1235486aa31a5e6.tar.xz
systemtap-steved-d7c88bfad6ef6188fcbd888bd1235486aa31a5e6.zip
Fixed PR 11372 by removing (most) embedded-C from proc_mem.stp.
* tapset/proc_mem.stp: Tried to remove as much embedded-C as possible. * tapset/atomic.stp: New file. * testsuite/buildok/atomic.stp: New file. * testsuite/systemtap.base/atomic.exp: Ditto. * testsuite/systemtap.base/atomic_module.c: Ditto. * testsuite/systemtap.base/atomic_module.makefile: Ditto.
Diffstat (limited to 'testsuite/systemtap.base/atomic_module.makefile')
-rw-r--r--testsuite/systemtap.base/atomic_module.makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/systemtap.base/atomic_module.makefile b/testsuite/systemtap.base/atomic_module.makefile
new file mode 100644
index 00000000..14d2b8e2
--- /dev/null
+++ b/testsuite/systemtap.base/atomic_module.makefile
@@ -0,0 +1,13 @@
+obj-m := atomic_module.o
+KDIR := /lib/modules/$(shell uname -r)/build
+PWD := $(shell pwd)
+
+CLEAN_FILES := $(shell echo *.mod.c *.ko *.o .*.cmd *~ *.sgn)
+CLEAN_FILES += Module.markers modules.order Module.symvers
+CLEAN_DIRS := .tmp_versions
+
+default:
+ $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
+clean:
+ rm -f $(CLEAN_FILES)
+ rm -rf $(CLEAN_DIRS)