<commit_before>include Makefile.inc

TOPDIR = ../..
include $(TOPDIR)/Makefile.inc


#CFLAGS += -DPUD_DUMP_GPS_PACKETS_RX_NON_OLSR
#CFLAGS += -DPUD_DUMP_GPS_PACKETS_TX_OLSR

#CFLAGS += -DPUD_DUMP_GPS_PACKETS_RX_OLSR
#CFLAGS += -DPUD_DUMP_GPS_PACKETS_TX_NON_OLSR

#CFLAGS += -DPUD_DUMP_AVERAGING
#CFLAGS += -DPUD_DUMP_DEDUP


CFLAGS += -Werror -D_GNU_SOURCE


VERSION_FILE = ./src/version.h

LIBS += -lnmea -lm


ifneq ($(OS),linux)

default_target install clean:
	@echo "*** $(PLUGIN_NAME) plugin only supported on Linux, sorry!"

else

all: default_target

default_target: $(VERSION_FILE) $(PLUGIN_FULLNAME)

$(PLUGIN_FULLNAME): $(OBJS) version-script.txt
	@echo "[LD] $@"
	@$(CC) $(LDFLAGS) -o $(PLUGIN_FULLNAME) $(OBJS) $(LIBS)

$(VERSION_FILE): Makefile scripts/makeVersionH
	@echo "[$@]"
	@./scripts/makeVersionH "$@" "$(PLUGIN_VER)"


.PHONY:	install uninstall clean dist distclean doc doc-clean

install: $(PLUGIN_FULLNAME)
	$(INSTALL_LIB)
	$(STRIP) "$(LIBDIR)/$(PLUGIN_FULLNAME)"

uninstall:
	rm -f "$(LIBDIR)/lib$(PLUGIN_NAME).so" "$(LIBDIR)/$(PLUGIN_NAME)"
	$(UNINSTALL_LIB)<commit_msg>PUD: always regenerate version.h<commit_after>include Makefile.inc

TOPDIR = ../..
include $(TOPDIR)/Makefile.inc


#CFLAGS += -DPUD_DUMP_GPS_PACKETS_RX_NON_OLSR
#CFLAGS += -DPUD_DUMP_GPS_PACKETS_TX_OLSR

#CFLAGS += -DPUD_DUMP_GPS_PACKETS_RX_OLSR
#CFLAGS += -DPUD_DUMP_GPS_PACKETS_TX_NON_OLSR

#CFLAGS += -DPUD_DUMP_AVERAGING
#CFLAGS += -DPUD_DUMP_DEDUP


CFLAGS += -Werror -D_GNU_SOURCE


VERSION_FILE = ./src/version.h

LIBS += -lnmea -lm


ifneq ($(OS),linux)

default_target install clean:
	@echo "*** $(PLUGIN_NAME) plugin only supported on Linux, sorry!"

else

all: default_target

default_target: version $(PLUGIN_FULLNAME)

$(PLUGIN_FULLNAME): $(OBJS) version-script.txt
	@echo "[LD] $@"
	@$(CC) $(LDFLAGS) -o $(PLUGIN_FULLNAME) $(OBJS) $(LIBS)


.PHONY:	version install uninstall clean dist distclean doc doc-clean

version: Makefile scripts/makeVersionH
	@echo "[$(VERSION_FILE)]"
	@./scripts/makeVersionH "$(VERSION_FILE)" "$(PLUGIN_VER)"

install: $(PLUGIN_FULLNAME)
	$(INSTALL_LIB)
	$(STRIP) "$(LIBDIR)/$(PLUGIN_FULLNAME)"

uninstall:
	rm -f "$(LIBDIR)/lib$(PLUGIN_NAME).so" "$(LIBDIR)/$(PLUGIN_NAME)"
	$(UNINSTALL_LIB)
{'fraction_non_alphanumeric': 0.16240466576940332, 'fraction_numerical': 0.0, 'mean_word_length': 5.798780487804878, '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': '5676250', 'n_tokens_mistral': 971, 'n_tokens_neox': 917, 'n_words': 165}