<commit_before># File Name : Makefile
# Location : [@top root directory] tweetnacl-modular/
# Author : <NAME>
# Mail : <EMAIL>
# Description : compiles tweetnacl library and produces shared library libtweetnacl.so inside [.libs] directory (tweetnacl-modular/.libs/)
# [-cont.] compile your project with '-ltweetnacl'

CC:=$(CC)

CFLAGS:=-Wextra -Wformat-security -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow -Wstrict-prototypes -Wswitch-default -Wswitch-enum -Wunused -Wunused-result -Wlogical-op -g -O0 -DWITH_POSIX -fPIC

LDFLAGS:=-shared

SRC:=src/

INCLUDE:=-Iincludes

OBJ:=tweetnacl.o randombytes.o

SHARED:=libtweetnacl.so

MKDIR_P:=mkdir -p

.PHONY:	.libs

LIB:=.libs

$(LIB):
	$(MKDIR_P) $(LIB)

all:	$(LIB) $(OBJ) $(SHARED)

randombytes.o:	$(SRC)randombytes.c
	$(CC) -c $(CFLAGS) $(INCLUDE) $<

tweetnacl.o:	$(SRC)tweetnacl.c
	$(CC) -c $(CFLAGS) $(INCLUDE) $<

$(SHARED): $(OBJ)
	$(CC) $(CFLAGS) $(LDFLAGS) -o $(SHARED) $(OBJ)
	@rm -f $(PROGRAMS) $(OBJ) *~
	@mv $(SHARED) $(LIB)

clean:
	@rm -rf $(LIB)
	@rm -f $(PROGRAMS) $(OBJ) *~ *.so<commit_msg>added subdirectory make for app<commit_after># File Name : Makefile
# Location : [@top root directory] tweetnacl-modular/
# Author : <NAME>
# Mail : <EMAIL>
# Description : compiles tweetnacl library and produces shared library libtweetnacl.so inside [.libs] directory (tweetnacl-modular/.libs/)
# [-cont.] compile your project with '-ltweetnacl'

CC:=$(CC)

CFLAGS:=-Wextra -Wformat-security -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow -Wstrict-prototypes -Wswitch-default -Wswitch-enum -Wunused -Wunused-result -Wlogical-op -g -O0 -DWITH_POSIX -fPIC

LDFLAGS:=-shared

SRC:=src/

INCLUDE:=-Iincludes

OBJ:=tweetnacl.o randombytes.o

SHARED:=libtweetnacl.so

MKDIR_P:=mkdir -p

.PHONY:	.libs app

LIB:=.libs

APP:=app

$(LIB):
	$(MKDIR_P) $(LIB)

all:	$(LIB) $(OBJ) $(SHARED) $(APP)

randombytes.o:	$(SRC)randombytes.c
	$(CC) -c $(CFLAGS) $(INCLUDE) $<

tweetnacl.o:	$(SRC)tweetnacl.c
	$(CC) -c $(CFLAGS) $(INCLUDE) $<

$(SHARED): $(OBJ)
	$(CC) $(CFLAGS) $(LDFLAGS) -o $(SHARED) $(OBJ)
	@rm -f $(PROGRAMS) $(OBJ) *~
	@mv $(SHARED) $(LIB)

$(APP):
	$(MAKE) -C $(APP)

clean:
	@rm -rf $(LIB)
	@rm -f $(PROGRAMS) $(OBJ) *~ *.so
	$(MAKE) -C $(APP) clean
{'fraction_non_alphanumeric': 0.19523809523809524, 'fraction_numerical': 0.0008658008658008658, 'mean_word_length': 4.424882629107981, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 7, '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': '4237841', 'n_tokens_mistral': 1024, 'n_tokens_neox': 956, 'n_words': 224}