-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
44 lines (39 loc) · 2.05 KB
/
makefile
File metadata and controls
44 lines (39 loc) · 2.05 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
# **************************************************************************** #
# #
# ::: :::::::: #
# makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: nosahimi <nosahimi@student.1337.ma> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2025/08/22 23:53:04 by nosahimi #+# #+# #
# Updated: 2025/08/22 23:53:33 by nosahimi ### ########.fr #
# #
# **************************************************************************** #
CC = cc
CFLAGS = -Wall -Wextra -Werror -Iinclude
CFILES= parsing/build_cmd.c parsing/env.c parsing/is_functions.c \
parsing/token_list.c minishell.c parsing/join.c \
parsing/expand_tools.c parsing/extoken_list.c \
parsing/extokenizer.c parsing/build_cmd_list.c\
parsing/rdrs_list.c parsing/parsing.c parsing/expand.c \
parsing/syntax.c parsing/tokenizer.c parsing/utils.c \
parsing/mini_libft.c parsing/cmd_args.c parsing/is_functions_two.c\
parsing/mmtracker.c parsing/llmmtracker.c parsing/heredoc.c parsing/utils_init.c\
builtin/cd.c builtin/echo.c builtin/eenv.c builtin/exit.c builtin/export.c\
builtin/pwd.c builtin/unset.c builtin/utilis_export.c builtin/utils_cd.c builtin/export_help.c\
execution/execution.c execution/pipe.c execution/segnals.c execution/split.c \
execution/utils_ex.c execution/help_norme.c execution/help_red.c execution/pipe_help.c\
execution/pipe_help2.c execution/execution_builtin.c
OBJ_FILES = $(CFILES:.c=.o)
NAME=minishell
all: $(NAME)
$(NAME): $(OBJ_FILES)
$(CC) $(OBJ_FILES) -o $(NAME) -lreadline
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -f $(OBJ_FILES)
fclean: clean
rm -f $(NAME)
re: fclean all
.PHONY: clean