<commit_before>ifneq ($(shell env -i command -v g++-4.7),)
GXX ?= g++-4.7
endif
GXX ?= g++-4.6

HL_MODULES = daubechies_x.bc inverse_daubechies_x.bc haar_x.bc inverse_haar_x.bc

all: filter

wavelet: ../../cpp_bindings/ wavelet.cpp
	$(MAKE) -C ../../cpp_bindings libHalide.a
	$(GXX) wavelet.cpp -I ../../cpp_bindings/ ../../cpp_bindings/Halide.a  -std=c++0x -o wavelet  -lpthread -ldl

$(HL_MODULES): wavelet 
	./wavelet

%.o: %.bc
	cat $< | opt -O3 | llc -O3 -filetype=obj -o=$@

filter.o: filter.cpp $(HL_MODULES:%.bc=%.o)
	$(GXX) -std=c++0x -O3 -c filter.cpp

filter: filter.o $(HL_MODULES:%.bc=%.o)
	$(GXX) filter.o $(HL_MODULES:%.bc=%.o) -lpng -o filter -pthread

clean:
	rm -f wavelet filter filter.o $(HL_MODULES) $(HL_MODULES:%.bc=%.o) $(HL_MODULES:%.bc=%.h) *.lowered*<commit_msg>wavelet was still referencing Halide.a<commit_after>ifneq ($(shell env -i command -v g++-4.7),)
GXX ?= g++-4.7
endif
GXX ?= g++-4.6

HL_MODULES = daubechies_x.bc inverse_daubechies_x.bc haar_x.bc inverse_haar_x.bc

all: filter

wavelet: ../../cpp_bindings/ wavelet.cpp
	$(MAKE) -C ../../cpp_bindings libHalide.a
	$(GXX) wavelet.cpp -I ../../cpp_bindings/ ../../cpp_bindings/libHalide.a  -std=c++0x -o wavelet  -lpthread -ldl

$(HL_MODULES): wavelet 
	./wavelet

%.o: %.bc
	cat $< | opt -O3 | llc -O3 -filetype=obj -o=$@

filter.o: filter.cpp $(HL_MODULES:%.bc=%.o)
	$(GXX) -std=c++0x -O3 -c filter.cpp

filter: filter.o $(HL_MODULES:%.bc=%.o)
	$(GXX) filter.o $(HL_MODULES:%.bc=%.o) -lpng -o filter -pthread

clean:
	rm -f wavelet filter filter.o $(HL_MODULES) $(HL_MODULES:%.bc=%.o) $(HL_MODULES:%.bc=%.h) *.lowered*
{'fraction_non_alphanumeric': 0.22353673723536738, 'fraction_numerical': 0.0136986301369863, 'mean_word_length': 3.390710382513661, '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': '6234511', 'n_tokens_mistral': 745, 'n_tokens_neox': 743, 'n_words': 155}