]> jfr.im git - irc/DALnet/bahamut.git/blob - Makefile.in
Saving this for once all servers are upgraded
[irc/DALnet/bahamut.git] / Makefile.in
1 # IRC - Internet Relay Chat, Makefile
2 # Copyright (C) 1990, Jarkko Oikarinen
3 #
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 1, or (at your option)
7 # any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17 #
18
19 RM=@RM@
20 MV=@MV@
21
22 ENGINE=@SENGINE@
23
24 SHELL=/bin/sh
25 SUBDIRS=src doc tools
26 INSTDIRS=src doc tools
27 CLEANSUBDIRS=src tools
28
29 CC=@CC@
30 CFLAGS=@CFLAGS@
31 LIBS=@LIBS@
32
33 INSTALL_DIR=@INSTALL_DIR@
34
35 all: build
36
37 build:
38 -@if [ ! -f include/setup.h ] ; then \
39 echo "Hmm...doesn't look like you've run configure..."; \
40 echo "Doing so now."; \
41 sh configure; \
42 fi
43 @for i in $(SUBDIRS); do \
44 echo "Building $$i";\
45 cd $$i;\
46 ${MAKE} build; cd ..;\
47 done
48 @if [ -f modules/install.sh ] ; then \
49 echo "Building modules"; \
50 cd modules; \
51 INSTALL_DIR="${INSTALL_DIR}" ./install.sh build; \
52 cd ..;\
53 fi
54 @echo "******************************************************************************"
55 @echo "* For help with bahamut, please refer to http://bahamut.dal.net/ *"
56 @echo "* If you encouter serious security related bugs, please mail coders@dal.net *"
57 @echo "* For other bug reports and inquiries, please mail dalnet-src@dal.net *"
58 @echo "* Thank you for choosing Bahamut! - The DALnet coding team *"
59 @echo "******************************************************************************"
60
61 profile:
62 @for i in $(SUBDIRS); do \
63 echo "Building $$i [profile]";\
64 cd $$i;\
65 ${MAKE} profile; cd ..;\
66 done
67
68 clean:
69 ${RM} -f *~ core
70 @for i in $(CLEANSUBDIRS); do \
71 echo "Cleaning $$i";\
72 cd $$i;\
73 ${MAKE} clean; cd ..;\
74 done
75 -@if [ -f include/setup.h ] ; then \
76 echo "To really restart installation, make distclean" ; \
77 fi
78
79 fullclean:
80 ${RM} -f *~ core
81 @for i in $(SUBDIRS); do \
82 echo "Cleaning $$i";\
83 cd $$i;\
84 ${MAKE} clean; cd ..;\
85 done
86 -@if [ -f include/setup.h ] ; then \
87 echo "To really restart installation, make distclean" ; \
88 fi
89
90 distclean:
91 ${RM} -f Makefile *~ *.rej *.orig core ircd.core *.tmp
92 ${RM} -f config.status config.cache config.log
93 cd include; ${RM} -f setup.h *~ *.rej *.orig options.h; cd ..
94 @for i in $(SUBDIRS); do \
95 echo "Cleaning $$i";\
96 cd $$i;\
97 ${MAKE} distclean; cd ..;\
98 done
99
100 depend:
101 @for i in $(SUBDIRS); do \
102 echo "Making dependencies in $$i";\
103 cd $$i;\
104 ${MAKE} depend; cd ..;\
105 done
106
107 install: all
108 @if test ! -d $(INSTALL_DIR); then \
109 echo "Creating directory $(INSTALL_DIR)"; \
110 mkdir $(INSTALL_DIR); \
111 fi
112 @for i in $(INSTDIRS); do \
113 cd $$i; \
114 $(MAKE) install; \
115 cd ..; \
116 done
117 @if [ -f modules/install.sh ] ; then \
118 echo "Building modules"; \
119 cd modules; \
120 INSTALL_DIR="${INSTALL_DIR}" ./install.sh install; \
121 cd ..;\
122 fi
123 @echo ""
124 @echo "Now edit $(INSTALL_DIR)/template.conf"
125 @echo "and move it to ircd.conf - and you'll be all set."
126 @echo "See the doc/ directory and the INSTALL file for more assistance"
127 @echo "Thank you for choosing Bahamut!"
128 @echo ""