narnaud
3 years ago
25 changed files with 136 additions and 128 deletions
@ -1,16 +1,21 @@ |
|||||
NAME = megaphone |
NAME = megaphone |
||||
SRC = main.cpp |
SRC = main.cpp |
||||
|
OBJ = main.o |
||||
|
|
||||
CC = c++ |
CXXFLAGS = -std=c++98 -Wall -Werror -Wextra |
||||
CFLAGS = -std=c++98 -Wall -Werror -Wextra |
|
||||
RM = rm -rf |
RM = rm -rf |
||||
|
|
||||
$(NAME): $(SRC) |
$(NAME): $(OBJ) |
||||
$(CC) $(CFLAGS) $(SRC) -o $(NAME) |
c++ $(OBJ) -o $(NAME) |
||||
|
|
||||
all: $(NAME) |
all: $(NAME) |
||||
|
|
||||
clean: |
clean: |
||||
|
$(RM) $(OBJ) |
||||
|
|
||||
|
fclean: clean |
||||
$(RM) $(NAME) |
$(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