-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (38 loc) · 773 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
##
## EPITECH PROJECT, 2020
## Makefile
## File description:
## Makefile
##
SRC = src/main.c \
src/no_option_ls.c \
src/ls_l_option.c \
src/ls_d_option.c \
src/ls_r_option.c \
src/call_function.c \
src/simple_ls.c \
src/print_time.c \
src/sort_dir.c \
src/check_pathname.c \
src/right_print.c \
src/print_l_spe.c \
src/get_option.c
OBJ = $(SRC:.c=.o)
NAME = my_ls
CFLAGS += -Wall -Werror -Wshadow -Wshadow -I include/
all: $(NAME)
$(NAME): $(OBJ)
make re -C lib/my/
cc $(OBJ) -o $(NAME) -L./lib/ -lmy
unit_tests: $(OBJ)
make re -C lib/my/
make re -C tests/
run_tests:
./tests/unit_tests
clean:
rm -f $(OBJ)
fclean: clean
rm -f $(NAME)
make fclean -C lib/my/
rm -f lib/libmy.a
re: fclean all