head	1.2;
access;
symbols
	perseant-exfatfs-base-20250801:1.2
	perseant-exfatfs-base-20240630:1.2
	perseant-exfatfs:1.2.0.24
	perseant-exfatfs-base:1.2
	cjep_sun2x:1.2.0.22
	cjep_sun2x-base:1.2
	cjep_staticlib_x-base1:1.2
	cjep_staticlib_x:1.2.0.20
	cjep_staticlib_x-base:1.2
	phil-wifi-20200421:1.2
	phil-wifi-20200411:1.2
	phil-wifi-20200406:1.2
	pgoyette-compat-merge-20190127:1.2
	pgoyette-compat-20190127:1.2
	pgoyette-compat-20190118:1.2
	pgoyette-compat-1226:1.2
	pgoyette-compat-1126:1.2
	pgoyette-compat-1020:1.2
	pgoyette-compat-0930:1.2
	pgoyette-compat-0906:1.2
	pgoyette-compat-0728:1.2
	pgoyette-compat-0625:1.2
	pgoyette-compat-0521:1.2
	pgoyette-compat-0502:1.2
	pgoyette-compat-0422:1.2
	pgoyette-compat-0415:1.2
	pgoyette-compat-0407:1.2
	pgoyette-compat-0330:1.2
	pgoyette-compat-0322:1.2
	pgoyette-compat-0315:1.2
	pgoyette-compat:1.2.0.18
	pgoyette-compat-base:1.2
	perseant-stdc-iso10646:1.2.0.16
	perseant-stdc-iso10646-base:1.2
	prg-localcount2-base3:1.2
	prg-localcount2-base2:1.2
	prg-localcount2-base1:1.2
	prg-localcount2:1.2.0.14
	prg-localcount2-base:1.2
	pgoyette-localcount-20170426:1.2
	bouyer-socketcan-base1:1.2
	pgoyette-localcount-20170320:1.2
	bouyer-socketcan:1.2.0.12
	bouyer-socketcan-base:1.2
	pgoyette-localcount-20170107:1.2
	pgoyette-localcount-20161104:1.2
	localcount-20160914:1.2
	pgoyette-localcount-20160806:1.2
	pgoyette-localcount-20160726:1.2
	pgoyette-localcount:1.2.0.10
	pgoyette-localcount-base:1.2
	yamt-pagecache-base9:1.2
	yamt-pagecache-tag8:1.2
	tls-earlyentropy:1.2.0.6
	tls-earlyentropy-base:1.2
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.2
	riastradh-drm2-base3:1.2
	agc-symver:1.2.0.8
	agc-symver-base:1.2
	tls-maxphys-base:1.2
	yamt-pagecache-base8:1.2
	yamt-pagecache-base7:1.2
	yamt-pagecache-base6:1.2
	yamt-pagecache-base5:1.2
	yamt-pagecache-base4:1.2
	yamt-pagecache-base3:1.2
	yamt-pagecache-base2:1.2
	yamt-pagecache:1.2.0.4
	yamt-pagecache-base:1.2
	bouyer-quota2-nbase:1.2
	bouyer-quota2:1.2.0.2
	bouyer-quota2-base:1.2
	jym-xensuspend-base:1.1.1.1
	jym-xensuspend:1.1.1.1.0.2
	jym-xensuspend-nbase:1.1.1.1
	LVM2-02-44:1.1.1.1
	REDHAT:1.1.1;
locks; strict;
comment	@# @;


1.2
date	2009.12.02.00.58.02;	author haad;	state dead;
branches;
next	1.1;

1.1
date	2009.02.18.11.16.31;	author haad;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2009.02.18.11.16.31;	author haad;	state Exp;
branches
	1.1.1.1.2.1;
next	;

1.1.1.1.2.1
date	2009.02.18.11.16.31;	author jym;	state dead;
branches;
next	1.1.1.1.2.2;

1.1.1.1.2.2
date	2009.05.13.18.52.40;	author jym;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Fix cinflicts created by import of latest lvm2tools LVM2-2-02-56.
@
text
@###############################################################################
###############################################################################
##
##  Copyright (C) 2009 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.
##
###############################################################################
###############################################################################

SOURCES = clogd.c cluster.c functions.c link_mon.c local.c logging.c

TARGET = $(shell if [ ! -e /usr/include/linux/dm-clog-tfr.h ]; then \
		echo 'no_clogd_kernel_headers'; \
	elif [ ! -e /usr/include/linux/ext2_fs.h ]; then \
		echo 'no_e2fsprogs_devel'; \
	elif [ ! -e /usr/include/openais/saCkpt.h ]; then \
		echo 'no_openais_devel'; \
	else \
		echo 'clogd'; \
	fi)

ifneq ($(DEBUG), )
CFLAGS += -DDEBUG
endif

ifneq ($(MEMB), )
CFLAGS += -DMEMB
endif

ifneq ($(CKPT), )
CFLAGS += -DCKPT
endif

ifneq ($(RESEND), )
CFLAGS += -DRESEND
endif

CFLAGS += -g

LDFLAGS += $(shell if [ -e /usr/lib64/openais ]; then \
		echo '-L/usr/lib64/openais -L/usr/lib64'; \
	else \
		echo '-L/usr/lib/openais -L/usr/lib'; \
	fi)
LDFLAGS += -lcpg -lSaCkpt -lext2fs

all: ${TARGET}

clogd: ${SOURCES}
	${CC} ${CFLAGS} -o $@@ $^ ${LDFLAGS}

no_clogd_kernel_headers:
	echo "Unable to find clogd kernel headers"
	exit 1

no_e2fsprogs_devel:
	echo "Unable to find ext2fs kernel headers."
	echo "Install 'e2fsprogs-devel'?"
	exit 1

no_openais_devel:
	echo "Unable to find openAIS headers."
	echo "http://sources.redhat.com/cluster/wiki/"
	exit 1

install: clogd
	install -d /usr/sbin
	install clogd /usr/sbin

uninstall:
	rm /usr/sbin/clogd

clean:
	rm -f *.o clogd *~
@


1.1
log
@Initial revision
@
text
@@


1.1.1.1
log
@Import new lvm2tools 2.02.44 version and libdevmapper 1.02.30.
@
text
@@


1.1.1.1.2.1
log
@file Makefile was added on branch jym-xensuspend on 2009-05-13 18:52:40 +0000
@
text
@d1 77
@


1.1.1.1.2.2
log
@Sync with HEAD.

Second commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
@
text
@a0 77
###############################################################################
###############################################################################
##
##  Copyright (C) 2009 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.
##
###############################################################################
###############################################################################

SOURCES = clogd.c cluster.c functions.c link_mon.c local.c logging.c

TARGET = $(shell if [ ! -e /usr/include/linux/dm-clog-tfr.h ]; then \
		echo 'no_clogd_kernel_headers'; \
	elif [ ! -e /usr/include/linux/ext2_fs.h ]; then \
		echo 'no_e2fsprogs_devel'; \
	elif [ ! -e /usr/include/openais/saCkpt.h ]; then \
		echo 'no_openais_devel'; \
	else \
		echo 'clogd'; \
	fi)

ifneq ($(DEBUG), )
CFLAGS += -DDEBUG
endif

ifneq ($(MEMB), )
CFLAGS += -DMEMB
endif

ifneq ($(CKPT), )
CFLAGS += -DCKPT
endif

ifneq ($(RESEND), )
CFLAGS += -DRESEND
endif

CFLAGS += -g

LDFLAGS += $(shell if [ -e /usr/lib64/openais ]; then \
		echo '-L/usr/lib64/openais -L/usr/lib64'; \
	else \
		echo '-L/usr/lib/openais -L/usr/lib'; \
	fi)
LDFLAGS += -lcpg -lSaCkpt -lext2fs

all: ${TARGET}

clogd: ${SOURCES}
	${CC} ${CFLAGS} -o $@@ $^ ${LDFLAGS}

no_clogd_kernel_headers:
	echo "Unable to find clogd kernel headers"
	exit 1

no_e2fsprogs_devel:
	echo "Unable to find ext2fs kernel headers."
	echo "Install 'e2fsprogs-devel'?"
	exit 1

no_openais_devel:
	echo "Unable to find openAIS headers."
	echo "http://sources.redhat.com/cluster/wiki/"
	exit 1

install: clogd
	install -d /usr/sbin
	install clogd /usr/sbin

uninstall:
	rm /usr/sbin/clogd

clean:
	rm -f *.o clogd *~
@


