<commit_before>platform = $(shell uname -m)

USB=$(shell pkg-config --cflags libusb-1.0) $(shell pkg-config --libs libusb-1.0)
DEFS = -D_LIN -D_DEBUG -DGLIBC_20
CFLAGS = -Wall -Wno-psabi -g -O2 -lpthread

ifeq ($(platform), armv6l)
OPENCV = $(shell pkg-config --cflags opencv) $(shell pkg-config --libs opencv)
CC = arm-linux-gnueabihf-g++
AR= arm-linux-gnueabihf-ar
CFLAGS += -march=armv6
CFLAGS += -lrt
ZWOSDK = -Llib/armv6 -I./include
endif

ifeq ($(platform), armv7l)
# Some distributions may need to use opencv4 and -DOPENCV_C_HEADERS as is done for x86_64
OPENCV = $(shell pkg-config --cflags opencv4) $(shell pkg-config --libs opencv4)
DEFS += -DOPENCV_C_HEADERS
CC = arm-linux-gnueabihf-g++
AR= arm-linux-gnueabihf-ar
CFLAGS += -march=armv7 -mthumb
ZWOSDK = -Llib/armv7 -I./include
endif

#Ubuntu has opencv4, not opencv2
ifeq ($(platform), x86_64)
OPENCV = $(shell pkg-config --cflags opencv4) $(shell pkg-config --libs opencv4)
CC = g++
AR= ar
DEFS += -DOPENCV_C_HEADERS
ZWOSDK = -Llib/x64 -I./include
endif

ifeq ($(platform), i386) # FIXME: is this correct?
OPENCV = $(shell pkg-config --cflags opencv4) $(shell pkg-config --libs opencv4)
CC = g++
AR= ar
DEFS += -DOPENCV_C_HEADERS
ZWOSDK = -Llib/x86 -I./include
endif<commit_msg>Made armv7l detect either OpenCV Version<commit_after>platform = $(shell uname -m)

USB=$(shell pkg-config --cflags libusb-1.0) $(shell pkg-config --libs libusb-1.0)
DEFS = -D_LIN -D_DEBUG -DGLIBC_20
CFLAGS = -Wall -Wno-psabi -g -O2 -lpthread

ifeq ($(platform), armv6l)
OPENCV = $(shell pkg-config --cflags opencv) $(shell pkg-config --libs opencv)
CC = arm-linux-gnueabihf-g++
AR= arm-linux-gnueabihf-ar
CFLAGS += -march=armv6
CFLAGS += -lrt
ZWOSDK = -Llib/armv6 -I./include
endif

ifeq ($(platform), armv7l)
# Some distributions may need to use opencv4 and -DOPENCV_C_HEADERS as is done for x86_64
OPENCV = $(shell pkg-config --cflags opencv) $(shell pkg-config --libs opencv)
ifeq ($(OPENCV), " ")
OPENCV = $(shell pkg-config --cflags opencv4) $(shell pkg-config --libs opencv4)
DEFS += -DOPENCV_C_HEADERS
endif
CC = arm-linux-gnueabihf-g++
AR= arm-linux-gnueabihf-ar
CFLAGS += -march=armv7 -mthumb
ZWOSDK = -Llib/armv7 -I./include
endif

#Ubuntu has opencv4, not opencv2
ifeq ($(platform), x86_64)
OPENCV = $(shell pkg-config --cflags opencv4) $(shell pkg-config --libs opencv4)
CC = g++
AR= ar
DEFS += -DOPENCV_C_HEADERS
ZWOSDK = -Llib/x64 -I./include
endif

ifeq ($(platform), i386) # FIXME: is this correct?
OPENCV = $(shell pkg-config --cflags opencv4) $(shell pkg-config --libs opencv4)
CC = g++
AR= ar
DEFS += -DOPENCV_C_HEADERS
ZWOSDK = -Llib/x86 -I./include
endif
{'fraction_non_alphanumeric': 0.15469824293353704, 'fraction_numerical': 0.028647822765469823, 'mean_word_length': 3.9885714285714284, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1098348', 'n_tokens_mistral': 1163, 'n_tokens_neox': 1065, 'n_words': 292}