-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
61 lines (48 loc) · 946 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
58
59
60
61
##
## Makefile for Makefile in /home/thibrex/delivery/CPool_Day10/do-op
##
## Made by Thibaut Cornolti
## Login <[email protected]>
##
## Started on Sat Oct 15 22:12:03 2016 Thibaut Cornolti
## Last update Sun Mar 19 18:24:30 2017 Bastien
##
SRC = tetris.c \
parser.c \
parser_utils.c \
parser_setter.c \
setupterm.c \
utils.c \
mini_utils.c \
title.c \
tools.c \
debug.c \
pause.c \
display.c \
display_utils.c \
drawer.c \
tetrimino.c \
check_tetrimino.c \
check.c \
set_rotated.c \
game.c \
game_utils.c \
score.c \
action_game.c \
remove_line.c
OBJS = $(SRCS:.c=.o)
NAME = tetris
CC = gcc
HEADER = include/
RM = rm -f
LIB_P = -Llib/my
LIB = -lmy -lncurses
all: $(NAME)
$(NAME):
cd lib/my/ && make
$(CC) -o $(NAME) -I$(HEADER) $(SRC) $(LIB_P) $(LIB) -Wall -Wextra -pedantic
clean:
$(RM) $(OBJS)
fclean: clean
$(RM) $(NAME)
re: fclean all