forked from OpenMeridian/Meridian59
-
Notifications
You must be signed in to change notification settings - Fork 3
/
makefile
124 lines (103 loc) · 2.49 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
#
# overall makefile
#
TOPDIR=.
!include common.mak
.SILENT:
# make ignores targets if they match directory names
all: Bzlib Blibarchive Blibpng Bjansson Bserver Bclient Bmodules Bkod Bdeco Bupdater Bbbgun Bkeybind Bresource
Bserver: Bresource Bjansson
echo Making $(COMMAND) in $(BLAKSERVDIR)
cd $(BLAKSERVDIR)
$(MAKE) /$(MAKEFLAGS) $(COMMAND)
cd ..
Bclient: Butil Bresource
echo Making $(COMMAND) in $(CLIENTDIR)
cd $(CLIENTDIR)
$(MAKE) /$(MAKEFLAGS) $(COMMAND)
cd ..
!if !DEFINED(NOCOPYFILES)
# Postbuild handles its own echoes
$(POSTBUILD)
!endif NOCOPYFILES
Bmodules: Bclient
echo Making $(COMMAND) in $(MODULEDIR)
cd $(MODULEDIR)
$(MAKE) /$(MAKEFLAGS) $(COMMAND)
cd ..
Bcompiler:
echo Making $(COMMAND) in $(BLAKCOMPDIR)
cd $(BLAKCOMPDIR)
$(MAKE) /$(MAKEFLAGS) $(COMMAND)
cd ..
Bdiff:
echo Making $(COMMAND) in $(DIFFDIR)
cd $(DIFFDIR)
$(MAKE) /$(MAKEFLAGS) $(COMMAND)
cd ..
Bkod: Bdiff Bcompiler
echo Making $(COMMAND) in $(KODDIR)
cd $(KODDIR)
$(MAKE) /$(MAKEFLAGS) $(COMMAND)
cd ..
Bdeco:
echo Making $(COMMAND) in $(DECODIR)
cd $(DECODIR)
$(MAKE) /$(MAKEFLAGS) $(COMMAND)
cd ..
Bresource: Bmakebgf Bbbgun
echo Making $(COMMAND) in $(RESOURCEDIR)
cd $(RESOURCEDIR)
$(MAKE) /$(MAKEFLAGS) $(COMMAND)
cd ..
Bmakebgf:
echo Making $(COMMAND) in $(MAKEBGFDIR)
cd $(MAKEBGFDIR)
$(MAKE) /$(MAKEFLAGS) $(COMMAND)
cd ..
Butil: Bjansson
echo Making $(COMMAND) in $(UTILDIR)
cd $(UTILDIR)
$(MAKE) /$(MAKEFLAGS) $(COMMAND)
cd ..
Bupdater: Bjansson
echo Making $(COMMAND) in $(CLUBDIR)
cd $(CLUBDIR)
$(MAKE) /$(MAKEFLAGS) $(COMMAND)
cd ..
Bbbgun:
echo Making $(COMMAND) in $(BBGUNDIR)
cd $(BBGUNDIR)
$(MAKE) /$(MAKEFLAGS) $(COMMAND)
cd ..
Bkeybind:
echo Making $(COMMAND) in $(KEYBINDDIR)
cd $(KEYBINDDIR)
$(MAKE) /$(MAKEFLAGS) $(COMMAND)
cd ..
Blibpng:
echo Making $(COMMAND) in $(LIBPNGDIR)
cd $(LIBPNGDIR)
$(MAKE) /$(MAKEFLAGS) $(COMMAND)
cd ..
Blibarchive:
echo Making $(COMMAND) in $(LIBARCHIVEDIR)
cd $(LIBARCHIVEDIR)
$(MAKE) /$(MAKEFLAGS) $(COMMAND)
cd ..
Bzlib:
echo Making $(COMMAND) in $(ZLIBDIR)
cd $(ZLIBDIR)
$(MAKE) /$(MAKEFLAGS) $(COMMAND)
cd ..
Bjansson:
echo Making $(COMMAND) in $(JANSSONDIR)
cd $(JANSSONDIR)
$(MAKE) /$(MAKEFLAGS) $(COMMAND)
cd ..
clean:
set NOCOPYFILES=1
set COMMAND=clean
$(MAKE) /$(MAKEFLAGS)
$(RM) $(TOPDIR)\postbuild.log >nul 2>&1
$(RM) $(BLAKSERVDIR)\channel\*.txt 2>nul