You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
663 B
33 lines
663 B
NAME=ft_nm
|
|
|
|
PRINTF=lib/libftprintf.a
|
|
|
|
all: $(NAME)
|
|
|
|
$(NAME): $(PRINTF)
|
|
@gcc -Wall -Wextra -Werror -o $(NAME) main.c nm/nm32.c nm/nm64.c nm/is.c -I includes -L lib -lftprintf
|
|
|
|
$(PRINTF):
|
|
@make -C ft_printf
|
|
cp ft_printf/libftprintf.a lib/
|
|
cp ft_printf/libft/libft.h includes/
|
|
cp ft_printf/ft_printf.h includes/
|
|
|
|
tests:
|
|
@./testster.sh
|
|
|
|
debug:
|
|
@gcc -Wall -Wextra -Werror -g -o $(NAME) main.c nm/nm32.c nm/nm64.c nm/is.c -I includes
|
|
|
|
readelf:
|
|
@gcc -DREADELF -g -Wall -Wextra -Werror -o ft_re main.c re/re32.c re/re64.c re/gets.c -I includes
|
|
|
|
clean:
|
|
@rm -rf ./exterminatests/*/*/logs
|
|
@rm -f $(NAME)
|
|
|
|
fclean: clean
|
|
|
|
re: fclean all
|
|
|
|
.PHONY: all clean fclean re
|
|
|