-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (37 loc) · 1.34 KB
/
Makefile
File metadata and controls
40 lines (37 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: mleitner <mleitner@student.42vienna.com +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/01/31 13:37:13 by mleitner #+# #+# #
# Updated: 2023/02/20 17:12:18 by mleitner ### ########.fr #
# #
# **************************************************************************** #
C_FILES = main.c \
ft_helper.c \
ft_lst.c \
ft_qs.c \
ft_rdx.c \
ft_helper2.c \
ft_error.c \
ft_small.c \
ft_medium.c \
ft_parse.c \
ft_instr.c
O_FILES = ${C_FILES:.c=.o}
CFLAGS += -Wall -Wextra -Werror -g
NAME = push_swap
CC = cc
.PHONY: all clean fclean re
all: $(NAME)
$(NAME): $(O_FILES)
$(CC) $(CFLAGS) $(O_FILES) -o $(NAME)
clean:
rm -f $(O_FILES)
fclean: clean
rm -f $(NAME)
.c.o:
${CC} ${CFLAGS} -c $< -o ${<:.c=.o}
re: fclean all