blob: 4d2a6419c2ecb7982fb8a07217b90191cdff3b4f (
plain)
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
|
# Makefile for Anope.
#
# (C) 2003-2005 Anope Team
# Contact us at info@anope.org
#
# This program is free but copyrighted software; see the file COPYING for
# details.
#
# Based on the original code of Epona by Lara.
# Based on the original code of Services by Andy Church.
include Makefile.inc.win32
###########################################################################
all: src languages anopesmtp modules install
src: include\version.h include\sysconf.h include\language.h include\sysconf.h
cd src && $(MAKE) && cd ..
install:
-@mkdir $(DATDEST)\backups
-@mkdir $(DATDEST)\logs
-@mkdir $(DATDEST)\languages
cd lang && $(MAKE) install && cd ..
cd src && $(MAKE) install && cd ..
cd src\modules && $(MAKE) install && cd ..
cd src\modules && $(MAKE) subs-install && cd ..
-@echo ---
-@echo Anope has been insalled successfully!
-@echo ---
clean:
cd src && $(MAKE) spotless && cd ..
cd lang && $(MAKE) spotless && cd ..
-@erase src\*.exe
-@erase *.exe version.h *.obj
cd src/modules && $(MAKE) spotless && cd ../..
spotless:
cd lang && $(MAKE) spotless && cd ..
cd src && $(MAKE) spotless && cd ..
cd src/modules && $(MAKE) spotless && cd ../..
-@erase include\language.h include\version.h *~ services.exe version.sh.exe *.obj anopesmtp.exe
mypasql:
$(MYPASQL_BUILD)
distclean: spotless
dist:
$(MAKE) clean
#Compile dreamforge
echo Compiling Dreamforge build
$(MAKE) IRCTYPE=/DIRC_DREAMFORGE CAPAB_C=dreamforge.c CAPAB_O=dreamforge.obj
-@copy src\$(PROGRAM) services-dreamforge.exe
$(MAKE) clean
#Compile bahamut
echo Compiling Bahamut build
$(MAKE) IRCTYPE=/DIRC_BAHAMUT CAPAB_C=bahamut.c CAPAB_O=bahamut.obj
-@copy src\$(PROGRAM) services-bahamut.exe
$(MAKE) clean
#Compile unreal
echo Compiling UnrealIRCd3.1 build
$(MAKE) IRCTYPE=/DIRC_UNREAL31 CAPAB_C=unreal31.c CAPAB_O=unreal31.obj
-@copy src\$(PROGRAM) services-unreal31.exe
$(MAKE) clean
#Compile ultimate2
echo Compiling UltimateIRCd2 build
$(MAKE) IRCTYPE=/DIRC_ULTIMATE2 CAPAB_C=ultimate2.c CAPAB_O=ultimate2.obj
-@copy src\$(PROGRAM) services-ultimate2.exe
$(MAKE) clean
#Compile ultimate3
echo Compiling UltimateIRCd 3.x build
$(MAKE) IRCTYPE=/DIRC_ULTIMATE3 CAPAB_C=ultimate3.c CAPAB_O=ultimate3.obj
-@copy src\$(PROGRAM) services-ultimate3.exe
$(MAKE) clean
#Compile hybrid
echo Compiling Hybrid build
$(MAKE) IRCTYPE=/DIRC_HYBRID CAPAB_C=hybrid.c CAPAB_O=hybrid.obj
-@copy src\$(PROGRAM) services-hybrid.exe
$(MAKE) clean
#Compile viagra
echo Compiling ViagraIRCd build
$(MAKE) IRCTYPE=/DIRC_VIAGRA CAPAB_C=viagra.c CAPAB_O=viagra.obj
-@copy src\$(PROGRAM) services-viagra.exe
$(MAKE) clean
#Compile ptlink
echo Compiling PTLink IRCd build
$(MAKE) IRCTYPE=/DIRC_PTLINK CAPAB_C=ptlink.c CAPAB_O=ptlink.obj
-@copy src\$(PROGRAM) services-ptlink.exe
$(MAKE) clean
#Compile rage2
echo Compiling Rage2 IRCd build
$(MAKE) IRCTYPE=/DIRC_RAGE2 CAPAB_C=rageircd.c CAPAB_O=rageircd.obj
-@copy src\$(PROGRAM) services-rage2.exe
$(MAKE) clean
#Compile UnrealIRCD3.2
echo Compiling UnrealIRCD3.2 IRCd build
$(MAKE) IRCTYPE=/DIRC_UNREAL32 CAPAB_C=unreal32.c CAPAB_O=unreal32.obj
-@copy src\$(PROGRAM) services-unreal32.exe
$(MAKE) clean
#Compile SolidIRCD
echo Compiling SolidIRCD IRCd build
$(MAKE) IRCTYPE=/DIRC_SOLID CAPAB_C=solidircd.c CAPAB_O=solidircd.obj
-@copy src\$(PROGRAM) services-solid.exe
$(MAKE) clean
#Compile PlexusIRCD
echo Compiling Plexus IRCd build
$(MAKE) IRCTYPE=/DIRC_PLEXUS CAPAB_C=plexus.c CAPAB_O=plexus.obj
-@copy src\$(PROGRAM) services-plexus.exe
$(MAKE) clean
#Compile Ratbox
echo Compiling Ratbox IRCd build
$(MAKE) IRCTYPE=/DIRC_RATBOX CAPAB_C=ratbox.c CAPAB_O=ratbox.obj
-@copy src\$(PROGRAM) services-ratbox.exe
#Compile ShadowIRCD
echo Compiling Shadow IRCd build
$(MAKE) IRCTYPE=/DIRC_SHADOWIRCD CAPAB_C=shadowircd.c CAPAB_O=shadwoircd.obj
-@copy src\$(PROGRAM) services-shadowircd.exe
#Compile mypasql
$(MYPASQL_BUILD)
#Cleanup
$(MAKE) spotless
###########################################################################
languages: FRC
cd lang && $(MAKE) && cd ..
anopesmtp: FRC
$(CC) src/tools/anopesmtp.c /link wsock32.lib $(LFLAGS)
modules: FRC
cd src\modules && $(MAKE) && cd ..\..
###########################################################################
include\sysconf.h:
copy include\sysconf.h.win32 include\sysconf.h
lang/language.h: lang/Makefile lang/index
cd lang && $(MAKE) language.h && cd ..
lang/index:
cd lang && $(MAKE) index && cd ..
include/language.h: lang/language.h
cd lang && copy language.h ..\include\language.h && cd ..
include\version.h: version.sh.exe version.log include\services.h include\pseudo.h include\messages.h include\pseudo.h include\messages.h
version.sh.exe
copy version.h include\version.h
version.sh.exe:
$(CC) include/version.sh.c
FRC:
|