-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
55 lines (39 loc) · 919 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
##
## Makefile for allum1 in /home/dabbec_j/projets/sysunix/allum1
##
## Made by jalil dabbech
## Login <[email protected]>
##
## Started on Thu Jun 06 16:16:01 2013 jalil dabbech
## Last update Fri Jul 12 05:06:34 2013 jalil dabbech
##
NAME = allum1
SRC = sources/main.c \
sources/manage_options.c \
sources/allum1.c \
sources/my_list.c \
sources/manage_movment.c \
sources/my_ia.c \
sources/windows.c \
sources/my_triangle.c \
sources/my_printw.c
OBJ = $(SRC:.c=.o)
CC = gcc -Iincludes/
CFLAGS = -W -Wall -Wextra -pedantic -ansi
LIB_DIR = my
MK_LIB = @(cd $(LIB_DIR) && make)
MK_CLIB = @(cd $(LIB_DIR) && make clean)
MK_FLIB = @(cd $(LIB_DIR) && make fclean)
LIB = -lncurses -lmy -L.
RM = rm -f
all : $(NAME)
$(NAME) : $(OBJ)
$(MK_LIB)
$(CC) $(CFLAGS) -o $(NAME) $(OBJ) $(LIB)
clean :
$(RM) $(OBJ)
$(MK_CLIB)
fclean : clean
$(RM) $(NAME)
$(MK_FLIB)
re : fclean all