<commit_before># ##################################################
#                                                  #
#	Makefile for the SIR library                   #
#                                                  #
#	Copyright (C) 2003-2018. All Rights Reserved   # 
#	Author: <NAME> <<EMAIL>>  #
#	Version: 1.1.0                                 #
#                                                  #
# ##################################################

CC       = gcc
BUILDDIR = build
DOCSDIR = docs
INTERDIR = $(BUILDDIR)/obj
LIBDIR   = $(BUILDDIR)/lib

LIBS   = -pthread
CFLAGS = -Wpedantic -std=c99 -I.

TUS     = sir.c sirmutex.c sirinternal.c sirfilecache.c
DEPS    = sir.h sirmutex.h sirconfig.h sirinternal.h sirmacros.h \
		  sirplatform.h sirfilecache.h sirtypes.h

_OBJ = $(patsubst %.c, %.o, $(TUS))
OBJ  = $(patsubst %, $(INTERDIR)/%, $(_OBJ))

# console debug app
_OBJ_DEBUG   = main.o $(_OBJ)
OBJ_DEBUG    = $(patsubst %.o, $(INTERDIR)/%.do, $(_OBJ_DEBUG))
OUT_DEBUG    = $(BUILDDIR)/sirdebug
CFLAGS_DEBUG = $(CFLAGS) -g -DDEBUG -DSIR_SELFLOG
DEBUGTU = $(TUS) main.c

# shared library
OBJ_SHARED    = $(patsubst %.o, $(INTERDIR)/%.lo, $(_OBJ))
OUT_SHARED	  = $(LIBDIR)/libsir.so
CFLAGS_SHARED = $(CFLAGS) -fPIC -O3

# static library
OBJ_STATIC    = $(OBJ_SHARED)
OUT_STATIC    = $(LIBDIR)/libsir.a
CFLAGS_STATIC = $(CFLAGS) -O3

# ##########
# targets
# ##########<commit_msg>add -D_WIN32 on windows.<commit_after># ##################################################
#                                                  #
#	Makefile for the SIR library                   #
#                                                  #
#	Copyright (C) 2003-2018. All Rights Reserved   # 
#	Author: <NAME> <<EMAIL>>  #
#	Version: 1.1.0                                 #
#                                                  #
# ##################################################

CC       = gcc
BUILDDIR = build
DOCSDIR = docs
INTERDIR = $(BUILDDIR)/obj
LIBDIR   = $(BUILDDIR)/lib

LIBS   = -pthread
CFLAGS = -Wpedantic -std=c99 -I.

ifeq ($(OS),Windows_NT)
CFLAGS += -D_WIN32
endif

TUS     = sir.c sirmutex.c sirinternal.c sirfilecache.c
DEPS    = sir.h sirmutex.h sirconfig.h sirinternal.h sirmacros.h \
		  sirplatform.h sirfilecache.h sirtypes.h

_OBJ = $(patsubst %.c, %.o, $(TUS))
OBJ  = $(patsubst %, $(INTERDIR)/%, $(_OBJ))

# console debug app
_OBJ_DEBUG   = main.o $(_OBJ)
OBJ_DEBUG    = $(patsubst %.o, $(INTERDIR)/%.do, $(_OBJ_DEBUG))
OUT_DEBUG    = $(BUILDDIR)/sirdebug
CFLAGS_DEBUG = $(CFLAGS) -g -DDEBUG -DSIR_SELFLOG
DEBUGTU = $(TUS) main.c

# shared library
OBJ_SHARED    = $(patsubst %.o, $(INTERDIR)/%.lo, $(_OBJ))
OUT_SHARED	  = $(LIBDIR)/libsir.so
CFLAGS_SHARED = $(CFLAGS) -fPIC -O3

# static library
OBJ_STATIC    = $(OBJ_SHARED)
OUT_STATIC    = $(LIBDIR)/libsir.a
CFLAGS_STATIC = $(CFLAGS) -O3

# ##########
# targets
# ##########
{'fraction_non_alphanumeric': 0.2174520069808028, 'fraction_numerical': 0.0118673647469459, 'mean_word_length': 2.1773835920177382, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4161909', 'n_tokens_mistral': 1049, 'n_tokens_neox': 1003, 'n_words': 208}