narnaud
3 years ago
25 changed files with 136 additions and 128 deletions
@ -1,16 +1,21 @@ |
|||
NAME = megaphone |
|||
SRC = main.cpp |
|||
OBJ = main.o |
|||
|
|||
CC = c++ |
|||
CFLAGS = -std=c++98 -Wall -Werror -Wextra |
|||
CXXFLAGS = -std=c++98 -Wall -Werror -Wextra |
|||
RM = rm -rf |
|||
|
|||
$(NAME): $(SRC) |
|||
$(CC) $(CFLAGS) $(SRC) -o $(NAME) |
|||
$(NAME): $(OBJ) |
|||
c++ $(OBJ) -o $(NAME) |
|||
|
|||
all: $(NAME) |
|||
|
|||
clean: |
|||
$(RM) $(OBJ) |
|||
|
|||
fclean: clean |
|||
$(RM) $(NAME) |
|||
|
|||
.PHONY: all re |
|||
re: fclean all |
|||
|
|||
.PHONY: all clean fclean re |
|||
|
Binary file not shown.
@ -0,0 +1,20 @@ |
|||
NAME = phonebook |
|||
SRCS = main.cpp PhoneBook.cpp Contact.cpp |
|||
OBJS = $(SRCS:.cpp=.o) |
|||
|
|||
CXXFLAGS = -std=c++98 -Werror -Wextra -Wall |
|||
|
|||
$(NAME): $(OBJS) |
|||
c++ $(OBJS) -o $(NAME) |
|||
|
|||
all: $(NAME) |
|||
|
|||
clean: |
|||
rm -rf $(OBJS) |
|||
|
|||
fclean: clean |
|||
rm -rf $(NAME) |
|||
|
|||
re: fclean all |
|||
|
|||
.PHONY: all clean fclean re |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue