<commit_before>include ../Makefile.generic

PHYSICS_DEMO=physics_demo

SOURCES=$(wildcard *.cpp) $(wildcard */*.cpp)
OBJECTS=$(patsubst %.cpp,%.o,$(SOURCES))

LIBDIR=lib
INC=../src/include
CXXFLAGS+= -I$(INC)

export LD_LIBRARY_PATH+=:$(LIBDIR)

.PHONY: lib

lib:
	make -C ../src frog
	mkdir -p $(LIBDIR)
	cp ../src/libfrog.so* $(LIBDIR)/

show: generic_show
	@echo "-sources : $(SOURCES)"
	@echo "-objects : $(OBJECTS)"
	@echo "-librairies directory : $(LIBDIR)"
	@echo "-includes : $(INC)"
	@echo "-ld : $(LD_LIBRARY_PATH)"
	@echo "-path : $(PATH)"

$(PHYSICS_DEMO): demo_BasicPhysics.o
	$(CXX) $(CXXFLAGS) -L$(LIBDIR) -o $@ $^ $(LDFLAGS) -lfrog

local_clean:
	rm -f $(PHYSICS_DEMO)
	rm -rf $(LIBDIR)

clean:
	make -C .. clean

run-$(PHYSICS_DEMO): $(PHYSICS_DEMO)
	$(VALGRIND) ./$< 7

-include $(SOURCES:.cpp=.d)
<commit_msg>Do not copy lib files, but only export the good folder.<commit_after>include ../Makefile.generic

PHYSICS_DEMO=physics_demo

SOURCES=$(wildcard *.cpp) $(wildcard */*.cpp)
OBJECTS=$(patsubst %.cpp,%.o,$(SOURCES))

INC=../src/include
CXXFLAGS+= -I$(INC)

LIBDIR=../src
LIBNAME=libfrog.so

export LD_LIBRARY_PATH+=:$(LIBDIR)

.PHONY: lib

lib:
	make -C $(LIBDIR) $(LIBNAME)

show: generic_show
	@echo "-sources : $(SOURCES)"
	@echo "-objects : $(OBJECTS)"
	@echo "-includes : $(INC)"
	@echo "-ld : $(LD_LIBRARY_PATH)"
	@echo "-path : $(PATH)"

$(PHYSICS_DEMO): demo_BasicPhysics.o
	$(CXX) $(CXXFLAGS) -L$(LIBDIR) -o $@ $^ $(LDFLAGS) -lfrog

local_clean:
	rm -f $(PHYSICS_DEMO)

clean:
	make -C .. clean

run-$(PHYSICS_DEMO): $(PHYSICS_DEMO)
	$(VALGRIND) ./$< 7

-include $(SOURCES:.cpp=.d)

{'fraction_non_alphanumeric': 0.2154798761609907, 'fraction_numerical': 0.001238390092879257, 'mean_word_length': 4.3509933774834435, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4065454', 'n_tokens_mistral': 735, 'n_tokens_neox': 675, 'n_words': 146}