Skip to content

Commit c4399ce

Browse files
committed
started ex02
1 parent e47ee3f commit c4399ce

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

ex01/main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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

@@ -16,6 +16,7 @@
1616

1717
int main(void)
1818
{
19+
1920
Data *data = new Data;
2021
data->name = "Peter";
2122
data->age = 42;

ex02/Makefile

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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

0 commit comments

Comments
 (0)