Init ex02

This commit is contained in:
2025-09-10 23:58:23 +02:00
parent 9be6499649
commit 9df8240460
4 changed files with 251 additions and 0 deletions

25
ex02/Makefile Normal file
View File

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