NAME = rsa

SRC = \
	main.c \
	rsa.c \
	bigint.c \
	array.c \
	utils.c \

all: $(NAME)

$(NAME):
	gcc -Wall -Wextra -Werror -Wunused-function $(SRC) -o $(NAME)

fast:
	gcc -Wall -Wextra -Werror -Wunused-function -O3 $(SRC) -o $(NAME)

profile:
	gcc -Wall -Wextra -Werror -Wunused-function -pg $(SRC) -o $(NAME)

profile-clang:
	clang -Wall -Wextra -Werror -Wunused-function -pg $(SRC) -o $(NAME)

profile-fast:
	gcc -Wall -Wextra -Werror -Wunused-function -O3 -pg $(SRC) -o $(NAME)

profile-fast-clang:
	clang -Wall -Wextra -Werror -Wunused-function -O3 -pg $(SRC) -o $(NAME)

fclean:
	rm -rf $(NAME)

re: fclean all

.PHONY: all fast profile profile-fast fclean re