-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
38 lines (28 loc) · 1.23 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: llefranc <llefranc@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/01/04 11:24:58 by llefranc #+# #+# #
# Updated: 2021/01/14 13:11:03 by llefranc ### ########.fr #
# #
# **************************************************************************** #
NAME = microshell
CC = clang
FLAGS = -Wall -Wextra -Werror
SRCS = microshell.c
OBJS = $(SRCS:.c=.o)
all : $(NAME)
$(NAME) : $(OBJS)
$(CC) -o $(NAME) $(FLAGS) $(OBJS)
clean :
rm -rf $(OBJS)
fclean : clean
rm -rf $(NAME)
re : fclean all
.PHONY : all clean fclean re
%.o : %.c
$(CC) $(FLAGS) -o $@ -c $<
# for creating .o with flags