<commit_before>PROJ_NAME=libstrong-arm
OBJDIR = build

SRCS = src/strong-arm.c \
       src/base58/base58.c \
       src/drbg/HMAC_DRBG.c \
       src/ecdsa/ecdsa.c \
       src/finite_field/ff_big.c \
       src/finite_field/finite_field.c \
       src/hmac/hmac.c \
       src/pbkdf2/pbkdf2.c \
       src/private/util.c \
       src/ripemd160/ripemd160.c \
       src/sha256/sha256.c \
       src/aes/aes256.c \
       src/utils.c \
       src/asn1/der.c \
       src/keychain/keychain.c


CFLAGS = -g -Wall -Wextra -Wno-missing-braces -Wno-missing-field-initializers -std=c99

ifdef CYGWIN_MINGW
	CC=i686-pc-mingw32-gcc
	OBJCOPY=i686-pc-mingw32-objcopy
	AR=i686-pc-mingw32-ar
else
	# ARM Cortex M4 (STM32F4)
	CC=arm-none-eabi-gcc
	OBJCOPY=arm-none-eabi-objcopy
	AR=arm-none-eabi-ar

	CFLAGS += -mthumb -mcpu=cortex-m4
	#CFLAGS += -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork
	#CFLAGS += -mfloat-abi=hard -mfpu=fpv4-sp-d16
	CFLAGS += -mfloat-abi=soft
	# TODO: hard float was causing an exception; see what's up.<commit_msg>Makefile now defines TARGET_STM32F4 if targetting an STM32F4, so platform dependant code can be included conditionally.<commit_after>PROJ_NAME=libstrong-arm
OBJDIR = build

SRCS = src/strong-arm.c \
       src/base58/base58.c \
       src/drbg/HMAC_DRBG.c \
       src/ecdsa/ecdsa.c \
       src/finite_field/ff_big.c \
       src/finite_field/finite_field.c \
       src/hmac/hmac.c \
       src/pbkdf2/pbkdf2.c \
       src/private/util.c \
       src/ripemd160/ripemd160.c \
       src/sha256/sha256.c \
       src/aes/aes256.c \
       src/utils.c \
       src/asn1/der.c \
       src/keychain/keychain.c


CFLAGS = -g -Wall -Wextra -Wno-missing-braces -Wno-missing-field-initializers -std=c99

ifdef CYGWIN_MINGW
	CC=i686-pc-mingw32-gcc
	OBJCOPY=i686-pc-mingw32-objcopy
	AR=i686-pc-mingw32-ar
else
	# ARM Cortex M4 (STM32F4)
	CC=arm-none-eabi-gcc
	OBJCOPY=arm-none-eabi-objcopy
	AR=arm-none-eabi-ar

	CFLAGS += -mthumb -mcpu=cortex-m4
	#CFLAGS += -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork
	#CFLAGS += -mfloat-abi=hard -mfpu=fpv4-sp-d16
	CFLAGS += -mfloat-abi=soft
	# TODO: hard float was causing an exception; see what's up.
	CFLAGS += -DTARGET_STM32F4
{'fraction_non_alphanumeric': 0.1306509945750452, 'fraction_numerical': 0.04746835443037975, 'mean_word_length': 2.5015822784810124, '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': '3411220', 'n_tokens_mistral': 1036, 'n_tokens_neox': 955, 'n_words': 140}