<commit_before>OUT=stutter

HTTP_PARSER_OBJS=core/http/joyent/http_parser.o
HANDLER_OBJS=core/handlers/base.o core/handlers/hello.o core/handlers/simple_proxy.o core/handlers/file.o
HTTP_OBJS=core/http/connection.o core/http/request.o core/http/reply.o core/http/parser.o core/http/message.o core/http/body.o core/http/proxy.o
CORE_OBJS=core/main.o core/coroutine.o core/server.o core/pool.o core/log.o
OBJS=$(CORE_OBJS) $(HANDLER_OBJS) $(HTTP_PARSER_OBJS) $(HTTP_OBJS)
CXXFLAGS=-O0 -ggdb -Wall -Wextra -I.
LDFLAGS=-levent

all: $(OUT)

$(OUT): $(OBJS)
	$(CXX) -o $(OUT) $(OBJS) $(LDFLAGS)

%.o: %.cpp %.h
	$(CXX) $(CXXFLAGS) -o $@ -c $<

%.o: %.cpp
	$(CXX) $(CXXFLAGS) -o $@ -c $<

%.o: %.c
	$(CXX) $(CXXFLAGS) -o $@ -c $<

clean:
	rm -f $(OUT) $(OBJS)<commit_msg>Build as shared and static libraries<commit_after>LIB=libstutter.so
ARCHIVE=libstutter.a

HTTP_PARSER_OBJS=core/http/joyent/http_parser.o
HANDLER_OBJS=core/handlers/base.o core/handlers/hello.o core/handlers/simple_proxy.o core/handlers/file.o
HTTP_OBJS=core/http/connection.o core/http/request.o core/http/reply.o core/http/parser.o core/http/message.o core/http/body.o core/http/proxy.o
CORE_OBJS=core/coroutine.o core/server.o core/pool.o core/log.o
OBJS=$(CORE_OBJS) $(HANDLER_OBJS) $(HTTP_PARSER_OBJS) $(HTTP_OBJS)
CXXFLAGS=-O0 -ggdb -Wall -Wextra -I. -fPIC
LDFLAGS=-shared

all: $(LIB) $(ARCHIVE)

$(LIB): $(OBJS)
	$(CXX) -o $(LIB) $(OBJS) $(LDFLAGS)

$(ARCHIVE): $(OBJS)
	ar rcs $(ARCHIVE) $(OBJS)

%.o: %.cpp %.h
	$(CXX) $(CXXFLAGS) -o $@ -c $<

%.o: %.cpp
	$(CXX) $(CXXFLAGS) -o $@ -c $<

%.o: %.c
	$(CXX) $(CXXFLAGS) -o $@ -c $<

clean:
	rm -f $(LIB) $(ARCHIVE) $(OBJS)
{'fraction_non_alphanumeric': 0.20985401459854014, 'fraction_numerical': 0.0012165450121654502, 'mean_word_length': 4.272435897435898, 'pattern_counts': {'":': 0, '<': 9, '<?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': '7597447', 'n_tokens_mistral': 747, 'n_tokens_neox': 725, 'n_words': 135}