<commit_before>###############################################################################
###############################################################################
##
##  Copyright (C) 2004-2006 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=..
UNINSTALL=${top_srcdir}/scripts/uninstall.pl

include ${top_srcdir}/make/defines.mk

CFLAGS+= -fPIC -I${ccsincdir} -I${incdir} -I${top_srcdir}/config \
	-DCMAN_RELEASE_NAME=\"${RELEASE}\" -I../lib -DOPENAIS_EXTERNAL_SERVICE

ifeq ($(DEBUG),y)
CFLAGS+= -O0 -g -DDEBUG
else
CFLAGS+= -O2
endif

TARGET=service_cman.lcrso
CMAN_OBJS=daemon.o config.o logging.o ais.o commands.o barrier.o cmanccs.o

all:  ${TARGET}

copytobin: all
	cp ${TARGET} ${top_srcdir}/bin

service_cman.lcrso: ${CMAN_OBJS}
	$(CC) $(CFLAGS) -shared -Wl,-soname,service_cman.lcrso -o $@ ${CMAN_OBJS} -L../lib -L${ccslibdir} -lccs

daemon.o: daemon.c list.h cnxman-socket.h cnxman-private.h \
  daemon.h logging.h commands.h barrier.h cmanccs.h
	$(CC) $(CFLAGS) -c -o $@ $<

cnxman.o: cnxman.c list.h cnxman-socket.h cnxman-private.h \
  daemon.h barrier.h commands.h logging.h
	$(CC) $(CFLAGS) -c -o $@ $<

config.o: config.c
	$(CC) $(CFLAGS) -c -o $@ $<

cmanccs.o: cmanccs.c cmanccs.h
	$(CC) $(CFLAGS) -c -o $@ $<

barrier.o: barrier.c list.h cnxman-socket.h cnxman-private.h \
  daemon.h logging.h barrier.h
	$(CC) $(CFLAGS) -c -o $@ $<

commands.o: commands.c list.h cnxman-socket.h cnxman-private.h \
  daemon.h barrier.h  logging.h
	$(CC) $(CFLAGS) -c -o $@ $<

logging.o: logging.c list.h cnxman-socket.h cnxman-private.h 
	$(CC) $(CFLAGS) -c -o $@ $<

install: 
	install -s service_cman.lcrso ${libexecdir}/lcrso

uninstall:
	rm -f ${libexecdir}/lcrso/service_cman.lcrso

clean:
	rm -f *.o service_cman.lcrso

reallyclean: clean<commit_msg>Make sure we ${libexecdir}/lcrso - packagers need it.<commit_after>###############################################################################
###############################################################################
##
##  Copyright (C) 2004-2006 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=..
UNINSTALL=${top_srcdir}/scripts/uninstall.pl

include ${top_srcdir}/make/defines.mk

CFLAGS+= -fPIC -I${ccsincdir} -I${incdir} -I${top_srcdir}/config \
	-DCMAN_RELEASE_NAME=\"${RELEASE}\" -I../lib -DOPENAIS_EXTERNAL_SERVICE

ifeq ($(DEBUG),y)
CFLAGS+= -O0 -g -DDEBUG
else
CFLAGS+= -O2
endif

TARGET=service_cman.lcrso
CMAN_OBJS=daemon.o config.o logging.o ais.o commands.o barrier.o cmanccs.o

all:  ${TARGET}

copytobin: all
	cp ${TARGET} ${top_srcdir}/bin

service_cman.lcrso: ${CMAN_OBJS}
	$(CC) $(CFLAGS) -shared -Wl,-soname,service_cman.lcrso -o $@ ${CMAN_OBJS} -L../lib -L${ccslibdir} -lccs

daemon.o: daemon.c list.h cnxman-socket.h cnxman-private.h \
  daemon.h logging.h commands.h barrier.h cmanccs.h
	$(CC) $(CFLAGS) -c -o $@ $<

cnxman.o: cnxman.c list.h cnxman-socket.h cnxman-private.h \
  daemon.h barrier.h commands.h logging.h
	$(CC) $(CFLAGS) -c -o $@ $<

config.o: config.c
	$(CC) $(CFLAGS) -c -o $@ $<

cmanccs.o: cmanccs.c cmanccs.h
	$(CC) $(CFLAGS) -c -o $@ $<

barrier.o: barrier.c list.h cnxman-socket.h cnxman-private.h \
  daemon.h logging.h barrier.h
	$(CC) $(CFLAGS) -c -o $@ $<

commands.o: commands.c list.h cnxman-socket.h cnxman-private.h \
  daemon.h barrier.h  logging.h
	$(CC) $(CFLAGS) -c -o $@ $<

logging.o: logging.c list.h cnxman-socket.h cnxman-private.h 
	$(CC) $(CFLAGS) -c -o $@ $<

install: 
	install -d ${libexecdir}/lcrso
	install -s service_cman.lcrso ${libexecdir}/lcrso

uninstall:
	rm -f ${libexecdir}/lcrso/service_cman.lcrso

clean:
	rm -f *.o service_cman.lcrso

reallyclean: clean
{'fraction_non_alphanumeric': 0.29366913123844735, 'fraction_numerical': 0.005083179297597043, 'mean_word_length': 4.445283018867925, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '3176909', 'n_tokens_mistral': 1687, 'n_tokens_neox': 1626, 'n_words': 360}