<commit_before>MOSQUITTO_SRC ?= ./
PYTHON_VERSION ?= 2.7

PYTHON_CONFIG = python$(PYTHON_VERSION)-config

CFLAGS = -std=gnu99 -fPIC -I../lib -I../src `$(PYTHON_CONFIG) --includes` -Wall -Wextra -O2
ifdef DEBUG
CFLAGS += -DPYAUTH_DEBUG -O0 -ggdb3
endif
LIBS = `$(PYTHON_CONFIG) --libs` -lmosquitto -lcares
DESTDIR = /usr

CFLAGS += -I$(MOSQUITTO_SRC)/src/
CFLAGS += -I$(MOSQUITTO_SRC)/lib/

#LDFLAGS =-lmosquitto 
LDFLAGS += -L$(MOSQUITTO_SRC)/lib/

all : auth_plugin_pyauth.so

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

auth_plugin_pyauth.so : auth_plugin_pyauth.o
	$(CC) $(CFLAGS) -shared -o $@ $^  $(LIBS)  $(LDFLAGS)

install: auth_plugin_pyauth.so
	mkdir -p $(DESTDIR)/lib/mosquitto
	install -s -m 755 auth_plugin_pyauth.so $(DESTDIR)/lib/mosquitto

clean :
	rm -f auth_plugin_pyauth.so *.o

.PHONY: all clean<commit_msg>Don't link with libcares<commit_after>MOSQUITTO_SRC ?= ./
PYTHON_VERSION ?= 2.7

PYTHON_CONFIG = python$(PYTHON_VERSION)-config

CFLAGS = -std=gnu99 -fPIC -I../lib -I../src `$(PYTHON_CONFIG) --includes` -Wall -Wextra -O2
ifdef DEBUG
CFLAGS += -DPYAUTH_DEBUG -O0 -ggdb3
endif
LIBS = `$(PYTHON_CONFIG) --libs` -lmosquitto
DESTDIR = /usr

CFLAGS += -I$(MOSQUITTO_SRC)/src/
CFLAGS += -I$(MOSQUITTO_SRC)/lib/

#LDFLAGS =-lmosquitto
LDFLAGS += -L$(MOSQUITTO_SRC)/lib/

all : auth_plugin_pyauth.so

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

auth_plugin_pyauth.so : auth_plugin_pyauth.o
	$(CC) $(CFLAGS) -shared -o $@ $^  $(LIBS)  $(LDFLAGS)

install: auth_plugin_pyauth.so
	mkdir -p $(DESTDIR)/lib/mosquitto
	install -s -m 755 auth_plugin_pyauth.so $(DESTDIR)/lib/mosquitto

clean :
	rm -f auth_plugin_pyauth.so *.o

.PHONY: all clean
{'fraction_non_alphanumeric': 0.17317073170731706, 'fraction_numerical': 0.012195121951219513, 'mean_word_length': 3.9577039274924473, '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': '6040456', 'n_tokens_mistral': 761, 'n_tokens_neox': 729, 'n_words': 143}