<commit_before>include config

PREFIX ?= /usr/local
LIBDIR ?= ${PREFIX}/lib/lua/5.1
LUAINC ?= ${PREFIX}/include
LUALIB ?= lua-5.1
LUABIN ?= lua

LIB  = amf3.so
SRCS = src/amf3.c src/amf3_encode.c src/amf3_decode.c
OBJS = ${SRCS:.c=.o}

CFLAGS  += -O2 -fPIC -ansi -pedantic -Wall -Wextra -Wshadow -Wformat -Wundef -Wwrite-strings -I${LUAINC}
LDFLAGS += -l${LUALIB} -L${PREFIX}/lib

.PHONY: all

all: ${LIB}

${LIB}: ${OBJS}
	cc -shared -o $@ ${LDFLAGS} ${OBJS}

clean:
	rm -f ${LIB} ${OBJS}<commit_msg>+ Add ${CC} support to Makefile<commit_after>include config

PREFIX ?= /usr/local
LIBDIR ?= ${PREFIX}/lib/lua/5.1
LUAINC ?= ${PREFIX}/include
LUALIB ?= lua-5.1
LUABIN ?= lua

LIB  = amf3.so
SRCS = src/amf3.c src/amf3_encode.c src/amf3_decode.c
OBJS = ${SRCS:.c=.o}

CFLAGS  += -O2 -fPIC -ansi -pedantic -Wall -Wextra -Wshadow -Wformat -Wundef -Wwrite-strings -I${LUAINC}
LDFLAGS += -l${LUALIB} -L${PREFIX}/lib

CC ?= cc

.PHONY: all

all: ${LIB}

${LIB}: ${OBJS}
	${CC} -shared -o $@ ${LDFLAGS} ${OBJS}

clean:
	rm -f ${LIB} ${OBJS}
{'fraction_non_alphanumeric': 0.21006776379477252, 'fraction_numerical': 0.017424975798644726, 'mean_word_length': 3.5350877192982457, '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': '428472', 'n_tokens_mistral': 495, 'n_tokens_neox': 479, 'n_words': 108}