Skip to contentSkip to conversation

cluster ./Makefile ./configure ccs/Makefile cc ...

Cluster-devel [email protected] 1 participant 1 message Apr 30, 2007 Kbuild

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: fabbione at sourceware.org 2007-04-30 12:22:23

Modified files:

	.              : Makefile configure 
	ccs            : Makefile 
	ccs/ccs_test   : Makefile 
	ccs/ccs_tool   : Makefile 
	ccs/daemon     : Makefile 
	ccs/lib        : Makefile 
	ccs/man        : Makefile 
	cman           : Makefile 

cman/cman_tool : Makefile
cman/daemon : Makefile
cman/init.d : Makefile
cman/lib : Makefile
cman/man : Makefile
cman/qdisk : Makefile
cman/tests : Makefile
dlm/lib : Makefile
fence : Makefile
fence/agents : Makefile
fence/agents/apc: Makefile fence/agents/bladecenter: Makefile fence/agents/brocade: Makefile fence/agents/bullpap: Makefile fence/agents/drac: Makefile fence/agents/egenera: Makefile fence/agents/ilo: Makefile fence/agents/ipmilan: Makefile fence/agents/manual: Makefile fence/agents/mcdata: Makefile fence/agents/rps10: Makefile fence/agents/rsa: Makefile fence/agents/rsb: Makefile fence/agents/sanbox2: Makefile fence/agents/scsi: Makefile fence/agents/vixel: Makefile fence/agents/wti: Makefile fence/agents/xvm: Makefile vm_states.c fence/fence_node: Makefile fence/fence_tool: Makefile
fence/fenced : Makefile
fence/man : Makefile
gfs : Makefile
gfs/gfs_debug : Makefile
gfs/gfs_edit : Makefile
gfs/gfs_fsck : Makefile
gfs/gfs_grow : Makefile
gfs/gfs_jadd : Makefile
gfs/gfs_mkfs : Makefile
gfs/gfs_quota : Makefile layout.c
gfs/gfs_tool : Makefile
gfs/init.d : Makefile
gfs/libgfs : Makefile
gfs/man : Makefile
gfs-kernel/src/gfs: Makefile
gfs2 : Makefile
gfs2/convert : Makefile
gfs2/edit : Makefile
gfs2/fsck : Makefile
gfs2/init.d : Makefile
gfs2/libgfs2 : Makefile
gfs2/man : Makefile
gfs2/mkfs : Makefile
gfs2/mount : Makefile
gfs2/quota : Makefile
gfs2/tool : Makefile
gnbd : Makefile
gnbd/client : Makefile
gnbd/man : Makefile
gnbd/server : Makefile
gnbd/tools : Makefile
gnbd/tools/fence_gnbd: Makefile gnbd/tools/gnbd_export: Makefile gnbd_export.c gnbd/tools/gnbd_import: Makefile gnbd-kernel/src: Makefile
group : Makefile
group/daemon : Makefile
group/dlm_controld: Makefile group/gfs_controld: Makefile
group/lib : Makefile libgroup.c
group/tool : Makefile
rgmanager : Makefile
rgmanager/init.d: Makefile rgmanager/man : Makefile rgmanager/src : Makefile rgmanager/src/clulib: Makefile clulog.c rgmanager/src/daemons: Makefile rgmanager/src/resources: Makefile rgmanager/src/utils: Makefile
Added files:

	config         : copyright.cf 
	gnbd/utils     : Makefile 
	make           : defines.mk.input release.mk.input 
	scripts        : define2var uninstall.pl 
Removed files:
	ccs            : configure 
	ccs/config     : copyright.cf 
	ccs/make       : ccs.spec.in defines.mk.input release.mk.input 
	ccs/scripts    : uninstall.pl 
	clumon         : configure 
	clumon/make    : clumon.spec.in defines.mk.input 

release.mk.input version.input
clumon/scripts : build_srpm.pl uninstall.pl
cman : configure
cman/config : copyright.cf
cman/make : cman.spec.in defines.mk.input flags.mk
release.mk.input
cman/scripts : cman.init uninstall.pl
cmirror : configure
cmirror/make : defines.mk.input release.mk.input
cmirror/scripts: uninstall.pl
csnap : configure
csnap/config : copyright.cf
csnap/make : defines.mk.input release.mk.input
csnap/scripts : uninstall.pl
csnap-kernel : configure
csnap-kernel/make: defines.mk.input release.mk.input csnap-kernel/scripts: uninstall.pl
dlm : Makefile configure
dlm/config : copyright.cf
dlm/make : defines.mk.input dlm.spec.in flags.mk
release.mk.input
dlm/scripts : uninstall.pl
fence : configure
fence/agents/xvm: Makefile.tmp
fence/config : copyright.cf
fence/make : defines.mk.input fence.spec.in release.mk.input
fence/scripts : define2var uninstall.pl
gfs : configure
gfs/config : copyright.cf
gfs/make : defines.mk.input flags.mk gfs.spec.in
release.mk.input
gfs/scripts : gfs_safe.pl uninstall.pl
gfs-kernel : Makefile configure
gfs-kernel/make: defines.mk.input gfs-kernel.spec.in
release.mk.input
gfs-kernel/scripts: uninstall.pl gfs-kernel/src : Makefile
gfs2 : configure
gfs2/config : copyright.cf
gfs2/make : defines.mk.input flags.mk gfs2.spec.in
release.mk.input
gfs2/scripts : uninstall.pl
gnbd : configure
gnbd/config : copyright.cf
gnbd/make : defines.mk.input release.mk.input
gnbd/scripts : find_executable linuxver uninstall.pl
gnbd-kernel : Makefile configure
gnbd-kernel/make: defines.mk.input gnbd-kernel.spec.in
release.mk.input
gnbd-kernel/scripts: uninstall.pl
group : configure
group/make : defines.mk.input release.mk.input
group/scripts : uninstall.pl
rgmanager : configure
rgmanager/make : defines.mk.input release.mk.input
rgmanager.spec.in
rgmanager/scripts: uninstall.pl
scripts : build_srpms.pl latest_tag.pl

Log message:
Commit new build system as proposed and discussed on cluster-devel mailing list:

https://www.redhat.com/archives/cluster-devel/2007-April/msg00139.html

and following thread with acknoledge from other developers on IRC.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/Makefile.diff?cvsroot=cluster&r1=1.25&r2=1.26
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/configure.diff?cvsroot=cluster&r1=1.21&r2=1.22
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/ccs/Makefile.diff?cvsroot=cluster&r1=1.10&r2=1.11
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/ccs/configure.diff?cvsroot=cluster&r1=1.6&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/ccs/ccs_test/Makefile.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/ccs/ccs_tool/Makefile.diff?cvsroot=cluster&r1=1.8&r2=1.9
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/ccs/config/copyright.cf.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/ccs/daemon/Makefile.diff?cvsroot=cluster&r1=1.9&r2=1.10
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/ccs/lib/Makefile.diff?cvsroot=cluster&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/ccs/make/ccs.spec.in.diff?cvsroot=cluster&r1=1.2&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/ccs/make/defines.mk.input.diff?cvsroot=cluster&r1=1.4&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/ccs/make/release.mk.input.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/ccs/man/Makefile.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/ccs/scripts/uninstall.pl.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/clumon/configure.diff?cvsroot=cluster&r1=1.2&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/clumon/make/clumon.spec.in.diff?cvsroot=cluster&r1=1.6&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/clumon/make/defines.mk.input.diff?cvsroot=cluster&r1=1.3&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/clumon/make/release.mk.input.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/clumon/make/version.input.diff?cvsroot=cluster&r1=1.2&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/clumon/scripts/build_srpm.pl.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/clumon/scripts/uninstall.pl.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/Makefile.diff?cvsroot=cluster&r1=1.10&r2=1.11
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/configure.diff?cvsroot=cluster&r1=1.9&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/cman_tool/Makefile.diff?cvsroot=cluster&r1=1.18&r2=1.19
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/config/copyright.cf.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/daemon/Makefile.diff?cvsroot=cluster&r1=1.47&r2=1.48
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/init.d/Makefile.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/lib/Makefile.diff?cvsroot=cluster&r1=1.7&r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/make/cman.spec.in.diff?cvsroot=cluster&r1=1.2&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/make/defines.mk.input.diff?cvsroot=cluster&r1=1.5&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/make/flags.mk.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/make/release.mk.input.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/man/Makefile.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/qdisk/Makefile.diff?cvsroot=cluster&r1=1.7&r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/scripts/cman.init.diff?cvsroot=cluster&r1=1.2&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/scripts/uninstall.pl.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/tests/Makefile.diff?cvsroot=cluster&r1=1.5&r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cmirror/configure.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cmirror/make/defines.mk.input.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cmirror/make/release.mk.input.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cmirror/scripts/uninstall.pl.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/config/copyright.cf.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/csnap/configure.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/csnap/config/copyright.cf.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/csnap/make/defines.mk.input.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/csnap/make/release.mk.input.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/csnap/scripts/uninstall.pl.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/csnap-kernel/configure.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/csnap-kernel/make/defines.mk.input.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/csnap-kernel/make/release.mk.input.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/csnap-kernel/scripts/uninstall.pl.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/dlm/Makefile.diff?cvsroot=cluster&r1=1.7&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/dlm/configure.diff?cvsroot=cluster&r1=1.4&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/dlm/config/copyright.cf.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/dlm/lib/Makefile.diff?cvsroot=cluster&r1=1.17&r2=1.18
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/dlm/make/defines.mk.input.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/dlm/make/dlm.spec.in.diff?cvsroot=cluster&r1=1.2&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/dlm/make/flags.mk.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/dlm/make/release.mk.input.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/dlm/scripts/uninstall.pl.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/Makefile.diff?cvsroot=cluster&r1=1.7&r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/configure.diff?cvsroot=cluster&r1=1.8&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/Makefile.diff?cvsroot=cluster&r1=1.15&r2=1.16
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/apc/Makefile.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/bladecenter/Makefile.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/brocade/Makefile.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/bullpap/Makefile.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/drac/Makefile.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/egenera/Makefile.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/ilo/Makefile.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/ipmilan/Makefile.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/manual/Makefile.diff?cvsroot=cluster&r1=1.9&r2=1.10
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/mcdata/Makefile.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/rps10/Makefile.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/rsa/Makefile.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/rsb/Makefile.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/sanbox2/Makefile.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/scsi/Makefile.diff?cvsroot=cluster&r1=1.10&r2=1.11
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/vixel/Makefile.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/wti/Makefile.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/xvm/Makefile.diff?cvsroot=cluster&r1=1.5&r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/xvm/vm_states.c.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/xvm/Makefile.tmp.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/config/copyright.cf.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/fence_node/Makefile.diff?cvsroot=cluster&r1=1.5&r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/fence_tool/Makefile.diff?cvsroot=cluster&r1=1.12&r2=1.13
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/fenced/Makefile.diff?cvsroot=cluster&r1=1.7&r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/make/defines.mk.input.diff?cvsroot=cluster&r1=1.5&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/make/fence.spec.in.diff?cvsroot=cluster&r1=1.2&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/make/release.mk.input.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/man/Makefile.diff?cvsroot=cluster&r1=1.10&r2=1.11
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/scripts/define2var.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/scripts/uninstall.pl.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/Makefile.diff?cvsroot=cluster&r1=1.10&r2=1.11
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/configure.diff?cvsroot=cluster&r1=1.6&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/config/copyright.cf.diff?cvsroot=cluster&r1=1.2&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/gfs_debug/Makefile.diff?cvsroot=cluster&r1=1.5&r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/gfs_edit/Makefile.diff?cvsroot=cluster&r1=1.6&r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/gfs_fsck/Makefile.diff?cvsroot=cluster&r1=1.7&r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/gfs_grow/Makefile.diff?cvsroot=cluster&r1=1.6&r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/gfs_jadd/Makefile.diff?cvsroot=cluster&r1=1.6&r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/gfs_mkfs/Makefile.diff?cvsroot=cluster&r1=1.6&r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/gfs_quota/Makefile.diff?cvsroot=cluster&r1=1.6&r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/gfs_quota/layout.c.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/gfs_tool/Makefile.diff?cvsroot=cluster&r1=1.9&r2=1.10
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/init.d/Makefile.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/libgfs/Makefile.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/make/defines.mk.input.diff?cvsroot=cluster&r1=1.3&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/make/flags.mk.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/make/gfs.spec.in.diff?cvsroot=cluster&r1=1.2&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/make/release.mk.input.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/man/Makefile.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/scripts/gfs_safe.pl.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/scripts/uninstall.pl.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/Makefile.diff?cvsroot=cluster&r1=1.2&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/configure.diff?cvsroot=cluster&r1=1.4&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/make/defines.mk.input.diff?cvsroot=cluster&r1=1.2&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/make/gfs-kernel.spec.in.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/make/release.mk.input.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/scripts/uninstall.pl.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/Makefile.diff?cvsroot=cluster&r1=1.5&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/Makefile.diff?cvsroot=cluster&r1=1.14&r2=1.15
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/Makefile.diff?cvsroot=cluster&r1=1.9&r2=1.10
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/configure.diff?cvsroot=cluster&r1=1.3&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/config/copyright.cf.diff?cvsroot=cluster&r1=1.2&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/convert/Makefile.diff?cvsroot=cluster&r1=1.5&r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/edit/Makefile.diff?cvsroot=cluster&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/fsck/Makefile.diff?cvsroot=cluster&r1=1.7&r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/init.d/Makefile.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/libgfs2/Makefile.diff?cvsroot=cluster&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/make/defines.mk.input.diff?cvsroot=cluster&r1=1.3&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/make/flags.mk.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/make/gfs2.spec.in.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/make/release.mk.input.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/man/Makefile.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/mkfs/Makefile.diff?cvsroot=cluster&r1=1.13&r2=1.14
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/mount/Makefile.diff?cvsroot=cluster&r1=1.11&r2=1.12
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/quota/Makefile.diff?cvsroot=cluster&r1=1.6&r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/scripts/uninstall.pl.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/tool/Makefile.diff?cvsroot=cluster&r1=1.5&r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gnbd/Makefile.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gnbd/configure.diff?cvsroot=cluster&r1=1.7&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gnbd/client/Makefile.diff?cvsroot=cluster&r1=1.10&r2=1.11
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gnbd/config/copyright.cf.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gnbd/make/defines.mk.input.diff?cvsroot=cluster&r1=1.4&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gnbd/make/release.mk.input.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gnbd/man/Makefile.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gnbd/scripts/find_executable.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gnbd/scripts/linuxver.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gnbd/scripts/uninstall.pl.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gnbd/server/Makefile.diff?cvsroot=cluster&r1=1.10&r2=1.11
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gnbd/tools/Makefile.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gnbd/tools/fence_gnbd/Makefile.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gnbd/tools/gnbd_export/Makefile.diff?cvsroot=cluster&r1=1.11&r2=1.12
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gnbd/tools/gnbd_export/gnbd_export.c.diff?cvsroot=cluster&r1=1.11&r2=1.12
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gnbd/tools/gnbd_import/Makefile.diff?cvsroot=cluster&r1=1.8&r2=1.9
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gnbd/utils/Makefile.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gnbd-kernel/Makefile.diff?cvsroot=cluster&r1=1.2&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gnbd-kernel/configure.diff?cvsroot=cluster&r1=1.3&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gnbd-kernel/make/defines.mk.input.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gnbd-kernel/make/gnbd-kernel.spec.in.diff?cvsroot=cluster&r1=1.2&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gnbd-kernel/make/release.mk.input.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gnbd-kernel/scripts/uninstall.pl.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gnbd-kernel/src/Makefile.diff?cvsroot=cluster&r1=1.5&r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/Makefile.diff?cvsroot=cluster&r1=1.7&r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/configure.diff?cvsroot=cluster&r1=1.3&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/daemon/Makefile.diff?cvsroot=cluster&r1=1.16&r2=1.17
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/dlm_controld/Makefile.diff?cvsroot=cluster&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/gfs_controld/Makefile.diff?cvsroot=cluster&r1=1.7&r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/lib/Makefile.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/lib/libgroup.c.diff?cvsroot=cluster&r1=1.25&r2=1.26
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/make/defines.mk.input.diff?cvsroot=cluster&r1=1.5&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/make/release.mk.input.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/scripts/uninstall.pl.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/tool/Makefile.diff?cvsroot=cluster&r1=1.6&r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/make/defines.mk.input.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/make/release.mk.input.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/Makefile.diff?cvsroot=cluster&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/configure.diff?cvsroot=cluster&r1=1.4&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/init.d/Makefile.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/make/defines.mk.input.diff?cvsroot=cluster&r1=1.7&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/make/release.mk.input.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/make/rgmanager.spec.in.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/man/Makefile.diff?cvsroot=cluster&r1=1.5&r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/scripts/uninstall.pl.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/Makefile.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/clulib/Makefile.diff?cvsroot=cluster&r1=1.12&r2=1.13
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/clulib/clulog.c.diff?cvsroot=cluster&r1=1.6&r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/Makefile.diff?cvsroot=cluster&r1=1.18&r2=1.19
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/Makefile.diff?cvsroot=cluster&r1=1.17&r2=1.18
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/utils/Makefile.diff?cvsroot=cluster&r1=1.14&r2=1.15
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/scripts/define2var.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/scripts/uninstall.pl.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/scripts/build_srpms.pl.diff?cvsroot=cluster&r1=1.6&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/scripts/latest_tag.pl.diff?cvsroot=cluster&r1=1.1&r2=NONE

Makefile +71 -113
@@ -8,133 +8,91 @@
 ##
 ###############################################################################
 ###############################################################################
-# Order is important
-LATEST_TAG=scripts/latest_tag.pl
-BUILD_SRPMS=scripts/build_srpms.pl
-BUILDDIR = $(shell pwd)/build
-MAKELINE =  sbindir=${BUILDDIR}/sbin libdir=${BUILDDIR}/lib mandir=${BUILDDIR}/man incdir=${BUILDDIR}/incdir module_dir=${BUILDDIR}/module sharedir=${BUILDDIR} slibdir=${BUILDDIR}/slib DESTDIR=${BUILDDIR}
 
+include make/defines.mk
 
-all:
-	${MAKE} -C gnbd-kernel all
+KERNEL=gnbd-kernel gfs-kernel
+USERLAND=cman-lib ccs cman group dlm fence gfs gfs2 gnbd rgmanager
+
+MODULES=${KERNEL} ${USERLAND}
+
+KSUBDIRS=gnbd-kernel/src gfs-kernel/src/gfs
+SUBDIRS=ccs cman group dlm/lib fence gfs gfs2 gnbd rgmanager
+
+all: build
+
+build: kernel-modules userland
+
+# scripts details
+scripts:
+	chmod 755 ${BUILDDIR}/scripts/*.pl
+	chmod 755 ${BUILDDIR}/scripts/define2var
+
+# kernel stuff
+
+kernel-modules: ${KERNEL}
+
+gnbd-kernel:
+	${MAKE} -C gnbd-kernel/src all
+
+gfs-kernel:
+	 ${MAKE} -C gfs-kernel/src/gfs
+
+# userland stuff
+# make all target can't be folded in a for loop otherwise make -j breaks
+# because we can't express dependencies.
+
+userland: scripts ${USERLAND}
+
+cman-lib:
 	${MAKE} -C cman/lib all
+
+ccs: cman-lib
 	${MAKE} -C ccs all
+
+cman: ccs
 	${MAKE} -C cman all
+
+group: ccs
 	${MAKE} -C group all
-	${MAKE} -C dlm all
+
+dlm:
+	${MAKE} -C dlm/lib all
+
+fence: group dlm
 	${MAKE} -C fence all
-	${MAKE} -C gfs-kernel all
+
+gfs:
 	${MAKE} -C gfs all
+
+gfs2:
 	${MAKE} -C gfs2 all
+
+gnbd: cman-lib
 	${MAKE} -C gnbd all
+
+rgmanager: ccs dlm
 	${MAKE} -C rgmanager all
-#	${MAKE} -C cmirror all
+
+# end of build
 
 clean:
+	set -e && for i in ${KSUBDIRS} ${SUBDIRS}; do ${MAKE} -C $$i $@; done
+
+distclean: clean
+	rm -f make/defines.mk
 	rm -f *tar.gz
 	rm -rf build
-	${MAKE} -C gfs-kernel clean
-	${MAKE} -C gnbd-kernel clean
-	${MAKE} -C ccs clean
-	${MAKE} -C cman clean
-	${MAKE} -C group clean
-	${MAKE} -C dlm clean
-	${MAKE} -C fence clean
-	${MAKE} -C gfs clean
-	${MAKE} -C gfs2 clean
-	${MAKE} -C gnbd clean
-	${MAKE} -C rgmanager clean
-#	${MAKE} -C cmirror clean
-
-distclean:
-	${MAKE} -C gfs-kernel distclean
-	${MAKE} -C gnbd-kernel distclean
-	${MAKE} -C ccs distclean
-	${MAKE} -C cman distclean
-	${MAKE} -C group distclean
-	${MAKE} -C dlm distclean
-	${MAKE} -C fence distclean
-	${MAKE} -C gfs distclean
-	${MAKE} -C gfs2 distclean
-	${MAKE} -C gnbd distclean
-	${MAKE} -C rgmanager distclean
-#	${MAKE} -C cmirror distclean
-
-install: all
-	${MAKE} -C gfs-kernel install
-	${MAKE} -C gnbd-kernel install
-	${MAKE} -C ccs install
-	${MAKE} -C cman install
-	${MAKE} -C group install
-	${MAKE} -C dlm install
-	${MAKE} -C fence install
-	${MAKE} -C gfs install
-	${MAKE} -C gfs2 install
-	${MAKE} -C gnbd install
-	${MAKE} -C rgmanager install
-#	${MAKE} -C cmirror install
+
+kernel-install: kernel-modules
+	set -e && for i in ${KSUBDIRS}; do ${MAKE} -C $$i install; done
+
+userland-install: userland
+	set -e && for i in ${SUBDIRS}; do ${MAKE} -C $$i install; done
+
+install: kernel-install userland-install
 
 uninstall:
-	${MAKE} -C gfs-kernel uninstall
-	${MAKE} -C gnbd-kernel uninstall
-	${MAKE} -C ccs uninstall
-	${MAKE} -C cman uninstall
-	${MAKE} -C group uninstall
-	${MAKE} -C dlm uninstall
-	${MAKE} -C fence uninstall
-	${MAKE} -C gfs uninstall
-	${MAKE} -C gfs2 uninstall
-	${MAKE} -C gnbd uninstall
-	${MAKE} -C rgmanager uninstall
-#	${MAKE} -C cmirror uninstall
-
-latest_tags:
-	${LATEST_TAG} gfs-kernel
-	${LATEST_TAG} gnbd-kernel
-	${LATEST_TAG} ccs
-	${LATEST_TAG} cman
-	${LATEST_TAG} dlm
-	${LATEST_TAG} fence
-	${LATEST_TAG} gfs
-	${LATEST_TAG} gfs2
-	${LATEST_TAG} gnbd
-	${LATEST_TAG} rgmanager
-	echo "Beware, your directories are now in sync with their last tag." > TAG
-#	${LATEST_TAG} cmirror
-
-setrelease:
-	for i in `ls */make/release.mk.input`; do ${EDITOR} $$i; done
-
-.PHONY: srpms
-
-srpms:
-	$(BUILD_SRPMS)
-
-tarballs: TAG
-	make -s COMPONENT=gfs-kernel RELEASE_FILE=gfs-kernel/make/release.mk.input tarball
-	make -s COMPONENT=gnbd-kernel RELEASE_FILE=gnbd-kernel/make/release.mk.input tarball
-	make -s COMPONENT=ccs RELEASE_FILE=ccs/make/release.mk.input tarball
-	make -s COMPONENT=cman RELEASE_FILE=cman/make/release.mk.input tarball
-	make -s COMPONENT=dlm RELEASE_FILE=dlm/make/release.mk.input tarball
-	make -s COMPONENT=fence RELEASE_FILE=fence/make/release.mk.input tarball
-	make -s COMPONENT=gfs RELEASE_FILE=gfs/make/release.mk.input tarball
-	make -s COMPONENT=gfs2 RELEASE_FILE=gfs2/make/release.mk.input tarball
-	make -s COMPONENT=gnbd RELEASE_FILE=gnbd/make/release.mk.input tarball
-	make -s COMPONENT=rgmanager RELEASE_FILE=rgmanager/make/release.mk.input tarball
-#	make -s COMPONENT=cmirror RELEASE_FILE=cmirror/make/release.mk.input tarball
-
-ifdef RELEASE_FILE
-include ${RELEASE_FILE}
-endif
-
-ifneq (${RELEASE_MAJOR}, DEVEL)
-tarball:
-	cp -r ${COMPONENT} ${COMPONENT}-${RELEASE_MAJOR}.${RELEASE_MINOR}
-	rm -rf `find ${COMPONENT}-${RELEASE_MAJOR}.${RELEASE_MINOR} -name CVS`;
-	tar -zcvf ${COMPONENT}-${RELEASE_MAJOR}.${RELEASE_MINOR}.tar.gz \
-	${COMPONENT}-${RELEASE_MAJOR}.${RELEASE_MINOR}
-	rm -rf ${COMPONENT}-${RELEASE_MAJOR}.${RELEASE_MINOR}
-else
-tarball:
-	echo "${COMPONENT}:: Version number not set."
-endif
+	set -e && for i in ${KSUBDIRS} ${SUBDIRS}; do ${MAKE} -C $$i $@; done
+
+.PHONY: scripts ${MODULES}
configure +347 -35

384 lines not on this page · raw message

ccs/Makefile +8 -26
@@ -10,32 +10,14 @@
 ###############################################################################
 ###############################################################################
 
-all:
-	${MAKE} -C daemon all
-	${MAKE} -C lib all
-	${MAKE} -C ccs_test all
-	${MAKE} -C ccs_tool all
+include ../make/defines.mk
 
-clean:
-	${MAKE} -C daemon clean
-	${MAKE} -C lib clean
-	${MAKE} -C ccs_test clean
-	${MAKE} -C ccs_tool clean
-	rm -f *~
+SUBDIRS=daemon lib ccs_test ccs_tool man
 
-distclean: clean
-	rm -f make/defines.mk
+all: ${SUBDIRS}
 
-install: all
-	${MAKE} -C daemon install 
-	${MAKE} -C lib install
-	${MAKE} -C ccs_test install
-	${MAKE} -C ccs_tool install
-	${MAKE} -C man install
-
-uninstall:
-	${MAKE} -C daemon uninstall 
-	${MAKE} -C lib uninstall
-	${MAKE} -Cccs_test  uninstall
-	${MAKE} -C ccs_tool uninstall
-	${MAKE} -Cman  uninstall
+%:
+	set -e && \
+	for i in ${SUBDIRS}; do \
+		${MAKE} -C $$i $@; \
+	done
ccs/ccs_test/Makefile +17 -18
@@ -10,38 +10,37 @@
 ###############################################################################
 ###############################################################################
 
-top_srcdir=..
-UNINSTALL = ${top_srcdir}/scripts/uninstall.pl
+include ../../make/defines.mk
 
-include ${top_srcdir}/make/defines.mk
+TARGET= ccs_test
 
-ccs_libdir=${top_srcdir}/lib
-INCLUDE+= -I. -I${top_srcdir}/include -I${ccs_libdir} -I${top_srcdir}/config
+OBJS=	ccs_test.o
+
+CFLAGS += -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DCCS_RELEASE_NAME=\"${RELEASE}\"
+CFLAGS += -I${ccsincdir}
 
 ifeq ($(DEBUG),y)
-CFLAGS+= -O2 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DDEBUG -g \
-	-DCCS_RELEASE_NAME=\"${RELEASE}\"
+CFLAGS += -O0 -DDEBUG -g
 else
-CFLAGS+= -O2 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DCCS_RELEASE_NAME=\"${RELEASE}\"
+CFLAGS += -O2
 endif
 
-LDFLAGS+= -L${ccs_libdir}
-LOADLIBES+= -lccs
+LDFLAGS += -L${ccslibdir} -lccs
 
-all: ccs_test
+all: ${TARGET}
 
-ccs_test: ccs_test.c ${ccs_libdir}/libccs.a
-	${CC} ${CFLAGS} ${INCLUDE} ccs_test.c ${LDFLAGS} ${LOADLIBES} ${LDLIBS}-o $@
+${TARGET}: ${OBJS}
+	$(CC) -o $@ $^ $(LDFLAGS)
 
-${ccs_libdir}/libccs.a:
-	${MAKE} -C ${ccs_libdir} libccs.a
+%.o: %.c
+	$(CC) $(CFLAGS) -c -o $@ $^
 
 install: all
 	install -d ${sbindir}
-	install ccs_test ${sbindir}
+	install ${TARGET} ${sbindir}
 
 uninstall:
-	${UNINSTALL} ccs_test ${sbindir}
+	${UNINSTALL} ${TARGET} ${sbindir}
 
 clean:
-	rm -rf *.o ccs_test *~
+	rm -rf *.o ${TARGET} *~
ccs/ccs_tool/Makefile +25 -17

55 lines not on this page · raw message

ccs/daemon/Makefile +25 -14
@@ -10,29 +10,40 @@
 ###############################################################################
 ###############################################################################
 
-top_srcdir=..
-UNINSTALL = ${top_srcdir}/scripts/uninstall.pl
-
-include ${top_srcdir}/make/defines.mk
+include ../../make/defines.mk
 
 TARGET= ccsd
-INCLUDE= -I. -I../include -I../common -I${top_srcdir}/config -I../../cman/lib
+
+OBJS=	ccsd.o \
+	cnx_mgr.o \
+	cluster_mgr.o \
+	misc.o \
+	log.o \
+	globals.o
+
+CFLAGS += -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DCCS_RELEASE_NAME=\"${RELEASE}\"
+CFLAGS += -Wall
+CFLAGS += -I${cmanincdir} `xml2-config --cflags`
+CFLAGS += -I. -I../include -I../common
 
 ifeq ($(DEBUG),y)
-CFLAGS+= -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DDEBUG -g \
-	`xml2-config --cflags` -DCCS_RELEASE_NAME=\"${RELEASE}\"
+CFLAGS += -O0 -DDEBUG -g
 else
-CFLAGS+= -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE \
-	`xml2-config --cflags` -DCCS_RELEASE_NAME=\"${RELEASE}\"
+CFLAGS += -O2
 endif
 
-LDFLAGS+= -L${libdir} `xml2-config --libs` -lpthread -ldl
+LDFLAGS += -L${cmanlibdir} -lcman -L${libdir} `xml2-config --libs` -lpthread -ldl
 
 all: ${TARGET}
 
-ccsd: ccsd.c cnx_mgr.c cluster_mgr.c misc.c ../common/log.c globals.c
-	${CC} ${CFLAGS} ${INCLUDE} -o $@ $^ ${LDFLAGS} \
-	../../cman/lib/libcman.a
+${TARGET}: ${OBJS}
+	$(CC) -o $@ $^ $(LDFLAGS)
+
+%.o: %.c
+	$(CC) $(CFLAGS) -c -o $@ $^
+
+log.c:
+	ln -sf ../common/log.c log.c
 
 install: all
 	install -d ${sbindir}
@@ -42,4 +53,4 @@
 	${UNINSTALL} ${TARGET} ${sbindir}
 
 clean:
-	rm -rf *.o ${TARGET} *~
+	rm -rf *.o ${TARGET} *~ log.c
ccs/lib/Makefile +21 -17
@@ -9,40 +9,44 @@
 ##
 ###############################################################################
 ###############################################################################
-top_srcdir=..
-UNINSTALL = ${top_srcdir}/scripts/uninstall.pl
 
-include ${top_srcdir}/make/defines.mk
+include ../../make/defines.mk
 
-INCLUDE = -I../include -I../common
+TARGET=libccs.a
+
+OBJS=	libccs.o \
+	log.o
+
+CFLAGS += -D_FILE_OFFSET_BITS=64
+CFLAGS += -fPIC
+CFLAGS += -I../include -I../common
 
 ifeq ($(DEBUG),y)
-CFLAGS+= -O2 -fPIC -D_FILE_OFFSET_BITS=64 -DDEBUG -g
+CFLAGS += -O0 -DDEBUG -g
 else
-CFLAGS+= -O2 -fPIC -D_FILE_OFFSET_BITS=64
+CFLAGS += -O2
 endif
 
-all: libccs.a
+all: ${TARGET}
 
-libccs.a: libccs.o log.o
-	${AR} cr libccs.a libccs.o log.o
+${TARGET}: ${OBJS}
+	${AR} cr ${TARGET} ${OBJS}
 
-libccs.o: libccs.c ccs.h
-	${CC} -c ${CFLAGS} ${INCLUDE} $^
+%.o: %.c
+	$(CC) $(CFLAGS) -c -o $@ $^
 
-log.o: ../common/log.c
-	${CC} -c ${CFLAGS} ${INCLUDE} $^
+log.c:
+	ln -sf ../common/log.c log.c
 
 install: all
 	install -d ${libdir}
-	install -m644 libccs.a ${libdir}
+	install -m644 ${TARGET} ${libdir}
 	install -d ${incdir}
 	install -m644 ccs.h ${incdir}
 
 uninstall:
-	${UNINSTALL} libccs.a ${libdir} 
+	${UNINSTALL} ${TARGET} ${libdir} 
 	${UNINSTALL} ccs.h ${incdir} 
-	rm -f /lib/libccs.a
 
 clean:
-	rm -rf *~ *.o libccs.a
+	rm -rf *~ *.o ${TARGET} ccs.h.gch log.c
ccs/man/Makefile +4 -3
@@ -10,10 +10,8 @@
 ##
 ###############################################################################
 ###############################################################################
-top_srcdir=..
-UNINSTALL = ${top_srcdir}/scripts/uninstall.pl
 
-include ${top_srcdir}/make/defines.mk
+include ../../make/defines.mk
 
 install:
 	install -d ${mandir}/man5
@@ -28,3 +26,6 @@
 	${UNINSTALL} ccs.7 ${mandir}/man7
 	${UNINSTALL} ccsd.8 ccs_test.8 ccs_tool.8 ${mandir}/man8
 
+all:
+
+clean:
cman/Makefile +8 -27
@@ -11,33 +11,14 @@
 ###############################################################################
 ###############################################################################
 
-all:
-	${MAKE} -C lib all
-	${MAKE} -C cman_tool all
-	${MAKE} -C daemon all
-	${MAKE} -C qdisk all
+include ../make/defines.mk
 
-clean:
-	${MAKE} -C lib clean
-	${MAKE} -C cman_tool clean
-	${MAKE} -C daemon clean
-	${MAKE} -C qdisk clean
+SUBDIRS=lib cman_tool daemon qdisk init.d man
 
-distclean: clean
-	rm -f make/defines.mk
+all: ${SUBDIRS}
 
-install: all
-	${MAKE} -C lib install
-	${MAKE} -C cman_tool install
-	${MAKE} -C daemon install
-	${MAKE} -C qdisk install
-	${MAKE} -C init.d install
-	${MAKE} -C man install
-
-uninstall:
-	${MAKE} -C lib uninstall
-	${MAKE} -C cman_tool uninstall
-	${MAKE} -C daemon uninstall
-	${MAKE} -C qdisk uninstall
-	${MAKE} -C init.d uninstall
-	${MAKE} -C man uninstall
+%:
+	set -e && \
+	for i in ${SUBDIRS}; do \
+		${MAKE} -C $$i $@; \
+	done
cman/cman_tool/Makefile +18 -18
@@ -10,40 +10,40 @@
 ###############################################################################
 ###############################################################################
 
-top_srcdir=..
-UNINSTALL=${top_srcdir}/scripts/uninstall.pl
+include ../../make/defines.mk
 
-include ${top_srcdir}/make/defines.mk
+TARGET=cman_tool
+
+OBJS=	main.o \
+	join.o
 
-CFLAGS+= -I${ccsincdir} -I${incdir} -I${top_srcdir}/config \
-	-DCMAN_RELEASE_NAME=\"${RELEASE}\" -I../lib
+CFLAGS += -DCMAN_RELEASE_NAME=\"${RELEASE}\"
+CFLAGS += -DSBINDIR=\"${sbindir}\"
+CFLAGS += -I${ccsincdir} -I${cmanincdir} -I${incdir}
 
 ifeq ($(DEBUG),y)
-CFLAGS+= -O0 -g -DDEBUG
+CFLAGS += -O0 -g -DDEBUG
 else
-CFLAGS+= -O2
+CFLAGS += -O2
 endif
 
-TARGET=cman_tool
+LDFLAGS += -L${ccslibdir} -L${cmanlibdir} -lccs -lcman
 
 all: ${TARGET}
 
-cman_tool: main.o join.o ../lib/libcman.a
-	$(CC) $(LDFLAGS) -L$(ccslibdir) -o $@ $^ -L../lib -lccs
-
-main.o: main.c cman_tool.h
-	$(CC) $(CFLAGS) -c -o $@ $<
+${TARGET}: ${OBJS}
+	$(CC) -o $@ $^ $(LDFLAGS)
 
-join.o: join.c cman_tool.h
-	$(CC) $(CFLAGS) -c -o $@ $< -DSBINDIR=\"${sbindir}\"
+%.o: %.c
+	$(CC) $(CFLAGS) -c -o $@ $^
 
 install: all
 	install -d ${sbindir}
-	install cman_tool ${sbindir}
+	install ${TARGET} ${sbindir}
 
 uninstall:
-	${UNINSTALL} cman_tool ${sbindir}
+	${UNINSTALL} ${TARGET} ${sbindir}
 
 clean:
-	rm -f *.o cman_tool
+	rm -f *.o ${TARGET}
 
cman/daemon/Makefile +24 -42

87 lines not on this page · raw message

cman/init.d/Makefile +2 -6
@@ -10,13 +10,9 @@
 ###############################################################################
 ###############################################################################
 
-TARGET= cman qdiskd
-
-UNINSTALL=${top_srcdir}/scripts/uninstall.pl
+include ../../make/defines.mk
 
-top_srcdir=..
-
-include ${top_srcdir}/make/defines.mk
+TARGET= cman qdiskd
 
 all:
 
cman/lib/Makefile +26 -29

75 lines not on this page · raw message

cman/man/Makefile +7 -3
@@ -10,10 +10,14 @@
 ##
 ###############################################################################
 ###############################################################################
-top_srcdir=..
-UNINSTALL = ${top_srcdir}/scripts/uninstall.pl
 
-include ${top_srcdir}/make/defines.mk
+include ../../make/defines.mk
+
+all:
+
+clean:
+
+distclean:
 
 install:
 	install -d ${mandir}/man5
cman/qdisk/Makefile +34 -20

70 lines not on this page · raw message

cman/tests/Makefile +3 -9
@@ -1,13 +1,8 @@
+include ../../make/defines.mk
 
+CFLAGS+= -g -I${cmanincdir}
 
-top_srcdir=..
-
-include ${top_srcdir}/make/defines.mk
-include ${top_srcdir}/make/flags.mk
-
-CFLAGS+= -g -I${top_srcdir}/config -I ../lib
-
-LDFLAGS+= -L../lib -lcman
+LDFLAGS+= -L${cmanlibdir} -lcman
 
 TARGET=client libtest sysman sysmand
 
@@ -21,4 +16,3 @@
 clean:
 	rm -f *.o ${TARGET}
 
-

/cvs/cluster/cluster/config/copyright.cf,v --> standard output revision 1.1

- renamed from config/copyright.cf +22 -0
@@ -0,0 +1,22 @@
+/******************************************************************************
+*******************************************************************************
+**
+**  Copyright (C) Sistina Software, Inc.  1997-2003  All rights reserved.
+**  Copyright (C) Red Hat, Inc. 2004-2007  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.
+**
+*******************************************************************************
+******************************************************************************/
+
+#ifndef __COPYRIGHT_DOT_CF__
+#define __COPYRIGHT_DOT_CF__
+
+#define REDHAT_COPYRIGHT ("Copyright (C) Red Hat, Inc.  2004-2007  All rights reserved.")
+
+#endif  /*  __COPYRIGHT_DOT_CF__  */
+
+
+
dlm/lib/Makefile +43 -42

111 lines not on this page · raw message

fence/Makefile +8 -27
@@ -10,34 +10,15 @@
 ##
 ###############################################################################
 ###############################################################################
-all:
-	${MAKE} -C agents all
-	${MAKE} -C fence_node all
-	${MAKE} -C fence_tool all
-	${MAKE} -C fenced all
 
-clean:
-	${MAKE} -C agents clean
-	${MAKE} -C fence_node clean
-	${MAKE} -C fence_tool clean
-	${MAKE} -C fenced clean
+include ../make/defines.mk
 
-distclean: clean
-	rm -f make/defines.mk
+SUBDIRS=agents fence_node fence_tool fenced man
 
-install: all
-	if [ ! -d ${sbindir} ]; then \
-		install -d ${sbindir}; \
-	fi
-	${MAKE} -C agents install
-	${MAKE} -C fence_node install
-	${MAKE} -C fence_tool install
-	${MAKE} -C fenced install
-	${MAKE} -C man install
+all: ${SUBDIRS}
 
-uninstall:
-	${MAKE} -C agents uninstall
-	${MAKE} -C fence_node uninstall
-	${MAKE} -C fence_tool uninstall
-	${MAKE} -C fenced uninstall
-	${MAKE} -C man uninstall
+%:
+	set -e && \
+	for i in ${SUBDIRS}; do \
+		${MAKE} -C $$i $@; \
+	done
fence/agents/Makefile +16 -74

97 lines not on this page · raw message

fence/agents/apc/Makefile +6 -4
@@ -11,19 +11,18 @@
 ###############################################################################
 ###############################################################################
 
+include ../../../make/defines.mk
+
 SOURCE= fence_apc.py
 TARGET= fence_apc
 
-top_srcdir=../..
-include ${top_srcdir}/make/defines.mk
-
 all: $(TARGET)
 
 fence_apc: fence_apc.py
 	: > $(TARGET)
 	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(SOURCE) >> $(TARGET)
 	echo "FENCE_RELEASE_NAME=\"${RELEASE}\";" >> $(TARGET)
-	${top_srcdir}/scripts/define2var ${top_srcdir}/config/copyright.cf sh REDHAT_COPYRIGHT >> $(TARGET)
+	${DEF2VAR} ${BUILDDIR}/config/copyright.cf sh REDHAT_COPYRIGHT >> $(TARGET)
 	echo "BUILD_DATE=\"(built `date`)\";" >> $(TARGET)
 	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(SOURCE) >> $(TARGET)
 	chmod +x $(TARGET)
@@ -34,5 +33,8 @@
 	fi
 	install -m755 ${TARGET} ${sbindir}
 
+uninstall:
+	${UNINSTALL} ${TARGET} ${sbindir}
+
 clean:
 	rm -f $(TARGET)
fence/agents/bladecenter/Makefile +6 -4
@@ -11,19 +11,18 @@
 ###############################################################################
 ###############################################################################
 
+include ../../../make/defines.mk
+
 SOURCE= fence_bladecenter.pl
 TARGET= fence_bladecenter
 
-top_srcdir=../..
-include ${top_srcdir}/make/defines.mk
-
 all: $(TARGET)
 
 fence_bladecenter: fence_bladecenter.pl
 	: > $(TARGET)
 	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(SOURCE) >> $(TARGET)
 	echo "\$$FENCE_RELEASE_NAME=\"${RELEASE}\";" >> $(TARGET)
-	${top_srcdir}/scripts/define2var ${top_srcdir}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
+	${DEF2VAR} ${BUILDDIR}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
 	echo "\$$BUILD_DATE=\"(built `date`)\";" >> $(TARGET)
 	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(SOURCE) >> $(TARGET)
 	chmod +x $(TARGET)
@@ -34,5 +33,8 @@
 	fi
 	install -m755 ${TARGET} ${sbindir}
 
+uninstall:
+	${UNINSTALL} ${TARGET} ${sbindir}
+
 clean:
 	rm -f $(TARGET)
fence/agents/brocade/Makefile +6 -4
@@ -11,19 +11,18 @@
 ###############################################################################
 ###############################################################################
 
+include ../../../make/defines.mk
+
 SOURCE= fence_brocade.pl
 TARGET= fence_brocade
 
-top_srcdir=../..
-include ${top_srcdir}/make/defines.mk
-
 all: $(TARGET)
 
 $(TARGET): $(SOURCE)
 	: > $(TARGET)
 	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(SOURCE) >> $(TARGET)
 	echo "\$$FENCE_RELEASE_NAME=\"${RELEASE}\";" >> $(TARGET)
-	${top_srcdir}/scripts/define2var ${top_srcdir}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
+	${DEF2VAR} ${BUILDDIR}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
 	echo "\$$BUILD_DATE=\"(built `date`)\";" >> $(TARGET)
 	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(SOURCE) >> $(TARGET)
 	chmod +x $(TARGET)
@@ -34,6 +33,9 @@
 	fi
 	install -m755 ${TARGET} ${sbindir}
 
+uninstall:
+	${UNINSTALL} ${TARGET} ${sbindir}
+
 clean:
 	rm -f $(TARGET)
 
fence/agents/bullpap/Makefile +6 -4
@@ -11,19 +11,18 @@
 ###############################################################################
 ###############################################################################
 
+include ../../../make/defines.mk
+
 SOURCE= fence_bullpap.pl
 TARGET= fence_bullpap
 
-top_srcdir=../..
-include ${top_srcdir}/make/defines.mk
-
 all: $(TARGET)
 
 $(TARGET): $(SOURCE)
 	: > $(TARGET)
 	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(SOURCE) >> $(TARGET)
 	echo "\$$FENCE_RELEASE_NAME=\"${RELEASE}\";" >> $(TARGET)
-	${top_srcdir}/scripts/define2var ${top_srcdir}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
+	${DEF2VAR} ${BUILDDIR}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
 	echo "\$$BUILD_DATE=\"(built `date`)\";" >> $(TARGET)
 	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(SOURCE) >> $(TARGET)
 	chmod +x $(TARGET)
@@ -34,6 +33,9 @@
 	fi
 	install -m755 ${TARGET} ${sbindir}
 
+uninstall:
+	${UNINSTALL} ${TARGET} ${sbindir}
+
 clean:
 	rm -f $(TARGET)
 
fence/agents/drac/Makefile +6 -4
@@ -11,19 +11,18 @@
 ###############################################################################
 ###############################################################################
 
+include ../../../make/defines.mk
+
 SOURCE= fence_drac.pl
 TARGET= fence_drac
 
-top_srcdir=../..
-include ${top_srcdir}/make/defines.mk
-
 all: $(TARGET)
 
 fence_drac: fence_drac.pl
 	: > $(TARGET)
 	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(SOURCE) >> $(TARGET)
 	echo "\$$FENCE_RELEASE_NAME=\"${RELEASE}\";" >> $(TARGET)
-	${top_srcdir}/scripts/define2var ${top_srcdir}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
+	${DEF2VAR} ${BUILDDIR}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
 	echo "\$$BUILD_DATE=\"(built `date`)\";" >> $(TARGET)
 	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(SOURCE) >> $(TARGET)
 	chmod +x $(TARGET)
@@ -34,5 +33,8 @@
 	fi
 	install -m755 ${TARGET} ${sbindir}
 
+uninstall:
+	${UNINSTALL} ${TARGET} ${sbindir}
+
 clean:
 	rm -f $(TARGET)
fence/agents/egenera/Makefile +6 -4
@@ -11,19 +11,18 @@
 ###############################################################################
 ###############################################################################
 
+include ../../../make/defines.mk
+
 SOURCE= fence_egenera.pl
 TARGET= fence_egenera
 
-top_srcdir=../..
-include ${top_srcdir}/make/defines.mk
-
 all: $(TARGET)
 
 fence_egenera: fence_egenera.pl
 	: > $(TARGET)
 	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(SOURCE) >> $(TARGET)
 	echo "\$$FENCE_RELEASE_NAME=\"${RELEASE}\";" >> $(TARGET)
-	${top_srcdir}/scripts/define2var ${top_srcdir}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
+	${DEF2VAR} ${BUILDDIR}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
 	echo "\$$BUILD_DATE=\"(built `date`)\";" >> $(TARGET)
 	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(SOURCE) >> $(TARGET)
 	chmod +x $(TARGET)
@@ -34,5 +33,8 @@
 	fi
 	install -m755 ${TARGET} ${sbindir}
 
+uninstall:
+	${UNINSTALL} ${TARGET} ${sbindir}
+
 clean:
 	rm -f $(TARGET)
fence/agents/ilo/Makefile +6 -4
@@ -11,19 +11,18 @@
 ###############################################################################
 ###############################################################################
 
+include ../../../make/defines.mk
+
 SOURCE= fence_ilo.pl
 TARGET= fence_ilo
 
-top_srcdir=../..
-include ${top_srcdir}/make/defines.mk
-
 all: $(TARGET)
 
 fence_ilo: $(SOURCE)
 	: > $(TARGET)
 	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(SOURCE) >> $(TARGET)
 	echo "\$$FENCE_RELEASE_NAME=\"${RELEASE}\";" >> $(TARGET)
-	${top_srcdir}/scripts/define2var ${top_srcdir}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
+	${DEF2VAR} ${BUILDDIR}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
 	echo "\$$BUILD_DATE=\"(built `date`)\";" >> $(TARGET)
 	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(SOURCE) >> $(TARGET)
 	chmod +x $(TARGET)
@@ -34,5 +33,8 @@
 	fi
 	install -m755 ${TARGET} ${sbindir}
 
+uninstall:
+	${UNINSTALL} ${TARGET} ${sbindir}
+
 clean:
 	rm -f $(TARGET)
fence/agents/ipmilan/Makefile +13 -12
@@ -11,24 +11,22 @@
 ###############################################################################
 ###############################################################################
 
-TARGET= fence_ipmilan
-
-fence_ipmilan_SOURCE= expect.c ipmilan.c
-
-top_srcdir=../..
-
-
-INCLUDE= -I${top_srcdir}/include -I${top_srcdir}/config
+include ../../../make/defines.mk
 
+TARGET= fence_ipmilan
 
-include ${top_srcdir}/make/defines.mk
+OBJS=	expect.o \
+	ipmilan.o
 
-CFLAGS+= -DFENCE_RELEASE_NAME=\"${RELEASE}\" -DFENCE
+CFLAGS += -DFENCE_RELEASE_NAME=\"${RELEASE}\" -DFENCE
 
 all: ${TARGET}
 
-fence_ipmilan: ${fence_ipmilan_SOURCE:.c=.o}
-	${CC} ${CFLAGS} ${LDFLAGS} ${fence_ipmilan_SOURCE:.c=.o} -o $@
+${TARGET}: ${OBJS}
+	$(CC) -o $@ $^ $(LDFLAGS)
+
+%.o: %.c
+	$(CC) $(CFLAGS) -c -o $@ $^
 
 install: all
 	if [ ! -d ${sbindir} ]; then \
@@ -36,5 +34,8 @@
 	fi
 	install -m755 ${TARGET} ${sbindir}
 
+uninstall:
+	${UNINSTALL} ${TARGET} ${sbindir}
+
 clean:
 	rm -f *.o ${TARGET}
fence/agents/manual/Makefile +5 -12
@@ -11,19 +11,9 @@
 ###############################################################################
 ###############################################################################
 
-TARGET= fence_ack_manual
-
-top_srcdir=../..
-
-
-INCLUDE= -I${top_srcdir}/include -I${top_srcdir}/config -I${incdir} -I../../../cman/lib -I../../../group/lib
-
+include ../../../make/defines.mk
 
-include ${top_srcdir}/make/defines.mk
-
-CFLAGS+= -DFENCE_RELEASE_NAME=\"${RELEASE}\"
-
-LDFLAGS+= -L../../../cman/lib
+TARGET= fence_ack_manual
 
 all: ${TARGET}
 
@@ -39,5 +29,8 @@
 	fi
 	install -m755 ${TARGET} ${sbindir}
 
+uninstall:
+	${UNINSTALL} ${TARGET} ${sbindir}
+
 clean:
 	rm -f *.o ${TARGET}
fence/agents/mcdata/Makefile +6 -4
@@ -11,19 +11,18 @@
 ###############################################################################
 ###############################################################################
 
+include ../../../make/defines.mk
+
 SOURCE= fence_mcdata.pl
 TARGET= fence_mcdata
 
-top_srcdir=../..
-include ${top_srcdir}/make/defines.mk
-
 all: $(TARGET)
 
 $(TARGET): $(SOURCE)
 	: > $(TARGET)
 	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(SOURCE) >> $(TARGET)
 	echo "\$$FENCE_RELEASE_NAME=\"${RELEASE}\";" >> $(TARGET)
-	${top_srcdir}/scripts/define2var ${top_srcdir}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
+	${DEF2VAR} ${BUILDDIR}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
 	echo "\$$BUILD_DATE=\"(built `date`)\";" >> $(TARGET)
 	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(SOURCE) >> $(TARGET)
 	chmod +x $(TARGET)
@@ -34,6 +33,9 @@
 	fi
 	install -m755 ${TARGET} ${sbindir}
 
+uninstall:
+	${UNINSTALL} ${TARGET} ${sbindir}
+
 clean:
 	rm -f $(TARGET)
 
fence/agents/rps10/Makefile +11 -11
@@ -11,24 +11,21 @@
 ###############################################################################
 ###############################################################################
 
-TARGET= fence_rps10
-
-fence_rps10_SOURCE= rps10.c
-
-top_srcdir=../..
-
-
-INCLUDE= -I${top_srcdir}/include -I${top_srcdir}/config
+include ../../../make/defines.mk
 
+TARGET= fence_rps10
 
-include ${top_srcdir}/make/defines.mk
+OBJS=	rps10.o
 
 CFLAGS+= -DFENCE_RELEASE_NAME=\"${RELEASE}\"
 
 all: ${TARGET}
 
-fence_rps10: ${fence_rps10_SOURCE:.c=.o}
-	${CC} ${CFLAGS} ${LDFLAGS} ${fence_rps10_SOURCE:.c=.o} -o $@
+${TARGET}: ${OBJS}
+	$(CC) -o $@ $^ $(LDFLAGS)
+
+%.o: %.c
+	$(CC) $(CFLAGS) -c -o $@ $^
 
 install: all
 	if [ ! -d ${sbindir} ]; then \
@@ -36,5 +33,8 @@
 	fi
 	install -m755 ${TARGET} ${sbindir}
 
+uninstall:
+	${UNINSTALL} ${TARGET} ${sbindir}
+
 clean:
 	rm -f *.o ${TARGET}
fence/agents/rsa/Makefile +6 -4
@@ -11,19 +11,18 @@
 ###############################################################################
 ###############################################################################
 
+include ../../../make/defines.mk
+
 SOURCE= fence_rsa.py
 TARGET= fence_rsa
 
-top_srcdir=../..
-include ${top_srcdir}/make/defines.mk
-
 all: $(TARGET)
 
 fence_rsa: fence_rsa.py
 	: > $(TARGET)
 	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(SOURCE) >> $(TARGET)
 	echo "FENCE_RELEASE_NAME=\"${RELEASE}\";" >> $(TARGET)
-	${top_srcdir}/scripts/define2var ${top_srcdir}/config/copyright.cf sh REDHAT_COPYRIGHT >> $(TARGET)
+	${DEF2VAR} ${BUILDDIR}/config/copyright.cf sh REDHAT_COPYRIGHT >> $(TARGET)
 	echo "BUILD_DATE=\"(built `date`)\";" >> $(TARGET)
 	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(SOURCE) >> $(TARGET)
 	chmod +x $(TARGET)
@@ -34,5 +33,8 @@
 	fi
 	install -m755 ${TARGET} ${sbindir}
 
+uninstall:
+	${UNINSTALL} ${TARGET} ${sbindir}
+
 clean:
 	rm -f $(TARGET)
fence/agents/rsb/Makefile +6 -7
@@ -11,31 +11,30 @@
 ###############################################################################
 ###############################################################################
 
+include ../../../make/defines.mk
+
 SOURCE= fence_rsb.py
 TARGET= fence_rsb
 
-top_srcdir=../..
-include ${top_srcdir}/make/defines.mk
-
 all: $(TARGET)
 
 fence_rsb: fence_rsb.py
 	: > $(TARGET)
 	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(SOURCE) >> $(TARGET)
 	echo "FENCE_RELEASE_NAME=\"${RELEASE}\";" >> $(TARGET)
-	${top_srcdir}/scripts/define2var ${top_srcdir}/config/copyright.cf sh REDHAT_COPYRIGHT >> $(TARGET)
+	${DEF2VAR} ${BUILDDIR}/config/copyright.cf sh REDHAT_COPYRIGHT >> $(TARGET)
 	echo "BUILD_DATE=\"(built `date`)\";" >> $(TARGET)
 	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(SOURCE) >> $(TARGET)
 	chmod +x $(TARGET)
 
-copytobin: ${TARGET}
-	cp ${TARGET} ${top_srcdir}/bin/${TARGET}
-
 install: all
 	if [ ! -d ${sbindir} ]; then \
 		install -d ${sbindir}; \
 	fi
 	install -m755 ${TARGET} ${sbindir}
 
+uninstall:
+	${UNINSTALL} ${TARGET} ${sbindir}
+
 clean:
 	rm -f $(TARGET)
fence/agents/sanbox2/Makefile +6 -4
@@ -11,19 +11,18 @@
 ###############################################################################
 ###############################################################################
 
+include ../../../make/defines.mk
+
 SOURCE= fence_sanbox2.pl
 TARGET= fence_sanbox2
 
-top_srcdir=../..
-include ${top_srcdir}/make/defines.mk
-
 all: $(TARGET)
 
 $(TARGET): $(SOURCE)
 	: > $(TARGET)
 	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(SOURCE) >> $(TARGET)
 	echo "\$$FENCE_RELEASE_NAME=\"${RELEASE}\";" >> $(TARGET)
-	${top_srcdir}/scripts/define2var ${top_srcdir}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
+	${DEF2VAR} ${BUILDDIR}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
 	echo "\$$BUILD_DATE=\"(built `date`)\";" >> $(TARGET)
 	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(SOURCE) >> $(TARGET)
 	chmod +x $(TARGET)
@@ -34,6 +33,9 @@
 	fi
 	install -m755 ${TARGET} ${sbindir}
 
+uninstall:
+	${UNINSTALL} ${TARGET} ${sbindir}
+
 clean:
 	rm -f $(TARGET)
 
fence/agents/scsi/Makefile +11 -8
@@ -10,6 +10,8 @@
 ###############################################################################
 ###############################################################################
 
+include ../../../make/defines.mk
+
 SOURCE= fence_scsi.pl
 TARGET= fence_scsi
 SCRIPT= scsi_reserve
@@ -17,16 +19,13 @@
 TEST_SOURCE= fence_scsi_test.pl
 TEST_TARGET= fence_scsi_test
 
-top_srcdir=../..
-include ${top_srcdir}/make/defines.mk
-
 all: $(TARGET) $(TEST_TARGET)
 
 fence_scsi: fence_scsi.pl
 	: > $(TARGET)
 	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(SOURCE) >> $(TARGET)
 	echo "\$$FENCE_RELEASE_NAME=\"${RELEASE}\";" >> $(TARGET)
-	${top_srcdir}/scripts/define2var ${top_srcdir}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
+	${DEF2VAR} ${BUILDDIR}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
 	echo "\$$BUILD_DATE=\"(built `date`)\";" >> $(TARGET)
 	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(SOURCE) >> $(TARGET)
 	chmod +x $(TARGET)
@@ -35,7 +34,7 @@
 	: > $(TEST_TARGET)
 	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(TEST_SOURCE) >> $(TEST_TARGET)
 	echo "\$$FENCE_RELEASE_NAME=\"${RELEASE}\";" >> $(TEST_TARGET)
-	${top_srcdir}/scripts/define2var ${top_srcdir}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TEST_TARGET)
+	${DEF2VAR} ${BUILDDIR}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TEST_TARGET)
 	echo "\$$BUILD_DATE=\"(built `date`)\";" >> $(TEST_TARGET)
 	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(TEST_SOURCE) >> $(TEST_TARGET)
 	chmod +x $(TEST_TARGET)
@@ -46,10 +45,14 @@
 	fi
 	install -m755 ${TARGET} ${sbindir}
 	install -m755 ${TEST_TARGET} ${sbindir}
-	if [ ! -d ${initdir} ]; then \
-		install -d ${initdir}; \
+	if [ ! -d ${DESTDIR}/etc/init.d ]; then \
+		install -d ${DESTDIR}/etc/init.d; \
 	fi
-	install -m755 ${SCRIPT} ${initdir}
+	install -m755 ${SCRIPT} ${DESTDIR}/etc/init.d
+
+uninstall:
+	${UNINSTALL} ${TARGET} ${TEST_TARGET} ${sbindir}
+	${UNINSTALL} ${SCRIPT} ${DESTDIR}/etc/init.d
 
 clean:
 	rm -f $(TARGET) $(TEST_TARGET)
fence/agents/vixel/Makefile +6 -4
@@ -11,19 +11,18 @@
 ###############################################################################
 ###############################################################################
 
+include ../../../make/defines.mk
+
 SOURCE= fence_vixel.pl
 TARGET= fence_vixel
 
-top_srcdir=../..
-include ${top_srcdir}/make/defines.mk
-
 all: $(TARGET)
 
 $(TARGET): $(SOURCE)
 	: > $(TARGET)
 	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(SOURCE) >> $(TARGET)
 	echo "\$$FENCE_RELEASE_NAME=\"${RELEASE}\";" >> $(TARGET)
-	${top_srcdir}/scripts/define2var ${top_srcdir}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
+	${DEF2VAR} ${BUILDDIR}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
 	echo "\$$BUILD_DATE=\"(built `date`)\";" >> $(TARGET)
 	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(SOURCE) >> $(TARGET)
 	chmod +x $(TARGET)
@@ -34,6 +33,9 @@
 	fi
 	install -m755 ${TARGET} ${sbindir}
 
+uninstall:
+	${UNINSTALL} ${TARGET} ${sbindir}
+
 clean:
 	rm -f $(TARGET)
 
fence/agents/wti/Makefile +6 -4
@@ -11,19 +11,18 @@
 ###############################################################################
 ###############################################################################
 
+include ../../../make/defines.mk
+
 SOURCE= fence_wti.pl
 TARGET= fence_wti
 
-top_srcdir=../..
-include ${top_srcdir}/make/defines.mk
-
 all: $(TARGET)
 
 $(TARGET): $(SOURCE)
 	: > $(TARGET)
 	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(SOURCE) >> $(TARGET)
 	echo "\$$FENCE_RELEASE_NAME=\"${RELEASE}\";" >> $(TARGET)
-	${top_srcdir}/scripts/define2var ${top_srcdir}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
+	${DEF2VAR} ${BUILDDIR}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
 	echo "\$$BUILD_DATE=\"(built `date`)\";" >> $(TARGET)
 	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(SOURCE) >> $(TARGET)
 	chmod +x $(TARGET)
@@ -34,6 +33,9 @@
 	fi
 	install -m755 ${TARGET} ${sbindir}
 
+uninstall:
+	${UNINSTALL} ${TARGET} ${sbindir}
+
 clean:
 	rm -f $(TARGET)
 
fence/agents/xvm/Makefile +34 -24

80 lines not on this page · raw message

fence/agents/xvm/vm_states.c +2 -2
@@ -27,8 +27,8 @@
 #include <stdlib.h>
 #include <sys/time.h>
 #include <pthread.h>
-#include <saAis.h>
-#include <saCkpt.h>
+#include <openais/saAis.h>
+#include <openais/saCkpt.h>
 #include <unistd.h>
 #include <stdio.h>
 #include <assert.h>
fence/fence_node/Makefile +19 -18
@@ -11,41 +11,42 @@
 ###############################################################################
 ###############################################################################
 
+include ../../make/defines.mk
+
 TARGET = fence_node
 
-top_srcdir=..
-include ${top_srcdir}/make/defines.mk
-UNINSTALL=${top_srcdir}/make/uninstall.pl
+OBJS=	../fenced/agent.o \
+	fence_node.o
+
+CFLAGS += -g -D_FILE_OFFSET_BITS=64 -DFENCE_RELEASE_NAME=\"${RELEASE}\"
 
 ifeq ($(DEBUG),y)
-CFLAGS+= -O2 -D_FILE_OFFSET_BITS=64 -DDEBUG -g -DFENCE_RELEASE_NAME=\"${RELEASE}\"
+CFLAGS += -O0 -DDEBUG -g
 else
-CFLAGS+= -O2 -D_FILE_OFFSET_BITS=64 -DFENCE_RELEASE_NAME=\"${RELEASE}\"
+CFLAGS += -O2
 endif
 
-INCLUDE = -I${top_srcdir}/include -I${ccsincdir} -I${incdir} -I${top_srcdir}/config -I${top_srcdir}/../cman/lib
+CFLAGS += -I${ccsincdir} -I${cmanincdir} -I${incdir}
+CFLAGS += -I../include
 
-LDFLAGS+= -L${ccslibdir} -L${libdir} -L${top_srcdir}/../cman/lib
-LOADLIBES+= -lccs -lcman
-
-FENCE_NODE_SRC = \
-	agent.c \
-	fence_node.c
+LDFLAGS += -L${ccslibdir} -L${cmanlibdir} -lccs -lcman
 
 all: ${TARGET}
 
-fence_node: ${FENCE_NODE_SRC:.c=.o}
-	${CC} ${CFLAGS} ${INCLUDE} ${FENCE_NODE_SRC:.c=.o} ${LDFLAGS} ${LOADLIBES} ${LDLIBS} -o $@
+${TARGET}: ${OBJS}
+	$(CC) -o $@ $^ $(LDFLAGS)
 
-agent.c:
-	ln -s ${top_srcdir}/fenced/agent.c .
+%.o: %.c
+	$(CC) $(CFLAGS) -c -o $@ $^
 
 install: all
 	if [ ! -d ${sbindir} ]; then \
 		install -d ${sbindir}; \
 	fi
-	strip ${TARGET}
 	install -m755 ${TARGET} ${sbindir}
 
+uninstall:
+	${UNINSTALL} ${TARGET} ${sbindir}
+
 clean:
-	rm -rf *~ *.o ${TARGET} agent.c
+	rm -rf *~ *.o ${TARGET}
fence/fence_tool/Makefile +19 -18
@@ -11,41 +11,42 @@
 ###############################################################################
 ###############################################################################
 
+include ../../make/defines.mk
+
 TARGET = fence_tool
 
-top_srcdir=..
-include ${top_srcdir}/make/defines.mk
-UNINSTALL=${top_srcdir}/make/uninstall.pl
+OBJS= ../fenced/agent.o \
+	fence_tool.o
+
+CFLAGS += -I${ccsincdir} -I${cmanincdir} -I${incdir}
+CFLAGS += -I../include -I../../group/lib
+CFLAGS += -D_FILE_OFFSET_BITS=64 -DFENCE_RELEASE_NAME=\"${RELEASE}\"
 
 ifeq ($(DEBUG),y)
-CFLAGS+= -O2 -D_FILE_OFFSET_BITS=64 -DDEBUG -g -DFENCE_RELEASE_NAME=\"${RELEASE}\"
+CFLAGS += -O0 -g
 else
-CFLAGS+= -O2 -D_FILE_OFFSET_BITS=64 -DFENCE_RELEASE_NAME=\"${RELEASE}\"
+CFLAGS += -O2
 endif
 
-INCLUDE = -I${top_srcdir}/include -I${ccsincdir} -I${cmanincdir} -I${incdir} -I${top_srcdir}/config -I${top_srcdir}/../group/lib
-
-LDFLAGS+= -L${ccslibdir} -L${libdir} -L${top_srcdir}/../cman/lib -L${top_srcdir}/../group/lib
-LOADLIBES+= -lccs -lcman -lgroup
-
-FENCE_TOOL_SRC = \
-	agent.c \
-	fence_tool.c
+LDFLAGS += -L${ccslibdir} -L${cmanlibdir} -lccs -lcman
+LDFLAGS += -L../../group/lib -lgroup
 
 all: ${TARGET}
 
-fence_tool: ${FENCE_TOOL_SRC:.c=.o} ${top_srcdir}/../group/lib/libgroup.a
-	${CC} ${CFLAGS} ${INCLUDE} ${FENCE_TOOL_SRC:.c=.o} ${LDFLAGS} ${LOADLIBES} ${LDLIBS} -o $@
+${TARGET}: ${OBJS}
+	$(CC) -o $@ $^ $(LDFLAGS)
 
-agent.c:
-	ln -s ${top_srcdir}/fenced/agent.c .
+%.o: %.c
+	$(CC) $(CFLAGS) -c -o $@ $^
 
 install: all
 	if [ ! -d ${sbindir} ]; then \
 		install -d ${sbindir}; \
 	fi
-	strip ${TARGET}
 	install -m755 ${TARGET} ${sbindir}
 
+uninstall:
+	${UNINSTALL} ${TARGET} ${sbindir}
+
 clean:
 	rm -rf *~ *.o ${TARGET} agent.c
fence/fenced/Makefile +18 -32

72 lines not on this page · raw message

fence/man/Makefile +4 -4
@@ -11,6 +11,8 @@
 ###############################################################################
 ###############################################################################
 
+include ../../make/defines.mk
+
 TARGET8= \
 	fence.8 \
 	fence_ack_manual.8 \
@@ -35,11 +37,9 @@
 	fence_xvmd.8 \
 	fenced.8
 
-UNINSTALL=${top_srcdir}/scripts/uninstall.pl
-
-top_srcdir=..
+all:
 
-include ${top_srcdir}/make/defines.mk
+clean:
 
 install:
 	install -d ${mandir}/man8
gfs/Makefile +17 -53

76 lines not on this page · raw message

gfs/gfs_debug/Makefile +20 -29

67 lines not on this page · raw message

gfs/gfs_edit/Makefile +18 -25

59 lines not on this page · raw message

gfs/gfs_fsck/Makefile +14 -16
@@ -10,16 +10,10 @@
 ###############################################################################
 ###############################################################################
 
-top_srcdir= ..
- 
-include ${top_srcdir}/make/defines.mk
+include ../../make/defines.mk
 
 TARGET= gfs_fsck
 
-INCLUDE= -I${top_srcdir}/include -I${top_srcdir}/config
-
-.PHONY: all clean
-
 sources = main.c initialize.c pass1.c pass1b.c pass1c.c \
 	  pass2.c pass3.c pass4.c pass5.c \
 	  block_list.c super.c bio.c ondisk.c file.c rgrp.c fs_bits.c util.c \
@@ -27,22 +21,24 @@
 	  inode_hash.c bitmap.c lost_n_found.c inode.c link.c metawalk.c \
 	  eattr.c
 
-CFLAGS+=-D_FILE_OFFSET_BITS=64 -DHELPER_PROGRAM -DGFS_RELEASE_NAME=\"${RELEASE}\" -Wall -O2
+CFLAGS += -D_FILE_OFFSET_BITS=64 -DHELPER_PROGRAM -DGFS_RELEASE_NAME=\"${RELEASE}\"
+CFLAGS += -MMD -O2
+CFLAGS += -I../include
 
 all: ${TARGET}
 
-gfs_fsck: $(sources:.c=.o)
-	$(CC) $(CFLAGS) $^ -o $@
+${TARGET}: $(sources:.c=.o)
+	$(CC) -o $@ $^ $(LDFLAGS)
 
 %.o: %.c
-	$(CC) -MMD -c $(INCLUDES) $(CFLAGS) $< -o $@
-
+	$(CC) $(CFLAGS) -c -o $@ $^
 
 test_block_list: block_list.o bitmap.o log.o test_block_list.o
-	$(CC) $(CFLAGS) $^ -o $@
+	$(CC) -o $@ $^ $(LDFLAGS)
 
 test_bitmap: bitmap.o test_bitmap.o log.o
-	$(CC) $(CFLAGS) $^ -o $@
+	$(CC) -o $@ $^ $(LDFLAGS)
+
 clean:
 	@rm -f *.o *~ *.d gfs_fsck
 
@@ -51,7 +47,10 @@
 		install -d ${sbindir}; \
 	fi
 	install -m755 ${TARGET} ${sbindir}
-	(cd ${sbindir}; ln -f gfs_fsck fsck.gfs)
+	(cd ${sbindir}; ln -sf ${TARGET} fsck.gfs)
+
+uninstall:
+	${UNINSTALL} ${TARGET} fsck.gfs ${sbindir}
 
 distclean: clean
 	@rm -f cscope.* test_inode_list *.orig *.rej test_block_list test_bitmap
@@ -61,5 +60,4 @@
 	 --keyword=log_notice --keyword=log_warn --keyword=log_err --keyword=log_crit \
 	 --keyword=log_debug --keyword=log_err --keyword=log_print -d - $(sources) > gfs_fsck.pot	
 
-
 -include $(sources:.c=.d)
gfs/gfs_grow/Makefile +15 -22
@@ -11,36 +11,26 @@
 ###############################################################################
 ###############################################################################
 
-top_srcdir=..
-include ${top_srcdir}/make/defines.mk
+include ../../make/defines.mk
 
 TARGET= gfs_grow
 
-SOURCE=	main.c \
-	ondisk.c
+OBJS= main.o \
+      ondisk.o
 
-CFLAGS+= -DHELPER_PROGRAM -D_FILE_OFFSET_BITS=64 \
-	-DGFS_RELEASE_NAME=\"${RELEASE}\"
+CFLAGS += -DHELPER_PROGRAM -D_FILE_OFFSET_BITS=64 -DGFS_RELEASE_NAME=\"${RELEASE}\"
+CFLAGS += -I${gfskincdir} -I${incdir}
+CFLAGS += -I../include -I../libgfs
 
-INCLUDE= -I${top_srcdir}/include -I${top_srcdir}/config -I${top_srcdir}/libgfs -I${gfskincdir} -I${incdir}
-
-ifneq (${KERNEL_SRC}, )
-# Use the kernel tree if patched, otherwise, look where cluster headers
-#  should be installed
-INCLUDE += $(shell if [ -e ${KERNEL_SRC}/include/linux/gfs_ondisk.h ]; then \
-		echo '-I${KERNEL_SRC}/include'; else \
-		echo '-I${incdir}'; fi)
-else
-INCLUDE += -I${incdir}
-endif
-
-LDFLAGS+= -L${libdir} -L${top_srcdir}/libgfs
-LOADLIBS+= -lgfs
+LDFLAGS += -L../libgfs -lgfs
 
 all: ${TARGET}
 
-gfs_grow: ${top_srcdir}/libgfs/libgfs.a
-	${CC} ${CFLAGS} ${INCLUDE} main.c ondisk.c ${LDFLAGS} ${LOADLIBS} -o $@
+${TARGET}: ${OBJS}
+	$(CC) -o $@ $^ $(LDFLAGS)
+
+%.o: %.c
+	$(CC) $(CFLAGS) -c -o $@ $^
 
 install: all
 	if [ ! -d ${sbindir} ]; then \
@@ -48,5 +38,8 @@
 	fi
 	install -m755 ${TARGET} ${sbindir}
 
+uninstall:
+	${UNINSTALL} ${TARGET} ${sbindir}
+
 clean:
 	rm -f *.o ${TARGET}
gfs/gfs_jadd/Makefile +15 -23
@@ -11,37 +11,26 @@
 ###############################################################################
 ###############################################################################
 
-top_srcdir=..
-include ${top_srcdir}/make/defines.mk
+include ../../make/defines.mk
 
 TARGET= gfs_jadd
 
-SOURCE=	main.c \
-	ondisk.c
+OBJS= main.o \
+      ondisk.o
 
-CFLAGS+= -DHELPER_PROGRAM -D_FILE_OFFSET_BITS=64 \
-	-DGFS_RELEASE_NAME=\"${RELEASE}\"
+CFLAGS += -DHELPER_PROGRAM -D_FILE_OFFSET_BITS=64 -DGFS_RELEASE_NAME=\"${RELEASE}\"
+CFLAGS += -I${gfskincdir} -I${incdir}
+CFLAGS += -I../include -I../libgfs
 
-INCLUDE= -I${top_srcdir}/include -I${top_srcdir}/config -I${top_srcdir}/libgfs\
-	-I${gfskincdir} -I${incdir}
-
-ifneq (${KERNEL_SRC}, )
-# Use the kernel tree if patched, otherwise, look where cluster headers
-#  should be installed
-INCLUDE += $(shell if [ -e ${KERNEL_SRC}/include/linux/gfs_ondisk.h ]; then \
-		echo '-I${KERNEL_SRC}/include'; else \
-		echo '-I${incdir}'; fi)
-else
-INCLUDE += -I${incdir}
-endif
-
-LDFLAGS+= -L${libdir} -L${top_srcdir}/libgfs
-LOADLIBES+= -lgfs
+LDFLAGS += -L../libgfs -lgfs
 
 all: ${TARGET}
 
-gfs_jadd: ${top_srcdir}/libgfs/libgfs.a
-	${CC} ${CFLAGS} ${INCLUDE} ${LDFLAGS} ${SOURCE} ${LOADLIBES} ${LDLIBS} -o $@
+${TARGET}: ${OBJS}
+	$(CC) -o $@ $^ $(LDFLAGS)
+
+%.o: %.c
+	$(CC) $(CFLAGS) -c -o $@ $^
 
 install: all
 	if [ ! -d ${sbindir} ]; then \
@@ -49,6 +38,9 @@
 	fi
 	install -m755 ${TARGET} ${sbindir}
 
+uninstall:
+	${UNINSTALL} ${TARGET} ${sbindir}
+
 clean:
 	rm -f *.o ${TARGET}
 
gfs/gfs_mkfs/Makefile +23 -29

71 lines not on this page · raw message

gfs/gfs_quota/Makefile +20 -25

63 lines not on this page · raw message

gfs/gfs_quota/layout.c +2 -2
@@ -25,8 +25,8 @@
 #include <errno.h>
 
 #define __user
-#include <linux/gfs_ioctl.h>
-#include <linux/gfs_ondisk.h>
+#include "gfs_ioctl.h"
+#include "gfs_ondisk.h"
 
 #include "osi_list.h"
 #include "linux_endian.h"
gfs/gfs_tool/Makefile +24 -28

70 lines not on this page · raw message

gfs/init.d/Makefile +5 -7
@@ -10,19 +10,17 @@
 ###############################################################################
 ###############################################################################
 
-TARGET= gfs
-
-UNINSTALL=${top_srcdir}/scripts/uninstall.pl
+include ../../make/defines.mk
 
-top_srcdir=..
+TARGET= gfs
[… more lines in the raw message]

Lines of this file are not shown. View the raw message.

gfs/libgfs/Makefile +15 -17

Lines of this file are not shown. View the raw message.

gfs/man/Makefile +4 -5

Lines of this file are not shown. View the raw message.

gfs-kernel/src/gfs/Makefile +1 -28

Lines of this file are not shown. View the raw message.

gfs2/Makefile +8 -50

58 lines not on this page · raw message

gfs2/convert/Makefile +15 -10

Lines of this file are not shown. View the raw message.

gfs2/edit/Makefile +21 -25

46 lines not on this page · raw message

gfs2/fsck/Makefile +19 -19

Lines of this file are not shown. View the raw message.

gfs2/init.d/Makefile +6 -8

Lines of this file are not shown. View the raw message.

gfs2/libgfs2/Makefile +31 -22

53 lines not on this page · raw message

gfs2/man/Makefile +4 -5

Lines of this file are not shown. View the raw message.

gfs2/mkfs/Makefile +26 -24

50 lines not on this page · raw message

gfs2/mount/Makefile +21 -44

65 lines not on this page · raw message

gfs2/quota/Makefile +19 -27

46 lines not on this page · raw message

gfs2/tool/Makefile +24 -26

50 lines not on this page · raw message

gnbd/Makefile +8 -22

Lines of this file are not shown. View the raw message.

gnbd/client/Makefile +28 -26

54 lines not on this page · raw message

gnbd/man/Makefile +3 -7

Lines of this file are not shown. View the raw message.

gnbd/server/Makefile +32 -26

58 lines not on this page · raw message

gnbd/tools/Makefile +8 -12

Lines of this file are not shown. View the raw message.

gnbd/tools/fence_gnbd/Makefile +13 -12

Lines of this file are not shown. View the raw message.

gnbd/tools/gnbd_export/Makefile +21 -18

Lines of this file are not shown. View the raw message.

gnbd/tools/gnbd_export/gnbd_export.c +1 -2

Lines of this file are not shown. View the raw message.

gnbd/tools/gnbd_import/Makefile +20 -25

45 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

/cvs/cluster/cluster/gnbd/utils/Makefile,v --> standard output revision 1.1

- renamed from gnbd/utils/Makefile +23 -0

Lines of this file are not shown. View the raw message.

gnbd-kernel/src/Makefile +7 -34

41 lines not on this page · raw message

group/Makefile +6 -22

Lines of this file are not shown. View the raw message.

group/daemon/Makefile +14 -23

Lines of this file are not shown. View the raw message.

group/dlm_controld/Makefile +16 -31

47 lines not on this page · raw message

group/gfs_controld/Makefile +18 -39

57 lines not on this page · raw message

group/lib/Makefile +10 -14

Lines of this file are not shown. View the raw message.

group/lib/libgroup.c +1 -0

Lines of this file are not shown. View the raw message.

group/tool/Makefile +15 -11

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

/cvs/cluster/cluster/make/defines.mk.input,v --> standard output revision 1.1

- renamed from make/defines.mk.input +66 -0

66 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

/cvs/cluster/cluster/make/release.mk.input,v --> standard output revision 1.1

- renamed from make/release.mk.input +15 -0

Lines of this file are not shown. View the raw message.

rgmanager/Makefile +8 -16

Lines of this file are not shown. View the raw message.

rgmanager/init.d/Makefile +4 -6

Lines of this file are not shown. View the raw message.

rgmanager/man/Makefile +8 -3

Lines of this file are not shown. View the raw message.

rgmanager/src/Makefile +8 -27

Lines of this file are not shown. View the raw message.

rgmanager/src/clulib/Makefile +28 -19

47 lines not on this page · raw message

rgmanager/src/clulib/clulog.c +2 -3

Lines of this file are not shown. View the raw message.

rgmanager/src/daemons/Makefile +82 -46

128 lines not on this page · raw message

rgmanager/src/resources/Makefile +2 -8

Lines of this file are not shown. View the raw message.

rgmanager/src/utils/Makefile +17 -35

52 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

/cvs/cluster/cluster/scripts/define2var,v --> standard output revision 1.1

- renamed from scripts/define2var +71 -0

71 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

/cvs/cluster/cluster/scripts/uninstall.pl,v --> standard output revision 1.1

- renamed from scripts/uninstall.pl +84 -0

84 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Part of the diff is not shown here. View the raw message.