-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (32 loc) · 1.3 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: lscariot <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2016/01/22 09:44:59 by lscariot #+# #+# #
# Updated: 2016/05/31 14:08:06 by lscariot ### ########.fr #
# #
# **************************************************************************** #
NAME = 42sh
CC = clang
S_DIR =
O_DIR =
I_DIR =
FLAGS = -O3 -g -Wall -Wextra -Werror $(I_DIR) $(LIBS_DIR)
FILES = main.c \
LIBS_F = ./libft/libft.a
SRC = $(addprefix $(S_DIR),$(FILES))
OBJS = $(addprefix $(O_DIR),$(FILES:.c=.o))
LIBS = $(addprefix -L. -l,$(LIBS_F))
RM = rm -f
all: $(NAME)
$(NAME):
@make -C src
clean:
@make -C src clean
fclean: clean
@make -C src fclean
re: fclean all
.PHONY: re clean fclean all