<commit_before>
NACL_SDK_ROOT ?= $(HOME)/nacl_sdk/pepper_26

WARNINGS := -Wall -Wswitch-enum 
CXXFLAGS := -pthread $(WARNINGS) -I $(NACL_SDK_ROOT)/include

CXX := $(NACL_SDK_ROOT)/toolchain/linux_x86_glibc/bin/x86_64-nacl-g++
LDFLAGS := -L $(NACL_SDK_ROOT)/toolchain/linux_x86_glibc/x86_64-nacl/lib -lppapi_cpp -lppapi -lpthread

OBJECTS = hello_nacl.o halide_game_of_life.o

all: hello_nacl.nexe

hello_nacl.nexe: $(OBJECTS) .lib64_linked
	$(CXX) -o $@ -m64 $(OBJECTS) $(LDFLAGS)	

.lib64_linked:
	ln -fs $(NACL_SDK_ROOT)/toolchain/linux_x86_glibc/x86_64-nacl/lib
	touch .lib64_linked

hello_nacl.o: hello_nacl.cpp halide_game_of_life.h
	$(CXX) -o $@ -m64 -c $< $(CXXFLAGS)

halide_game_of_life.o: halide_game_of_life
	HL_TARGET=x86-nacl LD_LIBRARY_PATH=../../bin ./halide_game_of_life

halide_game_of_life: halide_game_of_life.cpp
	g++ halide_game_of_life.cpp -o halide_game_of_life -I ../../include -L ../../bin -lHalide -lpthread -ldl

clean:
	rm -f halide_game_of_life *.o *.nexe *.s .lib64_linked<commit_msg>HelloNaCl Makefile fix<commit_after>
NACL_SDK_ROOT ?= $(HOME)/nacl_sdk/pepper_26

WARNINGS := -Wall -Wswitch-enum 
CXXFLAGS := -pthread $(WARNINGS) -I $(NACL_SDK_ROOT)/include

CXX := $(NACL_SDK_ROOT)/toolchain/linux_x86_glibc/bin/x86_64-nacl-g++
LDFLAGS := -L $(NACL_SDK_ROOT)/toolchain/linux_x86_glibc/x86_64-nacl/lib -lppapi_cpp -lppapi -lpthread

OBJECTS = hello_nacl.o halide_game_of_life.o

all: hello_nacl.nexe

hello_nacl.nexe: $(OBJECTS) .lib64_linked
	$(CXX) -o $@ -m64 $(OBJECTS) $(LDFLAGS)	

.lib64_linked:
	ln -fs $(NACL_SDK_ROOT)/toolchain/linux_x86_glibc/x86_64-nacl/lib
	touch .lib64_linked

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

halide_game_of_life.o: halide_game_of_life
	HL_TARGET=x86-nacl LD_LIBRARY_PATH=../../bin ./halide_game_of_life

halide_game_of_life: halide_game_of_life.cpp
	g++ halide_game_of_life.cpp -o halide_game_of_life -I ../../include -L ../../bin -lHalide -lpthread -ldl

clean:
	rm -f halide_game_of_life *.o *.nexe *.s .lib64_linked
{'fraction_non_alphanumeric': 0.14937965260545905, 'fraction_numerical': 0.0337468982630273, 'mean_word_length': 4.647058823529412, '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': '7361782', 'n_tokens_mistral': 996, 'n_tokens_neox': 903, 'n_words': 144}