forked from QuentinBrosse/Malefice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
62 lines (44 loc) · 1.36 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
56
57
58
59
60
61
##
## Makefile for Malefice in /home/trucho_g/rendu/Malefice
##
## Made by Guillaume Truchot
## Login <[email protected]>
##
## Started on Fri Jun 10 16:35:04 2016 Guillaume Truchot
## Last update Fri Jun 10 16:44:33 2016 Guillaume Truchot
##
SHARED_NAME = libShared.so
CLIENT_CORE_NAME = client_core
SERVER_CORE_NAME = server_core
SHARED_DIR = Shared/
CLIENT_CORE_DIR = Client/Client.Core/
SERVER_CORE_DIR = Server/Server.Core/
OUTPUT_DIR = Binaries/Debug/
SHARED_PATH = $(SHARED_DIR)$(SHARED_NAME)
CLIENT_CORE_PATH = $(CLIENT_CORE_DIR)$(CLIENT_CORE_NAME)
SERVER_CORE_PATH = $(SERVER_CORE_DIR)$(SERVER_CORE_NAME)
CP = cp
RM = rm -f
all: $(SHARED_PATH) $(CLIENT_CORE_PATH) $(SERVER_CORE_PATH)
$(SHARED_PATH):
$(MAKE) -C $(SHARED_DIR) all
$(CP) $(SHARED_PATH) $(OUTPUT_DIR)
$(CLIENT_CORE_PATH):
$(MAKE) -C $(CLIENT_CORE_DIR) all
$(CP) $(CLIENT_CORE_PATH) $(OUTPUT_DIR)
$(SERVER_CORE_PATH):
$(MAKE) -C $(SERVER_CORE_DIR) all
$(CP) $(SERVER_CORE_PATH) $(OUTPUT_DIR)
clean:
$(MAKE) -C $(SHARED_DIR) clean
$(MAKE) -C $(CLIENT_CORE_DIR) clean
$(MAKE) -C $(SERVER_CORE_DIR) clean
fclean:
$(MAKE) -C $(SHARED_DIR) fclean
$(MAKE) -C $(CLIENT_CORE_DIR) fclean
$(MAKE) -C $(SERVER_CORE_DIR) fclean
$(RM) $(OUTPUT_DIR)$(SHARED_NAME)
$(RM) $(OUTPUT_DIR)$(CLIENT_CORE_NAME)
$(RM) $(OUTPUT_DIR)$(SERVER_CORE_NAME)
re: fclean all
.PHONY: all clean fclean re