<commit_before>DIRS = lua

all: dirs mcp


DUNAME := $(shell uname -s)
ARCH := $(shell uname -m)

ifeq ($(UNAME),Darwin)
CFLAGS += -I/opt/local/include
LDFLAGS += -L/opt/local/lib
endif
ifeq ($(UNAME),Linux)
CFLAGS +=
LDFLAGS += 
endif
CFLAGS += -DUSE_LUA
CXXFLAGS = $(CFLAGS) -std=c++11
LDXXFLAGS = $(LDFLAGS)

LDLIBS := -lusb-1.0

OBJS = main.o \
	mongoose.o \
	Dongle.o \
	DongleThread.o \
	Ds18b20.o \
	EventQueue.o \
	Pid.o \
	Thread.o \
	TimerThread.o \
	WebServer.o

TARGETS=mcp

mcp: $(OBJS)
	$(LINKXX) #$(LDXXFLAGS) -o $@ $^ $(LDLIBS)

include rules.mk<commit_msg>add test target<commit_after>DIRS = lua avr

all: dirs mcp test


DUNAME := $(shell uname -s)
ARCH := $(shell uname -m)

ifeq ($(UNAME),Darwin)
CFLAGS += -I/opt/local/include
LDFLAGS += -L/opt/local/lib
endif
ifeq ($(UNAME),Linux)
CFLAGS +=
LDFLAGS += 
endif
CFLAGS += -DUSE_LUA
CXXFLAGS = $(CFLAGS) -std=c++11
LDXXFLAGS = $(LDFLAGS)

LDLIBS := -lusb-1.0

MCP_OBJS = main.o \
	mongoose.o \
	Dongle.o \
	DongleThread.o \
	Ds18b20.o \
	EventQueue.o \
	Pid.o \
	Thread.o \
	TimerThread.o \
	WebServer.o

TEST_OBJS = test.o \
	Dongle.o

OBJS=${MCP_OBJS} ${TEST_OBJS}

TARGETS=mcp test

mcp: $(MCP_OBJS)
	$(LINKXX) #$(LDXXFLAGS) -o $@ $^ $(LDLIBS)

test: $(TEST_OBJS)
	$(LINKXX) #$(LDXXFLAGS) -o $@ $^ $(LDLIBS)

include rules.mk
{'fraction_non_alphanumeric': 0.18658442559753277, 'fraction_numerical': 0.01233616037008481, 'mean_word_length': 3.4149659863945576, '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': '3759091', 'n_tokens_mistral': 635, 'n_tokens_neox': 606, 'n_words': 123}