<commit_before># Pattern matching in make files
#   $^ matches all the input dependencies
#   $< matches the first input dependency
#   $@ matches the output

CC=g++
GCC_VERSION_GE_43 := $(shell expr `g++ -dumpversion | cut -f2 -d.` \>= 3)

PUREGEV_ROOT = /opt/pleora/ebus_sdk
OPENCVDIR = /usr/include/opencv2/
CCFITSDIR = /usr/include/CCfits/
INCLUDE = -I$(OPENCVDIR) -I$(PUREGEV_ROOT)/include/ -I$(CCFITSDIR)

CFLAGS = -Wall $(INCLUDE) -Wno-unknown-pragmas
ifeq "$(GCC_VERSION_GE_43)" "1"
    CFLAGS += -std=gnu++0x
endif

IMPERX =-L$(PUREGEV_ROOT)/lib/		\
	-lPvBase             		\
	-lPvDevice          		\
	-lPvBuffer          		\
	-lPvPersistence      		\
	-lPvGenICam          		\
	-lPvStreamRaw        		\
	-lPvStream 
OPENCV = -lopencv_core -lopencv_highgui -lopencv_imgproc
THREAD = -lpthread
CCFITS = -lCCfits
ifeq "$(GCC_VERSION_GE_43)" "1"
    CCFITS += -lrt
endif

EXEC_CORE = snap
EXEC_ALL = $(EXEC_CORE) 

default: $(EXEC_CORE)

all: $(EXEC_ALL)

snap: snap.cpp ImperxStream.o compression.o
	$(CC) $(CFLAGS) $^ -o $@ $(OPENCV) $(CCFITS) $(IMPERX)

stream: stream.cpp
	$(CC) $(CFLAGS) $^ -o $@ $(IMPERX)

#This pattern matching will catch all "simple" object dependencies
%.o: %.cpp %.hpp
	$(CC) -c $(CFLAGS) $< -o $@

install: $(EXEC_CORE)
	#sudo systemctl stop sas
	#sudo systemctl stop sbc_info
	#sudo systemctl stop sbc_shutdown
	#sudo systemctl stop relay_control
	#sudo cp sunDemo /usr/local/bin/sas.runtime
	#sudo cp sbc_info /usr/local/bin/sbc_info.runtime
	#sudo cp sbc_shutdown /usr/local/bin/sbc_shutdown.runtime
	#sudo cp relay_control /usr/local/bin/relay_control.runtime
	#sudo systemctl start relay_control
	#sudo systemctl start sbc_shutdown
	#sudo systemctl start sbc_info
	#sudo systemctl start sas

clean:
	rm -rf *.o *.out $(EXEC_ALL)
<commit_msg>added display to make file<commit_after># Pattern matching in make files
#   $^ matches all the input dependencies
#   $< matches the first input dependency
#   $@ matches the output

CC=g++
GCC_VERSION_GE_43 := $(shell expr `g++ -dumpversion | cut -f2 -d.` \>= 3)

PUREGEV_ROOT = /opt/pleora/ebus_sdk
OPENCVDIR = /usr/include/opencv2/
CCFITSDIR = /usr/include/CCfits/
INCLUDE = -I$(OPENCVDIR) -I$(PUREGEV_ROOT)/include/ -I$(CCFITSDIR)

CFLAGS = -Wall $(INCLUDE) -Wno-unknown-pragmas
ifeq "$(GCC_VERSION_GE_43)" "1"
    CFLAGS += -std=gnu++0x
endif

IMPERX =-L$(PUREGEV_ROOT)/lib/		\
	-lPvBase             		\
	-lPvDevice          		\
	-lPvBuffer          		\
	-lPvPersistence      		\
	-lPvGenICam          		\
	-lPvStreamRaw        		\
	-lPvStream 
OPENCV = -lopencv_core -lopencv_highgui -lopencv_imgproc
THREAD = -lpthread
CCFITS = -lCCfits
X11 = -lX11
GL = -lGL

ifeq "$(GCC_VERSION_GE_43)" "1"
    CCFITS += -lrt
endif

EXEC_CORE = snap
EXEC_ALL = $(EXEC_CORE) 

default: $(EXEC_CORE)

all: $(EXEC_ALL)

snap: snap.cpp ImperxStream.o compression.o
	$(CC) $(CFLAGS) $^ -o $@ $(OPENCV) $(CCFITS) $(IMPERX)

stream: stream.cpp
	$(CC) $(CFLAGS) $^ -o $@ $(IMPERX)

display: display.cpp
    $(CC) $(CFLAGS) $^ -o $@ $(X11) $(GL)

#This pattern matching will catch all "simple" object dependencies
%.o: %.cpp %.hpp
	$(CC) -c $(CFLAGS) $< -o $@

install: $(EXEC_CORE)
	#sudo systemctl stop sas
	#sudo systemctl stop sbc_info
	#sudo systemctl stop sbc_shutdown
	#sudo systemctl stop relay_control
	#sudo cp sunDemo /usr/local/bin/sas.runtime
	#sudo cp sbc_info /usr/local/bin/sbc_info.runtime
	#sudo cp sbc_shutdown /usr/local/bin/sbc_shutdown.runtime
	#sudo cp relay_control /usr/local/bin/relay_control.runtime
	#sudo systemctl start relay_control
	#sudo systemctl start sbc_shutdown
	#sudo systemctl start sbc_info
	#sudo systemctl start sas

clean:
	rm -rf *.o *.out $(EXEC_ALL)

{'fraction_non_alphanumeric': 0.13844893500819225, 'fraction_numerical': 0.008192244675040962, 'mean_word_length': 3.4132530120481928, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '1124913', 'n_tokens_mistral': 1542, 'n_tokens_neox': 1464, 'n_words': 351}