-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (40 loc) · 1.42 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
42
43
44
45
46
47
48
49
50
51
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: jjauzion <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2018/03/08 11:25:23 by jjauzion #+# #+# #
# Updated: 2018/06/28 15:36:40 by smortier ### ########.fr #
# #
# **************************************************************************** #
.PHONY: all, clean, fclean, re, LIB, vm
NAME1 = vm
NAME2 = asm
CC = gcc
ifdef FLAG
ifeq ($(FLAG), no)
CFLAGS =
DBFLAGS =
endif
ifeq ($(FLAG), debug)
CFLAGS = -Wall -Wextra -Werror
DBFLAGS = -g3 -fsanitize=address
endif
else
CFLAGS = -Wall -Wextra -Werror
DBFLAGS =
endif
all: $(NAME1) $(NAME2)
$(NAME1): virtual_machine
make -C virtual_machine
$(NAME2): assembleur
make -C assembleur
clean:
@make -C virtual_machine clean
@make -C assembleur clean
fclean: clean
@make -C virtual_machine fclean
@make -C assembleur fclean
re: fclean all