Add: error manager
Added function to print errors corresponding to the packet type and code values
This commit is contained in:
5
Makefile
5
Makefile
@@ -2,7 +2,8 @@ NAME = ./ft_ping
|
||||
|
||||
SRCS = src/main.c \
|
||||
src/utils.c \
|
||||
src/flags.c
|
||||
src/flags.c \
|
||||
src/packets.c
|
||||
|
||||
|
||||
OBJ_DIR = objs
|
||||
@@ -32,8 +33,6 @@ $(OBJ_DIR)/%.o: %.c
|
||||
|
||||
all: $(NAME)
|
||||
|
||||
|
||||
|
||||
$(NAME): $(OBJ_DIR) $(OBJS)
|
||||
@echo "\e[1;32m[linking "$(MODE)" {"$(CC)"}...]\e[1;00m "$@
|
||||
@$(CC) -o $(NAME) $(OBJS) -lm
|
||||
|
||||
Reference in New Issue
Block a user