-
Notifications
You must be signed in to change notification settings - Fork 43
/
Makefile.in
128 lines (115 loc) · 3.38 KB
/
Makefile.in
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
# IRC - Internet Relay Chat, Makefile
# Copyright (C) 1990, Jarkko Oikarinen
#
# 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 1, 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., 675 Mass Ave, Cambridge, MA 02139, USA.
#
RM=@RM@
MV=@MV@
ENGINE=@SENGINE@
SHELL=/bin/sh
SUBDIRS=src doc tools
INSTDIRS=src doc tools
CLEANSUBDIRS=src tools
CC=@CC@
CFLAGS=@CFLAGS@
LIBS=@LIBS@
INSTALL_DIR=@INSTALL_DIR@
all: build
build:
-@if [ ! -f include/setup.h ] ; then \
echo "Hmm...doesn't look like you've run configure..."; \
echo "Doing so now."; \
sh configure; \
fi
@for i in $(SUBDIRS); do \
echo "Building $$i";\
cd $$i;\
${MAKE} build; cd ..;\
done
@if [ -f modules/install.sh ] ; then \
echo "Building modules"; \
cd modules; \
INSTALL_DIR="${INSTALL_DIR}" ./install.sh build; \
cd ..;\
fi
@echo "******************************************************************************"
@echo "* For help with bahamut, please refer to http://bahamut.dal.net/ *"
@echo "* If you encouter serious security related bugs, please mail [email protected] *"
@echo "* For other bug reports and inquiries, please mail [email protected] *"
@echo "* Thank you for choosing Bahamut! - The DALnet coding team *"
@echo "******************************************************************************"
profile:
@for i in $(SUBDIRS); do \
echo "Building $$i [profile]";\
cd $$i;\
${MAKE} profile; cd ..;\
done
clean:
${RM} -f *~ core
@for i in $(CLEANSUBDIRS); do \
echo "Cleaning $$i";\
cd $$i;\
${MAKE} clean; cd ..;\
done
-@if [ -f include/setup.h ] ; then \
echo "To really restart installation, make distclean" ; \
fi
fullclean:
${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 *~ *.rej *.orig core ircd.core *.tmp
${RM} -f config.status config.cache config.log
cd include; ${RM} -f setup.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 "Making dependencies in $$i";\
cd $$i;\
${MAKE} depend; cd ..;\
done
install: all
@if test ! -d $(INSTALL_DIR); then \
echo "Creating directory $(INSTALL_DIR)"; \
mkdir $(INSTALL_DIR); \
fi
@for i in $(INSTDIRS); do \
cd $$i; \
$(MAKE) install; \
cd ..; \
done
@if [ -f modules/install.sh ] ; then \
echo "Building modules"; \
cd modules; \
INSTALL_DIR="${INSTALL_DIR}" ./install.sh install; \
cd ..;\
fi
@echo ""
@echo "Now edit $(INSTALL_DIR)/template.conf"
@echo "and move it to ircd.conf - and you'll be all set."
@echo "See the doc/ directory and the INSTALL file for more assistance"
@echo "Thank you for choosing Bahamut!"
@echo ""