My own elf programs.
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.
 
 
 
 
 
 

36 lines
751 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/includes/libft.h includes/
cp ft_printf/includes/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:
${MAKE} -C ft_printf clean
rm -rf ./exterminatests/*/*/logs
rm -f $(NAME)
fclean: clean
${MAKE} -C ft_printf fclean
rm -rf lib/libftprintf.a
re: fclean all
.PHONY: all clean fclean re