-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·59 lines (41 loc) · 979 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
##
## Makefile for rt in /root/projets/igraph/rt
##
## Made by jalil dabbech
## Login <[email protected]>
##
## Started on Tue Oct 15 22:19:42 2013 jalil dabbech
## Last update Fri Oct 18 17:44:00 2013 jalil dabbech
##
NAME = rt
SRC = sources/main.c \
sources/fill_mat_and_coord.c \
sources/epur_str.c \
sources/scene.c \
sources/scene_bis.c
OBJ = $(SRC:.c=.o)
CC = gcc
DEBUG = 1
ifeq ($(DEBUG), 1)
CFLAGS += -W -Wall -Wextra -pedantic -ansi -Iincludes/ -I/usr/X11/include
else
CFLAGS += -Iincludes/ -I/usr/X11/include
endif
LIB_DIR = my
MK_LIB = @(cd $(LIB_DIR) && make)
MK_CLIB = @(cd $(LIB_DIR) && make clean)
MK_FLIB = @(cd $(LIB_DIR) && make fclean)
LDFLAGS = -L. -lmy -L/usr/X11/lib -lmlx -L/usr/lib64/X11 -lXext -lX11
RM = rm -f
all : $(NAME)
$(NAME) : $(OBJ)
$(MK_LIB)
$(CC) -o $(NAME) $(OBJ) $(LDFLAGS)
clean :
$(RM) $(OBJ)
$(MK_CLIB)
fclean : clean
$(RM) $(NAME)
$(MK_FLIB)
re : fclean all
.PHONY : all clean fclean re