summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/atomic_module.makefile
diff options
context:
space:
mode:
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)