-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
57 lines (46 loc) · 990 Bytes
/
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
##
## Makefile for pushswap in /home/wyzlic_a
##
## Made by Dimitri Wyzlic
## Login <wyzlic_a@epitech.net>
##
## Started on Thu Apr 21 15:01:37 2016 Dimitri Wyzlic
## Last update Fri Jul 8 21:43:26 2016 Dimitri Wyzlic
##
NAME = mysh
SRC = src/main.c \
lib/my_putchar.c \
lib/my_putstr.c \
lib/my_strlen.c \
lib/my_strstr.c \
lib/take_str.c \
lib/my_error.c \
lib/concastr.c \
lib/utils.c \
lib/utils_llist.c \
lib/my_put_nbr.c \
lib/get_next_line.c \
src/minishell.c \
src/startup_shell.c \
src/print_start.c \
src/get_env.c \
src/cmd.c \
src/cd.c \
src/exit_msg.c \
src/welcome.c \
src/utils_path.c \
src/parse_wave.c \
lib/str_to_tab.c
OBJ = $(SRC:.c=.o)
CFLAGS = -g -W -Wall -Wextra -ansi -I inc
all : $(NAME)
$(NAME) : $(OBJ)
cc $(OBJ) -o $(NAME)
clean :
rm -f $(OBJ)
fclean : clean
rm -f $(NAME)
re : fclean all
check-syntax:
gcc -W -Wall -o nul -I inc -S ${CHK_SOURCES}
.PHONY : all clean fclean re