-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
161 lines (141 loc) · 3.75 KB
/
Makefile
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
##
## Makefile for Make in /home/moriss_h//afs/rendu/lib/my
##
## Made by hugues morisset
## Login <[email protected]>
##
## Started on Mon Oct 22 09:20:28 2012 hugues morisset
## Last update Sun May 26 20:33:34 2013 Hugues
##
CC = gcc
RM = rm
NAME = 42SH
COMPILEFLAG = -g -Wall -Wextra
INCLUDE = -Iinclude/
LIBS = -ltermcap
CFLAGS = $(COMPILEFLAG) $(INCLUDE)
SRCPATH = src
BUILTINS = src/builtins
PATHLINE = src/edition_line/
LIBLINE = src/edition_line/lib
PATHTERMCAP = src/edition_line/termcap/
PATHENV = src/env
PATHRED = src/redirection
PATHGLOBB = src/edition_line/globb
SRC = $(SRCPATH)/main.c \
$(SRCPATH)/stc.c \
$(SRCPATH)/backquotes.c \
$(SRCPATH)/inib_str_to_wordtab.c \
$(SRCPATH)/str.c \
$(SRCPATH)/my_uint64_t_strbase.c \
$(SRCPATH)/tr_str.c \
$(SRCPATH)/shell.c \
$(SRCPATH)/str_to_wordtab.c \
$(SRCPATH)/mult_str_to_wordtab.c \
$(SRCPATH)/signal.c \
$(SRCPATH)/job.c \
$(SRCPATH)/jobs_forground.c \
$(SRCPATH)/is_grp_exec.c \
$(SRCPATH)/fd.c \
$(SRCPATH)/swap_ptr.c \
$(SRCPATH)/alias.c \
$(SRCPATH)/parse_cmd.c \
$(SRCPATH)/process_group.c \
$(SRCPATH)/exec_process.c \
$(SRCPATH)/tty.c \
$(SRCPATH)/pipe.c \
$(SRCPATH)/cmd.c \
$(SRCPATH)/wait.c \
$(SRCPATH)/load_conf.c \
$(SRCPATH)/store_conf.c \
$(SRCPATH)/cmd_full_path.c \
$(SRCPATH)/ptr_tab.c \
$(SRCPATH)/get_next_line.c \
$(SRCPATH)/get_file.c \
$(SRCPATH)/variable.c \
$(SRCPATH)/my_getnbr.c \
$(SRCPATH)/clean_tab.c \
$(SRCPATH)/error.c \
$(SRCPATH)/my_exit.c \
$(SRCPATH)/my_put_nbr.c \
$(SRCPATH)/my_putchar.c \
$(SRCPATH)/delete_history.c \
$(SRCPATH)/history.c \
$(SRCPATH)/get_cmd_history.c \
$(SRCPATH)/init_edition_line.c \
$(SRCPATH)/add_history.c \
$(SRCPATH)/gere_history.c \
$(SRCPATH)/gere_valide_saisi.c \
$(SRCPATH)/and_or.c \
$(SRCPATH)/redirection.c \
$(SRCPATH)/user_input.c \
$(SRCPATH)/cat.c \
$(SRCPATH)/reg_expr.c \
$(SRCPATH)/str_fille_tstr.c \
$(SRCPATH)/check_if_folder.c \
$(SRCPATH)/my_memset.c \
$(SRCPATH)/parseur_history.c
ENV = $(PATHENV)/env.c
SRCBUILTINS = $(BUILTINS)/builtins.c \
$(BUILTINS)/fg.c \
$(BUILTINS)/bg.c \
$(BUILTINS)/jobs.c \
$(BUILTINS)/robert.c \
$(BUILTINS)/cd.c \
$(BUILTINS)/echo.c \
$(BUILTINS)/env.c \
$(BUILTINS)/setenv.c \
$(BUILTINS)/unsetenv.c \
$(BUILTINS)/exit.c \
$(BUILTINS)/history.c \
$(BUILTINS)/alias.c \
$(BUILTINS)/source.c \
$(BUILTINS)/clear.c
SRCLINE = $(PATHLINE)main.c \
$(PATHLINE)read_cmd.c \
$(PATHLINE)gere_keyboard.c \
$(PATHLINE)decal_string.c \
$(PATHLINE)view.c \
$(PATHLINE)suppression.c \
$(PATHLINE)gere_control.c \
$(PATHLINE)start_end_cmd.c \
$(PATHLINE)clear.c \
$(PATHLINE)control_y.c \
$(PATHLINE)control_k.c \
$(PATHLINE)update_pos.c \
$(PATHLINE)refresh_view.c \
$(PATHLINE)gere_window.c \
$(PATHLINE)globb.c \
$(PATHLINE)return_globb_str.c \
$(PATHLINE)view_globb.c \
$(PATHLINE)completation.c \
$(PATHLINE)plus_completation.c \
$(PATHLINE)gere_control_u.c \
$(PATHLINE)return_string.c \
$(PATHLINE)add_caractere.c \
SRCLIBLINE = $(LIBLINE)/str_cmp.c
SRCTERMCAP = $(PATHTERMCAP)coordone.c \
$(PATHTERMCAP)mod_raw.c \
$(PATHTERMCAP)curseur.c \
$(PATHTERMCAP)get_pos_curser.c \
$(PATHTERMCAP)clear.c \
$(PATHTERMCAP)verif_env.c \
$(PATHTERMCAP)init_termcap.c \
$(PATHTERMCAP)print_termcap.c \
$(PATHTERMCAP)read_tty.c
OBJ = $(SRC:.c=.o) \
$(SRCBUILTINS:.c=.o) \
$(ENV:.c=.o) \
$(SRCLINE:.c=.o) \
$(SRCLIBLINE:.c=.o) \
$(SRCTERMCAP:.c=.o) \
$(SRCRED:.c=.o) \
$(SRCGLOBB:.c=.o)
$(NAME): $(OBJ)
$(CC) $(OBJ) -o $(NAME) $(CFLAGS) $(LIBS)
all: $(NAME)
clean:
$(RM) -f $(OBJ)
fclean: clean
$(RM) -f $(NAME)
re: fclean all