<commit_before>CXX = $(CC)
CXXFLAGS = \
	-std=c++11 \
	-Wall \
	-Wextra \
	-pedantic \
	-ffast-math \
	-fno-exceptions \
	-fsanitize=undefined \
	-I. \
	-DDEBUG_GL \
	-O3 \
	$(EXTRAFLAGS)

ENGINE_CXXFLAGS = \
	$(CXXFLAGS) \
	`sdl2-config --cflags`

ENGINE_LDFLAGS = \
	-lm \
	-fsanitize=undefined \
	`sdl2-config --libs`

GAME_SOURCES = \
	game/menu.cpp \
	game/client.cpp \
	game/main.cpp \
	game/edit.cpp

MATH_SOURCES = \
	m_mat4.cpp \
	m_quat.cpp \
	m_vec3.cpp \
	m_plane.cpp

RENDERER_SOURCES = \
	r_billboard.cpp \
	r_common.cpp \
	r_gbuffer.cpp \
	r_model.cpp \
	r_method.cpp \
	r_pipeline.cpp \
	r_geom.cpp \
	r_skybox.cpp \
	r_ssao.cpp \
	r_texture.cpp \
	r_world.cpp \
	r_gui.cpp \
	r_light.cpp \
	r_hoq.cpp \
	r_particles.cpp

UTIL_SOURCES = \
	u_file.cpp \
	u_misc.cpp \
	u_new.cpp \
	u_sha512.cpp \
	u_string.cpp \
	u_zlib.cpp \

ENGINE_SOURCES = \
	engine.cpp \
	kdmap.cpp \
	kdtree.cpp \
	world.cpp \
	mesh.cpp \
	texture.cpp \
	cvar.cpp \
	gui.cpp \
	$(UTIL_SOURCES) \
	$(MATH_SOURCES) \
	$(RENDERER_SOURCES)

GAME_OBJECTS = $(GAME_SOURCES:.cpp=.o) $(ENGINE_SOURCES:.cpp=.o)
GAME_BIN = neothyne
GAME_DIR = game

all: $(GAME_BIN)

$(GAME_BIN): $(GAME_OBJECTS)
	$(CXX) $(GAME_OBJECTS) $(ENGINE_LDFLAGS) -o $@

.cpp.o:
	$(CXX) -MD -c $(ENGINE_CXXFLAGS) $< -o $@
	@cp $*.d $*.P; \
		sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \
			-e '/^$$/ d' -e 's/$$/ :/' < $*.d >> $*.P; \
		rm -f $*.d

clean:
	rm -f $(GAME_OBJECTS) $(GAME_OBJECTS:.o=.P)
	rm -f $(GAME_BIN)

-include *.P
<commit_msg>Restore Makefile options<commit_after>CXX = $(CC)
CXXFLAGS = \
	-std=c++11 \
	-Wall \
	-Wextra \
	-ffast-math \
	-fno-exceptions \
	-fno-rtti \
	-I. \
	-DDEBUG_GL \
	-O3 \
	$(EXTRAFLAGS)

ENGINE_CXXFLAGS = \
	$(CXXFLAGS) \
	`sdl2-config --cflags`

ENGINE_LDFLAGS = \
	-lm \
	`sdl2-config --libs`

GAME_SOURCES = \
	game/menu.cpp \
	game/client.cpp \
	game/main.cpp \
	game/edit.cpp

MATH_SOURCES = \
	m_mat4.cpp \
	m_quat.cpp \
	m_vec3.cpp \
	m_plane.cpp

RENDERER_SOURCES = \
	r_billboard.cpp \
	r_common.cpp \
	r_gbuffer.cpp \
	r_model.cpp \
	r_method.cpp \
	r_pipeline.cpp \
	r_geom.cpp \
	r_skybox.cpp \
	r_ssao.cpp \
	r_texture.cpp \
	r_world.cpp \
	r_gui.cpp \
	r_light.cpp \
	r_hoq.cpp \
	r_particles.cpp

UTIL_SOURCES = \
	u_file.cpp \
	u_misc.cpp \
	u_new.cpp \
	u_sha512.cpp \
	u_string.cpp \
	u_zlib.cpp \

ENGINE_SOURCES = \
	engine.cpp \
	kdmap.cpp \
	kdtree.cpp \
	world.cpp \
	mesh.cpp \
	texture.cpp \
	cvar.cpp \
	gui.cpp \
	$(UTIL_SOURCES) \
	$(MATH_SOURCES) \
	$(RENDERER_SOURCES)

GAME_OBJECTS = $(GAME_SOURCES:.cpp=.o) $(ENGINE_SOURCES:.cpp=.o)
GAME_BIN = neothyne
GAME_DIR = game

all: $(GAME_BIN)

$(GAME_BIN): $(GAME_OBJECTS)
	$(CXX) $(GAME_OBJECTS) $(ENGINE_LDFLAGS) -o $@

.cpp.o:
	$(CXX) -MD -c $(ENGINE_CXXFLAGS) $< -o $@
	@cp $*.d $*.P; \
		sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \
			-e '/^$$/ d' -e 's/$$/ :/' < $*.d >> $*.P; \
		rm -f $*.d

clean:
	rm -f $(GAME_OBJECTS) $(GAME_OBJECTS:.o=.P)
	rm -f $(GAME_BIN)

-include *.P

{'fraction_non_alphanumeric': 0.2057737495803961, 'fraction_numerical': 0.00671366230278617, 'mean_word_length': 2.363431151241535, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2285391', 'n_tokens_mistral': 1658, 'n_tokens_neox': 1549, 'n_words': 236}