<commit_before>PREFIX = /usr/local

LIB_TESTS = root_node property_offset subnode_offset path_offset getprop \
	notfound \
	setprop_inplace nop_property nop_node
TESTS = $(LIB_TESTS)
UTILS = dumptrees

TREES = test_tree1.dtb

CFLAGS = -Wall -g
CPPFLAGS = -I..
LDFLAGS = -L..

LIBFDT = ../libfdt.a

ifdef V
VECHO = :
else
VECHO = echo "	"
.SILENT:
endif

DEPFILES = $(TESTS:%=%.d) testutils.d

all:	$(TESTS) $(TREES)

%.o: %.c
	@$(VECHO) CC $@
	$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ -c $<

%.o: %.S
	@$(VECHO) AS $@
	$(CC) -D__ASSEMBLY__ $(CPPFLAGS) -o $@ -c $<

$(TREES): trees.o dumptrees
	@$(VECHO) DUMPTREES
	./dumptrees >/dev/null

%: %.o
	@$(VECHO) LD $@
	$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)

dumptrees: trees.o

$(LIB_TESTS): %: testutils.o $(LIBFDT)

clean:
	@$(VECHO) CLEAN "(tests)"
	rm -f *~ *.o *.so *.a *.d *.s core a.out
	rm -f $(TESTS) $(UTILS) *.dtb

%.d: %.c
	@$(CC) $(CPPFLAGS) -MM -MT "$*.o $@" $< > $@

-include $(DEPFILES)<commit_msg>Fix building of dumptrees<commit_after>PREFIX = /usr/local

LIB_TESTS = root_node property_offset subnode_offset path_offset getprop \
	notfound \
	setprop_inplace nop_property nop_node
TESTS = $(LIB_TESTS)
UTILS = dumptrees

TREES = test_tree1.dtb

CFLAGS = -Wall -g
CPPFLAGS = -I..
LDFLAGS = -L..

LIBFDT = ../libfdt.a

ifdef V
VECHO = :
else
VECHO = echo "	"
.SILENT:
endif

DEPFILES = $(TESTS:%=%.d) testutils.d

all:	$(TESTS) $(TREES)

%.o: %.c
	@$(VECHO) CC $@
	$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ -c $<

%.o: %.S
	@$(VECHO) AS $@
	$(CC) -D__ASSEMBLY__ $(CPPFLAGS) -o $@ -c $<

%: %.o
	@$(VECHO) LD $@
	$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)

$(LIB_TESTS): %: testutils.o $(LIBFDT)

dumptrees: %: trees.o

$(TREES): dumptrees
	@$(VECHO) DUMPTREES
	./dumptrees >/dev/null

clean:
	@$(VECHO) CLEAN "(tests)"
	rm -f *~ *.o *.so *.a *.d *.s core a.out
	rm -f $(TESTS) $(UTILS) *.dtb

%.d: %.c
	@$(CC) $(CPPFLAGS) -MM -MT "$*.o $@" $< > $@

-include $(DEPFILES)
{'fraction_non_alphanumeric': 0.2291557420031463, 'fraction_numerical': 0.001048767697954903, 'mean_word_length': 3.3069977426636568, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '6366973', 'n_tokens_mistral': 964, 'n_tokens_neox': 901, 'n_words': 211}