<commit_before>all: imx_usb

BUILDHOST := $(shell uname -s)
BUILDHOST := $(patsubst CYGWIN_%,CYGWIN,$(BUILDHOST))

ifneq ($(BUILDHOST),CYGWIN)
CFLAGS = `pkg-config --cflags libusb-1.0`
else
CFLAGS = -I/usr/include/libusb-1.0
endif

%.o : %.cpp
	$(CC) -c $*.cpp -o $@ -Wno-trigraphs -pipe -ggdb -Wall $(CFLAGS)

%.o : %.c
	$(CC) -c $*.c -o $@ -Wstrict-prototypes -Wno-trigraphs -pipe -ggdb $(CFLAGS)

imx_usb.lds:
	ld --verbose|sed \
	-e '1,/===/d' \
	-e '/===/d' \
	-e '/\.data \.data\.\*/i\     __processor_info_start = \.\;     \*\(\.data\.processor_info\)\;     __processor_info_end = \.\;' \
	-e '/__data_start__*/a\     ___processor_info_start = \.\;     \*\(\.data\.processor_info\)\;     ___processor_info_end = \.\;' \
	> $@


imx_usb: imx_usb.o imx_usb.lds
	gcc -o $@ $@.o -T $@.lds -lusb-1.0

clean:
	rm -f imx_usb imx_usb.lds imx_usb.o
<commit_msg>remove unneeded lds file reference<commit_after>all: imx_usb

BUILDHOST := $(shell uname -s)
BUILDHOST := $(patsubst CYGWIN_%,CYGWIN,$(BUILDHOST))

ifneq ($(BUILDHOST),CYGWIN)
CFLAGS = `pkg-config --cflags libusb-1.0`
else
CFLAGS = -I/usr/include/libusb-1.0
endif

%.o : %.cpp
	$(CC) -c $*.cpp -o $@ -Wno-trigraphs -pipe -ggdb -Wall $(CFLAGS)

%.o : %.c
	$(CC) -c $*.c -o $@ -Wstrict-prototypes -Wno-trigraphs -pipe -ggdb $(CFLAGS)

imx_usb: imx_usb.o 
	gcc -o $@ $@.o -lusb-1.0

clean:
	rm -f imx_usb imx_usb.o

{'fraction_non_alphanumeric': 0.22392414296134208, 'fraction_numerical': 0.009482129832239242, 'mean_word_length': 2.811111111111111, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '2778343', 'n_tokens_mistral': 658, 'n_tokens_neox': 646, 'n_words': 130}