<commit_before># -MAKE-------------------------------------------------------------------------
# Phorward Regular Expression Library
# Copyright (C) 2009 by Phorward Software Technologies, <NAME>
# http://www.phorward-software.com ++ mail<at>phorward<dash>software<dot>com
# ------------------------------------------------------------------------------

include ../../include/Make.inc

SRC			=	comp.c \
				dfa.c \
				direct.c \
				nfa.c \
				util.c

OBJ			=	comp$(OBJEXT) \
				dfa$(OBJEXT) \
				direct$(OBJEXT) \
				nfa$(OBJEXT) \
				util$(OBJEXT)

PROTO		=	pregex.proto.h
SPROTO		=	pregex.sproto.h
PROTO_H		=	$(INCLUDE_DIR)$(PATH_SEP)$(PROTO)

HEADERS		=	pregex.h $(SPROTO)

# ------------------------------------------------------------------------------

all: $(PREGEX_LIB_H) $(PREGEX_LIB)
	@echo
	@echo --- Compilation succeeded! ---

$(PREGEX_LIB): $(SRC) $(HEADERS) Makefile
	$(CC) $(CLIBOPTS) $(DEBUG) $(SRC)
	$(LLIB) $(LIBOPTS)$(PREGEX_LIB) $(OBJ)

$(PREGEX_LIB_H): $(SRC) $(HEADERS) Makefile $(PROTO)
	$(LOCALINCLUDE) pregex.h >$@

$(PROTO): $(SRC) $(HEADERS)
	cproto_all "$(SRC)" $(INCLUDE_DIR) $@

$(SPROTO): $(SRC) 
	cproto_all "$(SRC)" $(INCLUDE_DIR) $@ -S

clean_obj:
	-@$(RM) $(OBJ)

clean: clean_obj
	-@$(RM) $(PREGEX_LIB)
	-@$(RM) $(PREGEX_LIB_H)
	-@$(RM) $(PROTO_H)
	-@$(RM) cscope.out

backup: clean
	-@$(RM) ../pregex.tar
	tar cvf ../pregex.tar ../pregex<commit_msg>SCCS Makefile 10/06/22 00:26:19: Documentation generator integrated, new header for open source release<commit_after># -MAKE-------------------------------------------------------------------------
# Phorward Foundation Libraries :: Regular Expression Library, Version 2
# Copyright (C) 2009, 2010 by Phorward Software Technologies, <NAME>
# http://www.phorward-software.com ++ contact<at>phorward<dash>software<dot>com
# All rights reserved. See $PHOME/LICENSE for more information.
# ------------------------------------------------------------------------------

include ../../include/Make.inc

SRC			=	comp.c \
				dfa.c \
				direct.c \
				nfa.c \
				util.c

OBJ			=	comp$(OBJEXT) \
				dfa$(OBJEXT) \
				direct$(OBJEXT) \
				nfa$(OBJEXT) \
				util$(OBJEXT)

PROTO		=	pregex.proto.h
SPROTO		=	pregex.sproto.h
PROTO_H		=	$(INCLUDE_DIR)$(PATH_SEP)$(PROTO)

HEADERS		=	pregex.h $(SPROTO)

DOCFILE		= 	$(DOC_DIR)$(PATH_SEP)pregex.html

# ------------------------------------------------------------------------------

all: $(PREGEX_LIB_H) $(PREGEX_LIB)
	@echo
	@echo --- Compilation succeeded! ---

$(PREGEX_LIB): $(SRC) $(HEADERS) Makefile
	$(CC) $(CLIBOPTS) $(DEBUG) $(SRC)
	$(LLIB) $(LIBOPTS)$(PREGEX_LIB) $(OBJ)

$(PREGEX_LIB_H): $(SRC) $(HEADERS) Makefile $(PROTO)
	$(LOCALINCLUDE) pregex.h >$@

$(PROTO): $(SRC) $(HEADERS)
	cproto_all "$(SRC)" $(INCLUDE_DIR) $@

$(SPROTO): $(SRC) 
	cproto_all "$(SRC)" $(INCLUDE_DIR) $@ -S

clean_obj:
	-@$(RM) $(OBJ)

clean: clean_obj
	-@$(RM) $(PREGEX_LIB)
	-@$(RM) $(PREGEX_LIB_H)
	-@$(RM) $(PROTO_H)
	-@$(RM) cscope.out

backup: clean
	-@$(RM) ../pregex.tar
	tar cvf ../pregex.tar ../pregex

#make doc
doc: 
	-$(MKDIR) $(DOC_DIR)
	$(MKDOC) -ns -i -t pregex -u "Phorward Regular Expression Library" \
		 $(SRC) >$(DOCFILE)
	@echo
	@echo --- Done making documentation! ---

{'fraction_non_alphanumeric': 0.317687286291576, 'fraction_numerical': 0.007771215418091389, 'mean_word_length': 2.0794258373205743, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1735176', 'n_tokens_mistral': 1320, 'n_tokens_neox': 1172, 'n_words': 242}