This repository has been archived by the owner on Aug 13, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
55 lines (42 loc) · 1.55 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
52
53
54
55
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: ysamchuk <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2018/08/09 20:13:30 by ysamchuk #+# #+# #
# Updated: 2018/08/09 20:13:37 by ysamchuk ### ########.fr #
# #
# **************************************************************************** #
COLOR_OFF=\033[0m# # Text Reset
BLACK =\033[0;30m# # Black
RED =\033[0;31m# # Red
GREEN =\033[0;32m# # Green
YELLOW =\033[0;33m# # Yellow
BLUE =\033[0;34m# # Blue
PURPLE =\033[0;35m# # Purple
CYAN =\033[0;36m# # Cyan
WHITE =\033[0;37m# # White
OK_STRING =\#\#\# $(NAME) created \#\#\#
VM_D=./VM/
ASM_D=./ASSEMBLER/
VM= corewar
ASM= asm
all: virtual assemb
virtual:
@$(MAKE) -C $(VM_D)
@cp $(VM_D)$(VM) $(VM)
assemb:
@$(MAKE) -C $(ASM_D)
@cp $(ASM_D)$(ASM) $(ASM)
clean:
@$(MAKE) clean -C $(VM_D)
@$(MAKE) clean -C $(ASM_D)
fclean:
@$(MAKE) fclean -C $(VM_D)
@$(MAKE) fclean -C $(ASM_D)
@rm -f $(VM)
@rm -f $(ASM)
re: fclean all
.PHONY: all, clean, fclean, re