Page Menu
Home
ClusterLabs Projects
Search
Configure Global Search
Log In
Files
F4185664
Makefile
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
Makefile
View Options
###############################################################################
###############################################################################
##
## Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
## Copyright (C) 2004 Red Hat, Inc. All rights reserved.
##
## This copyrighted material is made available to anyone wishing to use,
## modify, copy, or redistribute it subject to the terms and conditions
## of the GNU General Public License v.2.
##
###############################################################################
###############################################################################
top_srcdir = ..
ifndef USING_KBUILD
include ${top_srcdir}/make/defines.mk
UNINSTALL=${top_srcdir}/scripts/uninstall.pl
endif
linux_orig = ${top_srcdir}/patches/linux-orig
linux_patched = ${top_srcdir}/patches/linux-patched
PATCH_TARGET = dm-csnap.patch
PWD := $(shell pwd)
obj-m := dm-csnap.o
csnap-objs := dm-csnap.c
EXTRA_CFLAGS += -I$(obj) -Idrivers/md
all:
${MAKE} -C ${KERNEL_BUILD} M=${PWD} modules USING_KBUILD=yes
install: all
install -d ${incdir}/linux
install dm-csnap.h ${incdir}/linux
install -d ${module_dir}/drivers/md
install dm-csnap.ko ${module_dir}/drivers/md
uninstall:
${UNINSTALL} dm-csnap.ko ${module_dir}/drivers/md
${UNINSTALL} dm-csnap.h ${incdir}/linux
clean:
rm -rf linux *.mod.c .dm-csnap.ko.cmd \
.tmp_versions *o .*.o.cmd *~
clean:
patches: pre add post
pre:
@if [ ! -d ${linux_orig} ] ; then \
echo "No linux source directory (${linux_orig})" ; \
exit 1; \
fi
mkdir -p ${linux_patched}
rsync -a --delete ${linux_orig}/ ${linux_patched}/
post:
( cd ${top_srcdir}/patches ; diff -urN linux-orig linux-patched > ${PATCH_TARGET} ; exit 0 )
add:
cp dm-csnap.c ${linux_patched}/drivers/block/
cp dm-csnap.h ${linux_patched}/include/linux/
File Metadata
Details
Attached
Mime Type
text/x-makefile
Expires
Thu, Jun 5, 11:11 PM (4 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1864615
Default Alt Text
Makefile (1 KB)
Attached To
Mode
rF Fence Agents
Attached
Detach File
Event Timeline
Log In to Comment