-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
178 lines (143 loc) · 5.95 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
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# Makefile for Services.
#
# Services is copyright (c) 1996-1999 Andy Church.
# E-mail: <[email protected]>
# This program is free but copyrighted software; see the file COPYING for
# details.
include Makefile.inc
###########################################################################
########################## Configuration section ##########################
# Note that changing any of these options (or, in fact, anything in this
# file) will automatically cause a full rebuild of Services.
# Compilation options:
# -DCLEAN_COMPILE Attempt to compile without any warnings (note that
# this may reduce performance)
# -DSTREAMLINED Leave out "fancy" options to enhance performance
CDEFS = -DCLEAN_COMPILE -DSTREAMLINED
# Add any extra flags you want here. The default line enables warnings and
# debugging symbols on GCC. If you have a non-GCC compiler, you may want
# to comment it out or change it.
# MORE_CFLAGS = -Wall -g
######################## End configuration section ########################
###########################################################################
CFG=/usr/bin/mysql_config
CFLAGS = $(CDEFS) $(BASE_CFLAGS) $(MORE_CFLAGS)
OBJS = actions.o akill.o channels.o chanserv.o commands.o compat.o \
config.o datafiles.o encrypt.o helpserv.o init.o language.o \
list.o log.o main.o memory.o memoserv.o messages.o misc.o news.o \
nickserv.o operserv.o process.o send.o sockutil.o \
timeout.o users.o correo.o\
P10.o servers.o bdd.o cregserv.o antispam.o ipvirtual.o bdd_hispano.o euskalirc.o\
jokuserv.o statserv.o registrate.o autolimit.o nicksuspends.o chanakicks.o geoip.o xserv.o\
$(VSNPRINTF_O)
SRCS = actions.c akill.c channels.c chanserv.c commands.c compat.c \
config.c datafiles.c encrypt.c helpserv.c init.c language.c \
list.c log.c main.c memory.c memoserv.c messages.c misc.c news.c \
nickserv.c operserv.c process.c send.c sockutil.c \
timeout.c users.c correo.c euskalirc.c \
P10.c servers.c bdd.c cregserv.c antispam.c ipvirtual.c bdd_hispano.c\
jokuserv.c statserv.c registrate.c autolimit.c nicksuspends.c chanakicks.c geoip.c xserv.c\
$(VSNPRINTF_C)
.c.o:
$(CC) $(CFLAGS) -c $<
all: $(PROGRAM) languages
@echo Ahora, ejecute \"$(MAKE) install\" para instalar los Services.
myclean:
rm -f *.o *~ $(PROGRAM) import-db version.h.old
clean: myclean
(cd lang ; $(MAKE) clean)
spotless: myclean
(cd lang ; $(MAKE) spotless)
rm -f config.cache configure.log sysconf.h Makefile.inc language.h
install: $(PROGRAM) languages
$(INSTALL) services $(BINDEST)/services
rm -f $(BINDEST)/listnicks $(BINDEST)/listchans
ln $(BINDEST)/services $(BINDEST)/listnicks
ln $(BINDEST)/services $(BINDEST)/listchans
(cd lang ; $(MAKE) install)
rm -rf $(DATDEST)/helpfiles/ircii
$(CP_ALL) data/* $(DATDEST)
@if [ "$(RUNGROUP)" ] ; then \
echo chgrp -R $(RUNGROUP) $(DATDEST) ; \
chgrp -R $(RUNGROUP) $(DATDEST) ; \
echo chmod -R g+rw $(DATDEST) ; \
chmod -R g+rw $(DATDEST) ; \
echo find $(DATDEST) -type d -exec chmod g+xs \'\{\}\' \\\; ; \
find $(DATDEST) -type d -exec chmod g+xs '{}' \; ; \
fi
@echo ""
@echo "Don't forget to create/update your services.conf file! See"
@echo "the README for details."
@echo ""
###########################################################################
$(PROGRAM): version.h $(OBJS)
$(CC) $(LFLAGS) $(OBJS) $(LIBS) -o $@
languages: FRC
(cd lang ; $(MAKE) CFLAGS="$(CFLAGS)")
# Catch any changes in compilation options at the top of this file
$(OBJS): Makefile
actions.o: actions.c services.h
akill.o: akill.c services.h pseudo.h
channels.o: channels.c services.h
chanserv.o: chanserv.c services.h pseudo.h
commands.o: commands.c services.h commands.h language.h
compat.o: compat.c services.h
config.o: config.c services.h
correo.o: correo.c services.h
bdd.o: bdd.c services.h
bdd_hispano.o: bdd_hispano.c services.h
antispam.o: antispam.c services.h
datafiles.o: datafiles.c services.h datafiles.h
encrypt.o: encrypt.c encrypt.h sysconf.h
helpserv.o: helpserv.c services.h language.h
init.o: init.c services.h
language.o: language.c services.h language.h
list.o: list.c services.h
log.o: log.c services.h pseudo.h
main.o: main.c services.h timeout.h version.h
memory.o: memory.c services.h
memoserv.o: memoserv.c services.h pseudo.h
messages.o: messages.c services.h messages.h language.h
misc.o: misc.c services.h
news.o: news.c services.h pseudo.h
nickserv.o: nickserv.c services.h pseudo.h
operserv.o: operserv.c services.h pseudo.h
process.o: process.c services.h messages.h
send.o: send.c services.h
servers.o: servers.c services.h pseudo.h
sockutil.o: sockutil.c services.h
timeout.o: timeout.c services.h timeout.h
P10.o: P10.c services.h
users.o: users.c services.h
vsnprintf.o: vsnprintf.c
cregserv.o: cregserv.c services.h pseudo.h
euskalirc.o: euskalirc.c services.h pseudo.h
jokuserv.o: jokuserv.c services.h pseudo.h
statserv.o: statserv.c services.h pseudo.h
registrate.o: registrate.c services.h pseudo.h
autolimit.o: autolimit.c services.h pseudo.h
nicksuspends.o: nicksuspends.c services.h pseudo.h
chanakicks.o: chanakicks.c services.h pseudo.h
geoip.o: geoip.c services.h pseudo.h
services.h: sysconf.h config.h extern.h
touch $@
pseudo.h: commands.h language.h timeout.h encrypt.h datafiles.h
touch $@
version.h: Makefile version.sh services.h pseudo.h messages.h $(SRCS)
sh version.sh
language.h: lang/language.h
cp -p lang/language.h .
lang/language.h: lang/Makefile lang/index
(cd lang ; $(MAKE) language.h)
###########################################################################
IMPORT_DB_OBJS = import-db.o config-x.o datafiles-x.o compat.o misc.o \
$(VSNPRINTF_O)
import-db: $(IMPORT_DB_OBJS)
$(CC) $(LFLAGS) $(IMPORT_DB_OBJS) $(LIBS) -o $@
import-db.o: import-db.c services.h datafiles.h
config-x.o: config.c services.h
$(CC) $(CFLAGS) -DNOT_MAIN -c config.c -o $@
datafiles-x.o: datafiles.c services.h datafiles.h
$(CC) $(CFLAGS) -DNOT_MAIN -c datafiles.c -o $@
###########################################################################
FRC: