<commit_before>include ../../make/defines.mk

ifdef enable_pacemaker
TARGET = dlm_controld.pcmk
SBINDIRT = dlm_controld.pcmk
else
TARGET = dlm_controld
SBINDIRT = dlm_controld
endif

all: depends ${TARGET}

include $(OBJDIR)/make/cobj.mk
include $(OBJDIR)/make/clean.mk
include $(OBJDIR)/make/install.mk
include $(OBJDIR)/make/uninstall.mk

OBJS=	action.o \
	cpg.o \
	crc.o \
	deadlock.o \
	main.o \
	netlink.o \
	plock.o \
	group.o

ifdef enable_pacemaker
OBJS +=	pacemaker.o
else
OBJS +=	config.o \
	member_cman.o \
	logging.o
endif

CFLAGS += -I${ccsincdir} -I${cmanincdir} -I${logtincdir} 
CFLAGS += -I${dlmincdir} -I${dlmcontrolincdir}
CFLAGS += -I${corosyncincdir} -I${openaisincdir}
CFLAGS += -I$(SRCDIR)/fence/libfenced/
CFLAGS += -I${KERNEL_SRC}/include/
CFLAGS += -I$(S)/../lib/ -I$(S)/../include/
ifdef enable_pacemaker
CFLAGS += -I${incdir}/heartbeat -I${incdir}/pacemaker
CFLAGS += `pkg-config glib-2.0 --cflags`
CFLAGS += `xml2-config --cflags`
endif
CFLAGS += -I${incdir}

LDFLAGS += -L${dlmlibdir} -ldlm 
LDFLAGS += -L${logtlibdir} -llogthread
LDFLAGS += -L${openaislibdir} -lSaCkpt
LDFLAGS += -L${corosynclibdir} -lcpg -llogsys -lpthread
LDFLAGS += -L../lib -lgroup
LDFLAGS += -L${libdir}

LDDEPS += ../lib/libgroup.a

PCMK_LDFLAGS += -lcib -lcrmcommon -lcrmcluster -ltotem_pg
PCMK_LDFLAGS += `pkg-config glib-2.0 --libs`
PCMK_LDFLAGS += `xml2-config --libs`

CMAN_LDFLAGS += -L${ccslibdir} -L${cmanlibdir} -lccs -lcman
CMAN_LDFLAGS += -L../../fence/libfenced/ -lfenced
CMAN_LDDEPS += ../../fence/libfenced/libfenced.a

dlm_controld: ${OBJS} ${LDDEPS} ${CMAN_LDDEPS}
	$(CC) -o $@ $^ $(LDFLAGS) $(CMAN_LDFLAGS)

dlm_controld.pcmk: ${OBJS} ${LDDEPS} ${PCMK_LDDEPS}<commit_msg>dlm_controld: stop linking against logsys<commit_after>include ../../make/defines.mk

ifdef enable_pacemaker
TARGET = dlm_controld.pcmk
SBINDIRT = dlm_controld.pcmk
else
TARGET = dlm_controld
SBINDIRT = dlm_controld
endif

all: depends ${TARGET}

include $(OBJDIR)/make/cobj.mk
include $(OBJDIR)/make/clean.mk
include $(OBJDIR)/make/install.mk
include $(OBJDIR)/make/uninstall.mk

OBJS=	action.o \
	cpg.o \
	crc.o \
	deadlock.o \
	main.o \
	netlink.o \
	plock.o \
	group.o

ifdef enable_pacemaker
OBJS +=	pacemaker.o
else
OBJS +=	config.o \
	member_cman.o \
	logging.o
endif

CFLAGS += -I${ccsincdir} -I${cmanincdir} -I${logtincdir} 
CFLAGS += -I${dlmincdir} -I${dlmcontrolincdir}
CFLAGS += -I${corosyncincdir} -I${openaisincdir}
CFLAGS += -I$(SRCDIR)/fence/libfenced/
CFLAGS += -I${KERNEL_SRC}/include/
CFLAGS += -I$(S)/../lib/ -I$(S)/../include/
ifdef enable_pacemaker
CFLAGS += -I${incdir}/heartbeat -I${incdir}/pacemaker
CFLAGS += `pkg-config glib-2.0 --cflags`
CFLAGS += `xml2-config --cflags`
endif
CFLAGS += -I${incdir}

LDFLAGS += -L${dlmlibdir} -ldlm 
LDFLAGS += -L${logtlibdir} -llogthread
LDFLAGS += -L${openaislibdir} -lSaCkpt
LDFLAGS += -L${corosynclibdir} -lcpg 
LDFLAGS += -L../lib -lgroup
LDFLAGS += -L${libdir}

LDDEPS += ../lib/libgroup.a

PCMK_LDFLAGS += -lcib -lcrmcommon -lcrmcluster -ltotem_pg
PCMK_LDFLAGS += `pkg-config glib-2.0 --libs`
PCMK_LDFLAGS += `xml2-config --libs`

CMAN_LDFLAGS += -L${ccslibdir} -L${cmanlibdir} -lccs -lcman
CMAN_LDFLAGS += -L../../fence/libfenced/ -lfenced
CMAN_LDDEPS += ../../fence/libfenced/libfenced.a

dlm_controld: ${OBJS} ${LDDEPS} ${CMAN_LDDEPS}
	$(CC) -o $@ $^ $(LDFLAGS) $(CMAN_LDFLAGS)

dlm_controld.pcmk: ${OBJS} ${LDDEPS} ${PCMK_LDDEPS}
{'fraction_non_alphanumeric': 0.1872051886792453, 'fraction_numerical': 0.003537735849056604, 'mean_word_length': 4.064179104477612, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1433527', 'n_tokens_mistral': 1523, 'n_tokens_neox': 1463, 'n_words': 263}