-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
41 lines (29 loc) · 779 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
##
## Makefile for bmp_loader in /home/lombar_e/github/bmp_loader
##
## Made by Thomas Lombard
## Login <[email protected]>
##
## Started on Tue Jan 10 15:21:32 2017 Thomas Lombard
## Last update Tue Jan 10 15:21:32 2017 Thomas Lombard
##
NAME = test
CFLAGS += -W -Wall -Wextra
CFLAGS += -I include/
CFLAGS += -Os -Ofast
LDFLAGS += -L./src/ -lbmp
RM = rm -f
CC = clang
PROJ_SRC= main.c
PROJ = $(PROJ_SRC:.c=.o)
$(NAME): $(PROJ) $(GRAPH)
@ make -C src/ && echo "Compilation de la librairie bmp"
$(CC) -o $(NAME) $(PROJ) $(LDFLAGS)
all: $(NAME)
clean:
@ make clean -C src/ && echo "Clean de la librairie bmp"
$(RM) $(LIB) $(PROJ) $(GRAPH) $(LIB_NAME)
fclean: clean
@ make fclean -C src/ && echo "Fclean de la librairie bmp"
$(RM) $(NAME)
re: fclean all