1# **************************************************************************** #
4# Makefile :+: :+: :+: #
6# By: kamitsui <kamitsui@student.42tokyo.jp> +#+ +:+ +#+ #
8# Created: 2025/03/15 19:38:29 by kamitsui #+# #+# #
9# Updated: 2025/04/28 17:19:51 by kamitsui ### ########.fr #
11# **************************************************************************** #
14# @brief This File is a Makefile for building Fixed class in ex01 directory.
21SRCS = main.cpp Fixed.cpp Point.cpp bsp.cpp
23# Object files and dependency files
24OBJS = $(addprefix $(OBJ_DIR)/, $(SRCS:.cpp=.o))
25DEPS = $(addprefix $(DEP_DIR)/, $(SRCS:.cpp=.d))
32CXXFLAGS = -Wall -Wextra -Werror -std=c++98
33CF_DEP = -MMD -MP -MF $(@:$(OBJ_DIR)/%.o=$(DEP_DIR)/%.d)
35# Rules for building object files
39 $(CXX) $(CXXFLAGS) $(CF_DEP) -c $< -o $@
41# Rules for building dependency files
51 $(CXX) $(CXXFLAGS) $(OBJS) -o $(NAME)
52 $(call ASCII_ART,${NAME})
54# Rule for removing object & dependency files
56 rm -rf $(OBJ_DIR) $(DEP_DIR)
59# Rule for removing Target & others
64# Rule for Clean & Build Target
68# ASCII Art : Display Tips the way to use.
70 @echo " _____________________________________________"
73 @echo "----------------------------------------------"
75 @echo " \ (oo)\_______"