-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·57 lines (47 loc) · 1.98 KB
/
Makefile
File metadata and controls
executable file
·57 lines (47 loc) · 1.98 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: shebaz <shebaz@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2024/11/25 00:05:54 by shebaz #+# #+# #
# Updated: 2024/12/21 05:55:47 by shebaz ### ########.fr #
# #
# **************************************************************************** #
CFLAGS = -Wall -Wextra -Werror
CC = cc
LFLAGS = -lreadline
NAME = minishell
SRCS = $(wildcard externel_folder/libftt/*.c) \
$(wildcard externel_folder/gnl/*.c) \
$(wildcard parsing/tokens/*.c) \
$(wildcard parsing/parser/*.c) \
$(wildcard parsing/signal/*.c) \
$(wildcard parsing/minishel_utils/*.c) \
$(wildcard parsing/generate_struct/*.c) \
$(wildcard execution/builtins/export/*.c ) \
$(wildcard execution/exec/check/*.c) \
$(wildcard execution/exec/execute/*.c) \
$(wildcard execution/exec/*.c) \
execution/builtins/cd/cd.c \
execution/builtins/echo/echo.c \
execution/builtins/env/env.c \
execution/builtins/exit/exit.c \
execution/builtins/exit/exit_utils.c \
execution/builtins/pwd/pwd.c \
execution/builtins/unset/unset.c \
main_util2.c \
main_util1.c\
main.c \
OBJS = $(SRCS:.c=.o)
all: $(NAME)
$(NAME): $(OBJS)
$(CC) $(CFLAGS) -o $(NAME) $(OBJS) $(LFLAGS)
%.o: %.cmake
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -rf $(OBJS)
fclean: clean
rm -rf $(NAME)
re: fclean all