Updated `README.md` with instructions for building/using the kernel module.
[xeon-phi-kernel-module] / Makefile
index defbfcf..72e91f3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -104,3 +104,12 @@ kdev_install:
        $(INSTALL_f) Module.symvers $(DESTDIR)$(kmodinstalldir)/scif.symvers
        $(INSTALL_d) $(DESTDIR)$(kmodincludedir)
        $(INSTALL_f) include/scif.h $(DESTDIR)$(kmodincludedir)
        $(INSTALL_f) Module.symvers $(DESTDIR)$(kmodinstalldir)/scif.symvers
        $(INSTALL_d) $(DESTDIR)$(kmodincludedir)
        $(INSTALL_f) include/scif.h $(DESTDIR)$(kmodincludedir)
+
+clean:
+       @rm -f ./*/*.o ./*/.*.o ./*/*/*.o ./*/*/.*.o
+       @rm -f ./*/*.o.d ./*/.*.o.d ./*/*/.*.o.d
+       @rm -f ./*/*.o.cmd ./*/.*.o.cmd ./*/*/.*.o.cmd
+       @rm -f ./.mic*o.cmd
+       @rm -f ./modules.order ./Module.symvers
+       @rm -rf ./.tmp_versions
+       @rm -f ./mic.mod.* ./mic.o ./mic.ko