Brain added

This commit is contained in:
Angel Ortigosa Perez
2025-11-10 11:47:40 +01:00
parent 5ab7e97c1e
commit a6f3e7ea31
14 changed files with 526 additions and 0 deletions

28
ex01/Makefile Normal file
View File

@@ -0,0 +1,28 @@
NAME = animals
SRCS = main.cpp Animal/Animal.cpp Dog/Dog.cpp Cat/Cat.cpp \
WrongAnimal/WrongAnimal.cpp WrongCat/WrongCat.cpp \
Brain/Brain.cpp
OBJS = $(SRCS:.cpp=.o)
CC = c++
CFLAGS = -Wall -Wextra -Werror -std=c++98
all: $(NAME)
$(NAME): $(OBJS)
$(CC) $(CFLAGS) $(OBJS) -o $(NAME)
%.o: %.cpp
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -f $(OBJS)
fclean: clean
rm -f $(NAME)
re: fclean all
.PHONY: all clean fclean re