<commit_before># Copyright <NAME>, SwampBits LLC 2014
# BSD License

CC = g++
CC_OPTS = -c -Wall -shared -fPIC -O2 -pthread -I../../chaudiere/src
LINK_CMD = g++
# remove -ldl for non-linux
LINK_LIBS = -lpthread -ldl

EXE_NAME = misere
SO_NAME = misere.so

OBJS =  HttpClient.o \
HTTP.o \
HttpException.o \
HttpRequest.o \
HttpRequestHandler.o \
HttpResponse.o \
HttpServer.o \
HttpSocketServiceHandler.o \
HttpTransaction.o \
AbstractHandler.o \
EchoHandler.o \
GMTDateTimeHandler.o \
ServerDateTimeHandler.o \
ServerObjectsDebugging.o \
ServerStatsHandler.o \
ServerStatusHandler.o

MAIN_OBJS = main.o


all : $(SO_NAME) $(EXE_NAME)

clean :
	rm -f *.o
	rm -f $(SO_NAME)
	rm -f $(EXE_NAME)

$(SO_NAME) : $(OBJS)
	$(LINK_CMD) -shared -fPIC $(OBJS) -o $(SO_NAME) $(LINK_LIBS)

$(EXE_NAME) : $(SO_NAME) $(MAIN_OBJS)
	$(CC) -c -Wall -O2 -pthread -I../../chaudiere/src main.cpp -o main.o
	$(LINK_CMD) $(MAIN_OBJS) -o $(EXE_NAME) $(SO_NAME) ../../chaudiere/src/libchaudiere.a $(LINK_LIBS)

%.o : %.cpp
	$(CC) $(CC_OPTS) $< -o $@<commit_msg>produce shared library instead of static<commit_after># Copyright <NAME>, SwampBits LLC 2014
# BSD License

CC = g++
CC_OPTS = -c -Wall -shared -fPIC -O2 -pthread -I../../chaudiere/src
LINK_CMD = g++
# remove -ldl for non-linux
LINK_LIBS = -lpthread -ldl

EXE_NAME = misere
SO_NAME = misere.so

OBJS =  HttpClient.o \
HTTP.o \
HttpException.o \
HttpRequest.o \
HttpRequestHandler.o \
HttpResponse.o \
HttpServer.o \
HttpSocketServiceHandler.o \
HttpTransaction.o \
AbstractHandler.o \
EchoHandler.o \
GMTDateTimeHandler.o \
ServerDateTimeHandler.o \
ServerObjectsDebugging.o \
ServerStatsHandler.o \
ServerStatusHandler.o

MAIN_OBJS = main.o


all : $(SO_NAME) $(EXE_NAME)

clean :
	rm -f *.o
	rm -f $(SO_NAME)
	rm -f $(EXE_NAME)

$(SO_NAME) : $(OBJS)
	$(LINK_CMD) -shared -fPIC $(OBJS) -o $(SO_NAME) $(LINK_LIBS)

$(EXE_NAME) : $(SO_NAME) $(MAIN_OBJS)
	$(CC) -c -Wall -O2 -pthread -I../../chaudiere/src main.cpp -o main.o
	$(LINK_CMD) $(MAIN_OBJS) -o $(EXE_NAME) $(SO_NAME) ../../chaudiere/src/chaudiere.so $(LINK_LIBS)

%.o : %.cpp
	$(CC) $(CC_OPTS) $< -o $@
{'fraction_non_alphanumeric': 0.1737470167064439, 'fraction_numerical': 0.005727923627684964, 'mean_word_length': 3.4786324786324787, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1719243', 'n_tokens_mistral': 888, 'n_tokens_neox': 873, 'n_words': 197}