-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
executable file
·67 lines (48 loc) · 1.26 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
62
63
64
65
66
67
##
## Makefile for nm in /home/mesure_a/workspace/c/nm-objdump/nm
##
## Made by arnaud mesureur
## Login <mesure_a@epitech.net>
##
## Started on Tue Mar 1 18:02:17 2011 arnaud mesureur
## Last update Sun Mar 13 15:42:47 2011 arnaud mesureur
##
# \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
# ** VARIABLES **
# //////////////////////////////////////////////////
SHELL := /bin/sh
# //////////////////////////////////////////////////
# ** Directories & Path
NM := my_nm
OBJDUMP := my_objdump
NM_DIR := nm
OBJDUMP_DIR := objdump
# //////////////////////////////////////////////////
# ** tools
CP := cp
# \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
# *** RULES ***
# //////////////////////////////////////////////////
all : $(NM) $(OBJDUMP)
$(NM) :
$(MAKE) -C $(NM_DIR)
-$(CP) $(NM_DIR)/$(NM) .
$(OBJDUMP) :
$(MAKE) -C $(OBJDUMP_DIR)
-$(CP) $(OBJDUMP_DIR)/$(OBJDUMP) .
clean :
$(MAKE) -C $(NM_DIR) clean
$(MAKE) -C $(OBJDUMP_DIR) clean
fclean :
$(MAKE) -C $(NM_DIR) fclean
$(MAKE) -C $(OBJDUMP_DIR) fclean
$(RM) $(NM)
$(RM) $(OBJDUMP)
re :
$(RM) $(NM)
$(RM) $(OBJDUMP)
$(MAKE) -C $(NM_DIR) re
$(MAKE) -C $(OBJDUMP_DIR) re
-$(CP) $(NM_DIR)/$(NM) .
-$(CP) $(OBJDUMP_DIR)/$(OBJDUMP) .
.PHONY : all clean fclean re