<commit_before>
# ==============================================================================
#                          Unix Makefile for libndtypes
# ==============================================================================

LIBSTATIC = libndtypes.a

CC ?= gcc
LD ?= gcc
AR ?= ar
RANLIB ?= ranlib
CFLAGS ?= -Wall -Wextra -std=c11 -pedantic -O2 -g

ifeq ($(MAKECMDGOALS), check)
  CFLAGS = -Wall -Wextra -Werror -std=c11 -pedantic -O2 -g
endif

ifeq ($(MAKECMDGOALS), memcheck)
  CFLAGS = -Wall -Wextra -Werror -std=c11 -pedantic -O2 -g
endif

ifeq ($(MAKECMDGOALS), coverage)
  CFLAGS = -O0 -g -fno-inline -fprofile-arcs -ftest-coverage -fpic
  LDFLAGS = -fprofile-arcs
endif


default: $(LIBSTATIC)


OBJS = alloc.o attr.o display.o display_meta.o equal.o grammar.o lexer.o match.o ndtypes.o \
       parsefuncs.o parser.o seq.o symtable.o

$(LIBSTATIC):\
Makefile $(OBJS)
	$(AR) rc $(LIBSTATIC) $(OBJS)
	$(RANLIB) $(LIBSTATIC)

alloc.o:\
Makefile alloc.c ndtypes.h
	$(CC) $(CFLAGS) -c alloc.c<commit_msg>Fix ``make coverage''.<commit_after>
# ==============================================================================
#                          Unix Makefile for libndtypes
# ==============================================================================

LIBSTATIC = libndtypes.a

CC ?= gcc
LD ?= gcc
AR ?= ar
RANLIB ?= ranlib
CFLAGS ?= -Wall -Wextra -std=c11 -pedantic -O2 -g

ifeq ($(MAKECMDGOALS), check)
  CFLAGS = -Wall -Wextra -Werror -std=c11 -pedantic -O2 -g
endif

ifeq ($(MAKECMDGOALS), memcheck)
  CFLAGS = -Wall -Wextra -Werror -std=c11 -pedantic -O2 -g
endif

ifeq ($(MAKECMDGOALS), coverage)
  CFLAGS = -Wall -Wextra -std=c11 -pedantic -O0 -g -fno-inline -fprofile-arcs -ftest-coverage -fpic
  LDFLAGS = -fprofile-arcs
endif


default: $(LIBSTATIC)


OBJS = alloc.o attr.o display.o display_meta.o equal.o grammar.o lexer.o match.o ndtypes.o \
       parsefuncs.o parser.o seq.o symtable.o

$(LIBSTATIC):\
Makefile $(OBJS)
	$(AR) rc $(LIBSTATIC) $(OBJS)
	$(RANLIB) $(LIBSTATIC)

alloc.o:\
Makefile alloc.c ndtypes.h
	$(CC) $(CFLAGS) -c alloc.c
{'fraction_non_alphanumeric': 0.2796528447444552, 'fraction_numerical': 0.010607521697203472, 'mean_word_length': 3.6945701357466065, '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': '5459246', 'n_tokens_mistral': 788, 'n_tokens_neox': 741, 'n_words': 189}