move icmp packet prepartion to file icmp.c

This commit is contained in:
2025-04-24 22:54:03 +02:00
parent 01df0d6cb0
commit e622d9d175
4 changed files with 79 additions and 61 deletions

View File

@ -5,14 +5,15 @@ FLAGS=-Werror -Wextra -Wall -g
SRCS_DIR = srcs
OBJS_DIR = .objs
SRCS = ft_ping.c
SRCS = ft_ping.c\
icmp.c
OBJS = $(addprefix $(OBJS_DIR)/,$(SRCS:.c=.o))
all: $(NAME)
$(NAME): $(OBJS)
$(CC) $(FLAGS) $< -o $@
$(CC) $(FLAGS) $^ -o $@
$(OBJS_DIR):
mkdir $(OBJS_DIR)