46 lines
974 B
Makefile
46 lines
974 B
Makefile
NAME = rsa
|
|
|
|
SRC = \
|
|
main.c \
|
|
rsa.c \
|
|
bigint.c \
|
|
array.c \
|
|
utils.c \
|
|
primes.c \
|
|
|
|
all: $(NAME)
|
|
|
|
$(NAME):
|
|
gcc -Wall -Wextra -Werror -Wunused-function $(SRC) -o $(NAME)
|
|
|
|
fast:
|
|
gcc -Wall -Wextra -Werror -Wunused-function -O3 $(SRC) -o $(NAME)
|
|
|
|
fast-info:
|
|
gcc -Wall -Wextra -Werror -Wunused-function -O3 -fopt-info $(SRC) -o $(NAME)
|
|
|
|
really-fast:
|
|
gcc -Wall -Wextra -Werror -Wunused-function -O3 -march=native $(SRC) -o $(NAME)
|
|
|
|
really-fast-info:
|
|
gcc -Wall -Wextra -Werror -Wunused-function -O3 -march=native -fopt-info $(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
|