]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pmdk/src/rpmem_common/Makefile
import ceph 16.2.7
[ceph.git] / ceph / src / pmdk / src / rpmem_common / Makefile
diff --git a/ceph/src/pmdk/src/rpmem_common/Makefile b/ceph/src/pmdk/src/rpmem_common/Makefile
new file mode 100644 (file)
index 0000000..006de39
--- /dev/null
@@ -0,0 +1,33 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright 2014-2016, Intel Corporation
+
+#
+# src/rpmem_common/Makefile -- Makefile for rpmem_common
+#
+
+TOP := $(dir $(lastword $(MAKEFILE_LIST)))../..
+HEADERS = $(wildcard *.h)
+
+include $(TOP)/src/common.inc
+
+ifneq ($(filter 1 2, $(CSTYLEON)),)
+TMP_HEADERS := $(addsuffix tmp, $(HEADERS))
+endif
+
+all: $(TMP_HEADERS)
+
+cstyle:
+       $(CSTYLE) *.[ch]
+
+%.htmp: %.h
+       $(call check-cstyle, $<, $@)
+
+clean:
+       $(RM) $(TMP_HEADERS)
+
+clobber: clean
+
+sparse:
+ifeq ($(BUILD_RPMEM),y)
+       $(sparse-c)
+endif