CPP05/common.mk
whaffman bf2416c5c7 Add Bureaucrat and Form classes with color-coded output
- Implemented Bureaucrat class with constructors, destructors, and operator overloads.
- Added Form class with constructors, destructors, and methods for signing.
- Introduced color definitions in colors.h for enhanced console output.
- Integrated color-coded messages in Bureaucrat and Form methods for better visibility.
- Developed main function to demonstrate functionality and exception handling for Bureaucrat and Form.
2025-06-24 13:36:11 +02:00

40 lines
1.2 KiB
Makefile

# **************************************************************************** #
# #
# :::::::: #
# common.mk :+: :+: #
# +:+ #
# By: whaffman <whaffman@student.codam.nl> +#+ #
# +#+ #
# Created: 2025/03/21 15:00:16 by whaffman #+# #+# #
# Updated: 2025/03/21 15:04:44 by whaffman ######## odam.nl #
# #
# **************************************************************************** #
INC = -I./inc
VPATH = src
SRC = $(notdir $(wildcard src/*.cpp))
OBJ = $(SRC:.cpp=.o)
CC = c++
CFLAGS = -Wall -Wextra -Werror -std=c++11
all: $(NAME)
run: all
./$(NAME)
$(NAME): $(OBJ)
$(CC) $(CFLAGS) $(OBJ) -o $(NAME)
%.o: %.cpp
$(CC) $(CFLAGS) $(INC) -c $< -o $@
clean:
rm -f $(OBJ)
fclean: clean
rm -f $(NAME)
re: fclean all
.PHONY: all clean fclean re run