-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
executable file
·41 lines (30 loc) · 1.34 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: jaleman <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2016/11/10 20:43:53 by jaleman #+# #+# #
# Updated: 2016/11/29 15:14:50 by thendric ### ########.fr #
# #
# **************************************************************************** #
NAME = fillit
SRC = main.c fillit_read.c fillit_tetromino.c fillit_solve.c \
ft_bzero.c ft_strsplit.c ft_putchar.c ft_putstr.c \
ft_strlen.c ft_memdel.c ft_memset.c ft_sqrt.c ft_putstr_fd.c \
ft_wordcount.c ft_wordlen.c
OBJ = $(SRC:.c=.o)
CC = gcc
CFLAGS = -Wall -Wextra -Werror
SRCDIR = ./srcs/
all: $(NAME)
%.o:$(SRCDIR)%.c
$(CC) $(CFLAGS) -o $@ -c $<
$(NAME): $(OBJ)
$(CC) -o $(NAME) $(OBJ)
clean:
rm -rf $(OBJ)
fclean: clean
rm -rf $(NAME)
re: fclean all