<commit_before>NVCC = nvcc
NVCCFLAGS = -pg -m64
LINKFLAGS = -pg -m64

GCC = g++
GCCFLAGS = -Wall -pedantic -pg -m64

IN_DIR = src
OUT_DIR = bin
OUT_OPENGL_DIR = bin/opengl
COBJ = tester.o print_curve.o init_curves.o
COBJ_W = opengl/draw_window.o opengl/draw_spline.o init_curves.o
CUOBJ = spline.obj solve_system.obj
OUT_CUOBJ = $(addprefix $(OUT_DIR)/,$(CUOBJ))
OUT_COBJ = $(addprefix $(OUT_DIR)/,$(COBJ))
OUT_COBJ_W = $(addprefix $(OUT_DIR)/,$(COBJ_W))

all: splinetest windowtest
osx: splinetest windowtest_osx

splinetest: $(OUT_DIR) $(OUT_CUOBJ) $(OUT_COBJ)
	$(NVCC) $(LINKFLAGS) $(OUT_CUOBJ) $(OUT_COBJ) -o splinetest

windowtest: $(OUT_DIR) $(OUT_OPENGL_DIR) $(OUT_CUOBJ) $(OUT_COBJ_W)
	$(NVCC) $(LINKFLAGS) $(OUT_CUOBJ) $(OUT_COBJ_W) -lGL -lGLU -lglut -o windowtest

windowtest_osx: $(OUT_DIR) $(OUT_OPENGL_DIR) $(OUT_CUOBJ) $(OUT_COBJ_W)
	$(NVCC) $(LINKFLAGS) $(OUT_CUOBJ) $(OUT_COBJ_W) -Xlinker -framework,OpenGL,-framework,GLUT -o windowtest

objects: $(OUT_DIR) $(CUOBJ)
	echo

$(OUT_DIR)/%.obj: $(IN_DIR)/%.cu
	$(NVCC) $(NVCCFLAGS) -c $< -o $@

$(OUT_DIR)/%.o: $(IN_DIR)/%.cpp
	$(GCC) $(GCCFLAGS) -c $< -o $@

$(OUT_DIR):
	mkdir $(OUT_DIR)

$(OUT_OPENGL_DIR):<commit_msg>Remove -pg from compiler flags; add windowtest_cpu<commit_after>NVCC = nvcc
NVCCFLAGS = -m64
LINKFLAGS = -m64

GCC = g++
GCCFLAGS = -Wall -pedantic -m64

IN_DIR = src
OUT_DIR = bin
OUT_OPENGL_DIR = bin/opengl
COBJ = tester.o print_curve.o init_curves.o
COBJ_W = opengl/draw_window.o opengl/draw_spline.o init_curves.o
CUOBJ = spline.obj solve_system.obj
CPUOBJ = JacobiMethod.o spline_cpu.o
OUT_CUOBJ = $(addprefix $(OUT_DIR)/,$(CUOBJ))
OUT_COBJ = $(addprefix $(OUT_DIR)/,$(COBJ))
OUT_COBJ_W = $(addprefix $(OUT_DIR)/,$(COBJ_W))
OUT_CPUOBJ = $(addprefix $(OUT_DIR)/,$(CPUOBJ))

all: splinetest windowtest windowtest_cpu
osx: splinetest windowtest_osx

splinetest: $(OUT_DIR) $(OUT_CUOBJ) $(OUT_COBJ)
	$(NVCC) $(LINKFLAGS) $(OUT_CUOBJ) $(OUT_COBJ) -o splinetest

windowtest: $(OUT_DIR) $(OUT_OPENGL_DIR) $(OUT_CUOBJ) $(OUT_COBJ_W)
	$(NVCC) $(LINKFLAGS) $(OUT_CUOBJ) $(OUT_COBJ_W) -lGL -lGLU -lglut -o windowtest

windowtest_osx: $(OUT_DIR) $(OUT_OPENGL_DIR) $(OUT_CUOBJ) $(OUT_COBJ_W)
	$(NVCC) $(LINKFLAGS) $(OUT_CUOBJ) $(OUT_COBJ_W) -Xlinker -framework,OpenGL,-framework,GLUT -o windowtest

windowtest_cpu: $(OUT_DIR) $(OUT_OPENGL_DIR) $(OUT_CPUOBJ) $(OUT_COBJ_W)
	$(GCC) $(LINKFLAGS) $(OUT_CPUOBJ) $(OUT_COBJ_W) -lGL -lGLU -lglut -o windowtest

objects: $(OUT_DIR) $(CUOBJ)
	echo

$(OUT_DIR)/%.obj: $(IN_DIR)/%.cu
	$(NVCC) $(NVCCFLAGS) -c $< -o $@

$(OUT_DIR)/%.o: $(IN_DIR)/%.cpp
	$(GCC) $(GCCFLAGS) -c $< -o $@

$(OUT_DIR):
	mkdir $(OUT_DIR)

$(OUT_OPENGL_DIR):
{'fraction_non_alphanumeric': 0.18617824773413896, 'fraction_numerical': 0.004531722054380665, 'mean_word_length': 5.655778894472362, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3444810', 'n_tokens_mistral': 1250, 'n_tokens_neox': 1192, 'n_words': 231}