<commit_before>CCFLAGS=-Wall -fPIC -g -DOPEN_SOURCE_GEOMETRY -I/usr/include/python2.5

OBJECTS=Construction.o Finite.o kurve.o Matrix.o PythonStuff.o offset.o

SHARED_LIBRARY=../kurve.so

${SHARED_LIBRARY}: ${OBJECTS}
	gcc -shared -fPIC -Wl,-soname,kurve.so.0 -o ${SHARED_LIBRARY} ${OBJECTS} -lstdc++ -lpython2.5

Construction.o: geometry/Construction.cpp
	gcc -c $? ${CCFLAGS} -o $@

Finite.o: geometry/Finite.cpp
	gcc -c $? ${CCFLAGS} -o $@

kurve.o: geometry/kurve.cpp
	gcc -c $? ${CCFLAGS} -o $@

Matrix.o: geometry/Matrix.cpp
	gcc -c $? ${CCFLAGS} -o $@

PythonStuff.o: PythonStuff.cpp
	gcc -c $? ${CCFLAGS} -o $@

offset.o: geometry/offset.cpp
	gcc -c $? ${CCFLAGS} -o $@

clean:
	-rm ${SHARED_LIBRARY} ${OBJECTS}


<commit_msg> - use python-config, install to site-packages, same as libactp and libarea  - add debian subdir<commit_after># Makefile for libkurve

PREFIX	= /usr/local
HOME	= .
CXX     = g++
CC      = gcc
LD      = g++
LDFLAGS = -shared -rdynamic `python-config --ldflags`
LIBS    = -lstdc++ `python-config --libs`
CFLAGS  = -Wall -I/usr/include `python-config --includes` -I./ -g -fPIC -DOPEN_SOURCE_GEOMETRY

LIBNAME	= kurve
LIBOBJS	= Construction.o Finite.o kurve.o Matrix.o PythonStuff.o offset.o
LIBDIR	= .libs/
LIBOUT	= $(LIBDIR)$(LIBNAME).so

all:	$(LIBOUT)

$(LIBOUT): $(LIBOBJS)
	@-mkdirhier $(LIBDIR)
	$(LD) $(LDFLAGS) -fPIC -Wl,-soname,kurve.so.0 $(LIBOBJS) -o $(LIBOUT) $(LIBS)

clean:
	@-rm -f $(LIBOBJS)
	@-rm -f $(LIBOUT)
	@-rmdir $(LIBDIR)

install: $(LIBOUT)
	strip $^
	chmod 644 $^
	install $^ $(DESTDIR)$(PREFIX)/lib/python`python -c "import sys; print sys.version[:3]"`/site-packages/

test:
#	python sample.py

Construction.o: geometry/Construction.cpp
	$(CC) -c $? ${CFLAGS} -o $@

Finite.o: geometry/Finite.cpp
	$(CC) -c $? ${CFLAGS} -o $@

kurve.o: geometry/kurve.cpp
	$(CC) -c $? ${CFLAGS} -o $@

Matrix.o: geometry/Matrix.cpp
	$(CC) -c $? ${CFLAGS} -o $@

PythonStuff.o: PythonStuff.cpp
	$(CC) -c $? ${CFLAGS} -o $@

offset.o: geometry/offset.cpp
	$(CC) -c $? ${CFLAGS} -o $@

{'fraction_non_alphanumeric': 0.1962432031636184, 'fraction_numerical': 0.004943153732081068, 'mean_word_length': 3.497777777777778, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6149547', 'n_tokens_mistral': 926, 'n_tokens_neox': 865, 'n_words': 194}