<commit_before>TARGET1 = ccs_tool

SBINDIRT = $(TARGET1)

include ../../make/defines.mk

ifdef legacy_code
TARGET2 = ccs_test
SBINDIRT += $(TARGET2)
all: depends ${TARGET1} ${TARGET2}
else
all: ${TARGET1}
endif

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

OBJS=	ccs_tool.o \
	update.o \
	editconf.o

CFLAGS += -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
CFLAGS += -I${cmanincdir} `xml2-config --cflags`
CFLAGS += -I${ccslibdir} -I$(S)/../include
CFLAGS += -I$(S)/../libccscompat
CFLAGS += -I${incdir}

LDFLAGS += -L${cmanlibdir} -lcman
LDFLAGS += `xml2-config --libs` -L${libdir}

ifdef legacy_code
LDFLAGS += -L../libccscompat -lccscompat
else
LDFLAGS += -L${ccslibdir} -lccs
endif

${TARGET1}: ${OBJS}
	$(CC) -o $@ $^ $(LDFLAGS)

ifdef legacy_code
${TARGET2}: ${TARGET1}
	ln -sf ${TARGET1} ${TARGET2}

depends:
	$(MAKE) -C ../libccscompat all
endif
<commit_msg>[BUILD] Fix ccs.h include path<commit_after>TARGET1 = ccs_tool

SBINDIRT = $(TARGET1)

include ../../make/defines.mk

ifdef legacy_code
TARGET2 = ccs_test
SBINDIRT += $(TARGET2)
all: depends ${TARGET1} ${TARGET2}
else
all: ${TARGET1}
endif

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

OBJS=	ccs_tool.o \
	update.o \
	editconf.o

CFLAGS += -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
CFLAGS += -I${cmanincdir} `xml2-config --cflags`
CFLAGS += -I${ccsincdir} -I$(S)/../include
CFLAGS += -I$(S)/../libccscompat
CFLAGS += -I${incdir}

LDFLAGS += -L${cmanlibdir} -lcman
LDFLAGS += `xml2-config --libs` -L${libdir}

ifdef legacy_code
LDFLAGS += -L../libccscompat -lccscompat
else
LDFLAGS += -L${ccslibdir} -lccs
endif

${TARGET1}: ${OBJS}
	$(CC) -o $@ $^ $(LDFLAGS)

ifdef legacy_code
${TARGET2}: ${TARGET1}
	ln -sf ${TARGET1} ${TARGET2}

depends:
	$(MAKE) -C ../libccscompat all
endif

{'fraction_non_alphanumeric': 0.19119958093242537, 'fraction_numerical': 0.01676270298585647, 'mean_word_length': 4.305555555555555, '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': '6113322', 'n_tokens_mistral': 810, 'n_tokens_neox': 780, 'n_words': 168}