-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
111 lines (97 loc) · 2.91 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
#/*
# * UltimateIRCd - an Internet Relay Chat Daemon, Makefile.in
# *
# * Copyright (C) 1990-2007 by the past and present ircd coders, and others.
# * Refer to the documentation within doc/authors/ for full credits and copyrights.
# *
# * This program is free software; you can redistribute it and/or modify
# * it under the terms of the GNU General Public License as published by
# * the Free Software Foundation; either version 2 of the License, or
# * (at your option) any later version.
# *
# * This program is distributed in the hope that it will be useful,
# * but WITHOUT ANY WARRANTY; without even the implied warranty of
# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# * GNU General Public License for more details.
# *
# * You should have received a copy of the GNU General Public License
# * along with this program; if not, write to the Free Software
# * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# * USA
# *
# * $Id: Makefile.in 985 2007-02-04 20:51:36Z shadowmaster $
# *
# */
RM=/bin/rm
SHELL=/bin/sh
SUBDIRS=zlib src tools data
SUBDIRS2=data/networks tools/ircdcron tools/ssl-cert
CLEANDIRS = ${SUBDIRS}
MAKE = make ${MFLAGS}
all: build
autoconf: autoconf/configure.in
autoconf autoconf/configure.in >configure
autoheader autoconf/configure.in > include/setup.h.in
${RM} -f config.cache
build:
@for i in $(SUBDIRS); do \
echo "Building $$i";\
cd $$i;\
${MAKE} build; cd ..;\
done
@echo ' '
@echo '================================================================='
@echo 'Please remember to read the doc/README.FIRST and doc/README.'
@echo ' '
@echo 'UltimateIRCd FAQ and support forums at'
@echo 'http://wiki.shadow-realm.org/index.php/UltimateIRCd/FAQ'
@echo 'http://www.shadow-realm.org/forum/'
@echo ' '
@echo 'Read the README.FIRST and FAQ before asking for support'
@echo 'or you will get none.'
@echo '================================================================='
@echo ' '
profile:
@for i in $(SUBDIRS); do \
echo "Building $$i [profile]";\
cd $$i;\
${MAKEPROFILE} build; cd ..;\
done
clean:
${RM} -f *~ core
@for i in $(SUBDIRS); do \
echo "Cleaning $$i";\
cd $$i;\
${MAKE} clean; cd ..;\
done
-@if [ -f include/setup.h ] ; then \
echo "To really restart installation, make distclean" ; \
fi
distclean:
${RM} -f Makefile Makefile.tmp *~ *.rej *.orig core ircd.core *.tmp ccdv
${RM} -f config.status config.cache config.log
cd include; ${RM} -f setup.h gmp_irc.h *~ *.rej *.orig options.h; cd ..
@for i in $(SUBDIRS); do \
echo "Cleaning $$i";\
cd $$i;\
${MAKE} distclean; cd ..;\
done
depend:
@for i in $(SUBDIRS); do \
echo "depend ==> $$i";\
cd $$i;\
${MAKE} depend; cd ..;\
done
install: all
@for i in $(SUBDIRS); do \
echo "install ==> $$i";\
cd $$i;\
${MAKE} install; \
cd ..; \
done
@for i in $(SUBDIRS2); do \
echo "install ==> $$i";\
cd $$i;\
${MAKE} install; \
cd ../../; \
done