ex02 done and modified 42header on files

This commit is contained in:
2025-09-19 13:10:16 +02:00
parent 7cce8266c4
commit 5373b7728d
12 changed files with 401 additions and 4 deletions

25
ex02/Makefile Normal file
View File

@@ -0,0 +1,25 @@
NAME = fragtrap
SRCS = main.cpp ClapTrap/ClapTrap.cpp ScavTrap/ScavTrap.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