File tree Expand file tree Collapse file tree 2 files changed +40
-1
lines changed
Expand file tree Collapse file tree 2 files changed +40
-1
lines changed Original file line number Diff line number Diff line change 66/* By: cgodecke <cgodecke@student.42wolfsburg. +#+ +:+ +#+ */
77/* +#+#+#+#+#+ +#+ */
88/* Created: 2023/11/21 15:59:09 by cgodecke #+# #+# */
9- /* Updated: 2023/11/21 16:16:41 by cgodecke ### ########.fr */
9+ /* Updated: 2023/11/21 16:30:37 by cgodecke ### ########.fr */
1010/* */
1111/* ************************************************************************** */
1212
1616
1717int main (void )
1818{
19+
1920Data *data = new Data;
2021data->name = " Peter" ;
2122data->age = 42 ;
Original file line number Diff line number Diff line change 1+ # **************************************************************************** #
2+ # #
3+ # ::: :::::::: #
4+ # Makefile :+: :+: :+: #
5+ # +:+ +:+ +:+ #
6+ # By: cgodecke <cgodecke@student.42wolfsburg. +#+ +:+ +#+ #
7+ # +#+#+#+#+#+ +#+ #
8+ # Created: 2022/12/18 15:39:27 by cgodecke #+# #+# #
9+ # Updated: 2023/11/21 16:31:38 by cgodecke ### ########.fr #
10+ # #
11+ # **************************************************************************** #
12+
13+ C++ = c++
14+ C++_FLAGS = -Wall -Wextra -Werror -std=c++98 -pedantic
15+ INFILES = main.cpp\
16+ Serializer.cpp\
17+
18+ OBJFILES = $(INFILES:.cpp=.o )
19+
20+ NAME = Identify_real_type
21+
22+ all : $(NAME )
23+
24+ $(NAME ) :$(OBJFILES )
25+ $(C++ ) $(C++_FLAGS ) $(OBJFILES ) -o $(NAME )
26+
27+ % .o : % .cpp
28+ $(C++ ) $(C++_FLAGS ) -c $< -o $@
29+
30+ clean :
31+ rm -f $(OBJFILES )
32+
33+ fclean : clean
34+ rm -f $(NAME )
35+
36+ re : fclean all
37+
38+ .PHONY : all clean fclean re
You can’t perform that action at this time.
0 commit comments