<commit_before>CC=gcc
PREFIX=/usr/local
INCDIR=$(PREFIX)/include
LIBDIR=$(PREFIX)/lib

# Compile using `make XCFLAGS=-DDEBUG=1` to enable debugging code.
CUSTOM_CFLAGS=-Wall -ggdb3 -O3

SOFLAGS=-fPIC 
#SOFLAGS=

# compile with DEBUG=1 to enable debug code 
SYS_CFLAGS=-std=gnu99 $(SOFLAGS) -I. -pthread -DDEBUG=1

#LIBS=`pkg-config --libs libcrypto`
LIBS=

#LDFLAGS=$(SOFLAGS) -shared -Wl,libcometa.so.0
LDFLAGS=$(SOFLAGS) -shared -Wl,-soname,libcometa.so.0

OBJS=cometa.o

#all: libcometa.so.0.1 
all: libcometa.so.0.1 libcometa.pc

libcometa.so.0.1: $(OBJS)
        $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

libcometa.pc: libcometa.pc.in
        sed -e 's#@LIBDIR@#$(LIBDIR)#g; s#@INCDIR@#$(INCDIR)#g' $^ >$@

clean:
        rm -f *.o libcometa.so.0.1 libcometa.pc

install:
        $(INSTALL) -D -m 0644 cometa.h $(DESTDIR)$(INCDIR)/cometa.h
        $(INSTALL) -D -m 0755 libcometa.so.0.1 $(DESTDIR)$(LIBDIR)/libcometa.so.0.1
        ln -s -f libcometa.so.0.1 $(DESTDIR)$(LIBDIR)/libcometa.so.0
        ln -s -f libcometa.so.0.1 $(DESTDIR)$(LIBDIR)/libcometa.so
        $(INSTALL) -D -m 0644 libcometa.pc $(DESTDIR)$(LIBDIR)/pkgconfig/libcometa.pc
        ldconfig        

-include ../Makefile.lib


<commit_msg>comments added<commit_after>CC=gcc
PREFIX=/usr/local
INCDIR=$(PREFIX)/include
LIBDIR=$(PREFIX)/lib

# Compile using `make XCFLAGS=-DDEBUG=1` to enable debugging code.
CUSTOM_CFLAGS=-Wall -ggdb3 -O3

SOFLAGS=-fPIC 
#SOFLAGS=

# compile with DEBUG=1 to enable debug code 
SYS_CFLAGS=-std=gnu99 $(SOFLAGS) -I. -pthread -DDEBUG=1

#LIBS=`pkg-config --libs libcrypto`
LIBS=

#LDFLAGS=$(SOFLAGS) -shared -Wl,libcometa.so.0
LDFLAGS=$(SOFLAGS) -shared -Wl,-soname,libcometa.so.0

OBJS=cometa.o

#all: libcometa.so.0.1 
all: libcometa.so.0.1 libcometa.pc

libcometa.so.0.1: $(OBJS)
	$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

libcometa.pc: libcometa.pc.in
	sed -e 's#@LIBDIR@#$(LIBDIR)#g; s#@INCDIR@#$(INCDIR)#g' $^ >$@

clean:
	rm -f *.o libcometa.so.0.1 libcometa.pc

install:
	$(INSTALL) -D -m 0644 cometa.h $(DESTDIR)$(INCDIR)/cometa.h
	$(INSTALL) -D -m 0755 libcometa.so.0.1 $(DESTDIR)$(LIBDIR)/libcometa.so.0.1
	ln -s -f libcometa.so.0.1 $(DESTDIR)$(LIBDIR)/libcometa.so.0
	ln -s -f libcometa.so.0.1 $(DESTDIR)$(LIBDIR)/libcometa.so
	$(INSTALL) -D -m 0644 libcometa.pc $(DESTDIR)$(LIBDIR)/pkgconfig/libcometa.pc
	ldconfig        

-include ../Makefile.lib
{'fraction_non_alphanumeric': 0.19039524011899703, 'fraction_numerical': 0.032299192520186995, 'mean_word_length': 3.615686274509804, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4977310', 'n_tokens_mistral': 1092, 'n_tokens_neox': 1041, 'n_words': 191}