<commit_before>CC = cc
CFLAGS = -std=gnu11 -O3 -I.

PREFIX    ?= /usr/local
BINPREFIX  = $(PREFIX)/bin

LIBS=-lm
ARCH=$(uname -m)

## TODO: must write the main LSD daemon
# DEPS =
# OBJ = battery.o clock.o cpu.o memory.o thermal.o wifi.o
BINS = battery clock memory thermal wifi

all: $(BINS)

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

battery: battery.o
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)

clock: clock.o
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)

memory: memory.o
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)

thermal: thermal.o
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)

wifi: wifi.o
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)

install:
	mkdir -p "$(DESTDIR)$(BINPREFIX)"
	cp -p $(BINS) "$(DESTDIR)$(BINPREFIX)"

uninstall:
	rm -f "$(DESTDIR)$(BINPREFIX)"/{$(BINS)}

.PHONY: clean
<commit_msg>makefile: forgot to build cpu along with everything else<commit_after>CC = cc
CFLAGS = -std=gnu11 -O3 -I.

PREFIX    ?= /usr/local
BINPREFIX  = $(PREFIX)/bin

LIBS=-lm
ARCH=$(uname -m)

## TODO: must write the main LSD daemon
# DEPS =
# OBJ = battery.o clock.o cpu.o memory.o thermal.o wifi.o
BINS = battery clock cpu memory thermal wifi

all: $(BINS)

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

cpu: cpu.o
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)

battery: battery.o
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)

clock: clock.o
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)

memory: memory.o
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)

thermal: thermal.o
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)

wifi: wifi.o
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)

install:
	mkdir -p "$(DESTDIR)$(BINPREFIX)"
	cp -p $(BINS) "$(DESTDIR)$(BINPREFIX)"

uninstall:
	rm -f "$(DESTDIR)$(BINPREFIX)"/{$(BINS)}

.PHONY: clean

{'fraction_non_alphanumeric': 0.23750771128932757, 'fraction_numerical': 0.003701418877236274, 'mean_word_length': 3.5055555555555555, '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': '149853', 'n_tokens_mistral': 748, 'n_tokens_neox': 701, 'n_words': 189}