/[cvs]/eggdrop1.8/Makefile.in
ViewVC logotype

Contents of /eggdrop1.8/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Tue Oct 19 12:13:32 2010 UTC (8 years, 7 months ago) by pseudo
Branch: MAIN
CVS Tags: HEAD
Branch point for: gettext
Changes since 1.1: +16 -2 lines
Added full SSL support including Tcl commands.
Added support for certificate authentication.
Added support for botnet and partyline encryption using ssl.
Documented the new features and commands.
Fixed add_server() problems with IPv6 addresses in the server list.

1 #
2 # This is the Makefile for EGGDROP (the IRC bot)
3 # You should never need to edit this.
4 #
5 # $Id: Makefile.in,v 1.1.1.1 2010/07/26 21:11:06 simple Exp $
6
7 SHELL = @SHELL@
8 top_srcdir = @top_srcdir@
9 srcdir = @srcdir@
10 VPATH = @srcdir@
11
12 @SET_MAKE@
13 prefix = @prefix@
14 DEST = @DEST@
15 EGGEXEC = @EGGEXEC@
16 EGGVERSION = @EGGVERSION@
17
18 # Extra compiler flags
19 #
20 # Things you can put here:
21 #
22 # -Wall if you're using gcc and it supports it
23 # (configure usually detects this anyway now)
24 #
25 # -DDEBUG generic debugging code
26 # -DDEBUG_ASSERT to enable assert debugging
27 # -DDEBUG_MEM to be able to debug memory allocation (.debug)
28 # -DDEBUG_DNS to enable dns.mod extra debugging information
29 #
30 # Debug defines can be set with configure now.
31 # See ./configure --help for more information.
32
33 CFLGS = @CFLGS@
34 DEBCFLGS = @DEBCFLGS@
35
36 # ./configure SHOULD set these; however you may need to tweak them to get
37 # modules to compile. If you do, PLEASE let the development team know so
38 # we can incorporate any required changes into the next release. You can
39 # contact us via eggdev@eggheads.org
40
41 # Defaults
42 CC = @CC@
43 LD = @CC@
44 STRIP = @STRIP@
45 RANLIB = @RANLIB@
46
47 # make 'modegg'
48 MOD_CC = @MOD_CC@
49 MOD_LD = @MOD_LD@
50 MOD_STRIP = @MOD_STRIP@
51
52 # make 'modules'
53 SHLIB_CC = @SHLIB_CC@
54 SHLIB_LD = @SHLIB_LD@
55 SHLIB_STRIP = @SHLIB_STRIP@
56 MOD_EXT = @MOD_EXT@
57
58 # Programs make install uses
59 LN_S = @LN_S@
60 INSTALL = @INSTALL@
61 INSTALL_PROGRAM = @INSTALL_PROGRAM@
62 INSTALL_DATA = @INSTALL_DATA@
63 INSTALL_SCRIPT = @INSTALL_SCRIPT@
64
65 # Stuff for Tcl
66 TCLLIB = @TCLLIB@
67 TCLLIBFN = @TCLLIBFN@
68 XREQS = @TCL_REQS@
69
70 # Extra libraries
71 # XLIBS will be linked with everything
72 # MODULE_XLIBS will only be linked with the module objects
73 XLIBS = @SSL_LIBS@ @TCL_LIBS@ @LIBS@
74 MODULE_XLIBS = @MODULE_XLIBS@
75
76 # You shouldn't need to edit anything below this line.
77
78 modconf = $(top_srcdir)/misc/modconfig --top_srcdir=$(top_srcdir)
79
80 egg_test_run = EGG_LANGDIR=$(top_srcdir)/language ./$(EGGEXEC) -v
81
82 post_config = echo "" && \
83 echo "You can now compile the bot, using \"make\"." && \
84 echo ""
85
86 post_iconfig = $(modconf) update-depends && \
87 $(modconf) Makefile && \
88 (cd src/mod && $(MAKE_CONFIG) config) && \
89 $(modconf) Makefile
90
91 egg_install_msg = echo "" && \
92 echo "Now run \"make install\" to install your bot." && \
93 echo ""
94
95 MAKE_MODEGG = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(MOD_CC)' 'LD=$(MOD_LD)' \
96 'STRIP=$(MOD_STRIP)' 'RANLIB=$(RANLIB)' 'CFLGS=$(CFLGS)' \
97 'TCLLIB=$(TCLLIB)' 'TCLLIBFN=$(TCLLIBFN)' 'XREQS=$(XREQS)' \
98 'XLIBS=$(XLIBS)' 'EGGEXEC=$(EGGEXEC)' 'EGGBUILD=(standard build)' 'MODOBJS='
99
100 MAKE_MODULES = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(SHLIB_CC)' 'LD=$(SHLIB_LD)' \
101 'STRIP=$(SHLIB_STRIP)' 'CFLGS=$(CFLGS)' 'XLIBS=$(XLIBS)' \
102 'MOD_EXT=$(MOD_EXT)' 'MODULE_XLIBS=$(MODULE_XLIBS)'
103
104 MAKE_STATIC = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(CC)' 'LD=$(LD)' \
105 'STRIP=$(STRIP)' 'RANLIB=$(RANLIB)' 'CFLGS=$(CFLGS) -DSTATIC' \
106 'TCLLIB=$(TCLLIB)' 'TCLLIBFN=$(TCLLIBFN)' 'XREQS=$(XREQS)' \
107 'XLIBS=$(XLIBS)' 'EGGEXEC=$(EGGEXEC)' 'EGGBUILD=(static version)' \
108 'MODOBJS=mod/*.o'
109
110 MAKE_DEBEGG = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(MOD_CC)' 'LD=$(MOD_LD)' \
111 'STRIP=touch' 'RANLIB=$(RANLIB)' 'CFLGS=$(DEBCFLGS) $(CFLGS)' \
112 'TCLLIB=$(TCLLIB)' 'TCLLIBFN=$(TCLLIBFN)' 'XREQS=$(XREQS)' \
113 'XLIBS=$(XLIBS)' 'EGGEXEC=$(EGGEXEC)' 'EGGBUILD=(debug version)' 'MODOBJS='
114
115 MAKE_DEBMODULES = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(SHLIB_CC)' 'LD=$(SHLIB_LD)' \
116 'XLIBS=$(XLIBS)' 'STRIP=touch' 'CFLGS=$(DEBCFLGS) $(CFLGS)' \
117 'MOD_EXT=$(MOD_EXT)' 'MODULE_XLIBS=$(MODULE_XLIBS)'
118
119 MAKE_SDEBUG = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(CC)' 'LD=$(LD)' \
120 'STRIP=touch' 'RANLIB=$(RANLIB)' 'CFLGS=$(DEBCFLGS) $(CFLGS) -DSTATIC' \
121 'TCLLIB=$(TCLLIB)' 'TCLLIBFN=$(TCLLIBFN)' 'XREQS=$(XREQS)' 'XLIBS=$(XLIBS)' \
122 'EGGEXEC=$(EGGEXEC)' 'EGGBUILD=(static debug version)' 'MODOBJS=mod/*.o'
123
124 MAKE_DEPEND = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(CC)'
125
126 MAKE_CONFIG = $(MAKE) 'MAKE=$(MAKE)'
127
128 MAKE_INSTALL = $(MAKE) 'MAKE=$(MAKE)' 'DEST=$(DEST)'
129
130 all: @DEFAULT_MAKE@
131
132 eggclean:
133 @rm -f $(EGGEXEC) *.$(MOD_EXT) *.stamp core DEBUG *~
134 @cd doc && $(MAKE) clean
135 @cd scripts && $(MAKE) clean
136 @cd src && $(MAKE) clean
137 @cd src/md5 && $(MAKE) clean
138 @cd src/compat && $(MAKE) clean
139
140 clean: eggclean
141 @cd src/mod && $(MAKE) clean
142
143 distclean: eggclean clean-modconfig
144 @cd src/mod && $(MAKE) distclean
145 @rm -f Makefile doc/Makefile scripts/Makefile src/Makefile src/md5/Makefile src/compat/Makefile src/mod/Makefile
146 @rm -f config.cache config.log config.status config.h lush.h
147 @rm -rf autom4te.cache
148
149 distrib:
150 misc/releaseprep
151
152 depend:
153 @cat /dev/null > lush.h
154 @cd src && $(MAKE_DEPEND) depend
155 @cd src/md5 && $(MAKE_DEPEND) depend
156 @cd src/mod && $(MAKE_DEPEND) depend
157 @cd src/compat && $(MAKE_DEPEND) depend
158
159 config:
160 @$(modconf) modules-still-exist
161 @$(modconf) detect-modules
162 @$(modconf) update-depends
163 @$(modconf) Makefile
164 @cd src/mod && $(MAKE_CONFIG) config
165 @$(modconf) Makefile
166 @$(post_config)
167
168 new-iconfig:
169 @$(modconf) modules-still-exist
170 @$(modconf) update-depends
171 @$(modconf) -n configure
172 @$(post_iconfig)
173 @$(post_config)
174
175 iconfig:
176 @$(modconf) modules-still-exist
177 @$(modconf) detect-modules
178 @$(modconf) update-depends
179 @$(modconf) configure
180 @$(post_iconfig)
181 @$(post_config)
182
183 clean-modconfig:
184 @rm -f .modules .known_modules
185
186 conftest:
187 @if test ! -f .modules; then \
188 echo ""; \
189 echo "You have NOT configured modules yet. This has to be done before you"; \
190 echo "can start compiling."; \
191 echo ""; \
192 echo " Run \"make config\" or \"make iconfig\" now."; \
193 echo ""; \
194 exit 1; \
195 fi
196
197 reconfig: clean-modconfig config
198
199 eggdrop: modegg modules
200
201 modegg: modtest
202 @rm -f src/mod/mod.xlibs
203 @cd src && $(MAKE_MODEGG) $(EGGEXEC)
204
205 modules: modtest
206 @cd src/mod && $(MAKE_MODULES) modules
207 @echo ""
208 @echo "Test run of ./eggdrop -v:"
209 @$(egg_test_run)
210 @echo ""
211 @echo "Eggdrop successfully compiled:"
212 @ls -l $(EGGEXEC)
213 @echo ""
214 @echo "Modules successfully compiled:"
215 @ls -l *.$(MOD_EXT)
216 @$(egg_install_msg)
217
218 static: eggtest
219 @echo ""
220 @echo "Making module objects for static linking..."
221 @echo ""
222 @rm -f src/mod/mod.xlibs
223 @cd src/mod && $(MAKE_STATIC) static
224 @echo ""
225 @echo "Making core eggdrop for static linking..."
226 @echo ""
227 @cd src && $(MAKE_STATIC) $(EGGEXEC)
228 @echo ""
229 @echo "Test run of ./eggdrop -v:"
230 @$(egg_test_run)
231 @echo ""
232 @echo "Eggdrop successfully compiled:"
233 @ls -l $(EGGEXEC)
234 @echo ""
235 @$(egg_install_msg)
236
237 debug: debegg debmodules
238
239 debegg: modtest
240 @cd src && $(MAKE_DEBEGG) $(EGGEXEC)
241
242 debmodules: modtest
243 @cd src/mod && $(MAKE_DEBMODULES) modules
244 @echo ""
245 @echo "Test run of ./eggdrop -v:"
246 @$(egg_test_run)
247 @echo ""
248 @echo "Eggdrop successfully compiled:"
249 @ls -l $(EGGEXEC)
250 @echo ""
251 @echo "Modules successfully compiled:"
252 @ls -l *.$(MOD_EXT)
253 @$(egg_install_msg)
254
255 sdebug: eggtest
256 @echo ""
257 @echo "Making module objects for static linking."
258 @echo ""
259 @rm -f src/mod/mod.xlibs
260 @cd src/mod && $(MAKE_SDEBUG) static
261 @echo ""
262 @echo "Making eggdrop core for static linking."
263 @echo ""
264 @cd src && $(MAKE_SDEBUG) $(EGGEXEC)
265 @echo ""
266 @echo "Test run of ./eggdrop -v:"
267 @$(egg_test_run)
268 @echo ""
269 @echo "Eggdrop successfully compiled:"
270 @ls -l $(EGGEXEC)
271 @echo ""
272 @$(egg_install_msg)
273
274 eggtest: conftest
275 @if test -f EGGMOD.stamp; then \
276 echo "You're trying to do a STATIC build of eggdrop when you've";\
277 echo "already run 'make' for a module build.";\
278 echo "You must first type \"make clean\" before you can build";\
279 echo "a static version.";\
280 exit 1;\
281 fi
282 @echo "stamp" >EGGDROP.stamp
283
284 modtest: conftest
285 @if [ -f EGGDROP.stamp ]; then \
286 echo "You're trying to do a MODULE build of eggdrop when you've";\
287 echo "already run 'make' for a static build.";\
288 echo "You must first type \"make clean\" before you can build";\
289 echo "a module version.";\
290 exit 1;\
291 fi
292 @echo "stamp" >EGGMOD.stamp
293
294 sslcert:
295 @if test ! -d $(DEST); then \
296 echo "You haven't installed eggdrop yet.";\
297 echo "Please run \"make install\" first.";\
298 exit 1;\
299 fi
300 @if test -f $(DEST)/eggdrop.key; then \
301 cp $(DEST)/eggdrop.key $(DEST)/eggdrop.key~old; \
302 fi
303 @if test -f $(DEST)/eggdrop.crt; then \
304 cp $(DEST)/eggdrop.crt $(DEST)/eggdrop.crt~old; \
305 fi
306 @openssl req -new -x509 -nodes -days 365 -keyout $(DEST)/eggdrop.key -out $(DEST)/eggdrop.crt -config ssl.conf; \
307
308 install: ainstall
309
310 dinstall: eggdrop ainstall
311
312 sinstall: static ainstall
313
314 ainstall: install-start install-bin install-modules install-data \
315 install-help install-language install-filesys install-doc \
316 install-scripts install-end
317
318 install-start:
319 @if test ! -f $(EGGEXEC); then \
320 echo ""; \
321 echo "You haven't compiled Eggdrop yet."; \
322 echo "To compile Eggdrop, use:"; \
323 echo ""; \
324 echo " make [target]"; \
325 echo ""; \
326 echo "Valid targets: 'eggdrop', 'static', 'debug', 'sdebug'."; \
327 echo "Default target: '@DEFAULT_MAKE@'."; \
328 echo ""; \
329 exit 1; \
330 fi
331 @if test "x$(DEST)" = "x"; then \
332 echo "You must specify a destination directory."; \
333 echo "Example:"; \
334 echo ""; \
335 echo " make install DEST=\"/home/wcc/mybot\""; \
336 echo ""; \
337 exit 1; \
338 fi
339 @echo ""
340 @$(egg_test_run)
341 @echo ""
342 @echo "Installing in directory: '$(DEST)'."
343 @echo ""
344 @if test ! -d $(DEST); then \
345 echo "Creating directory '$(DEST)'."; \
346 $(top_srcdir)/misc/mkinstalldirs $(DEST) >/dev/null; \
347 fi
348
349 install-bin:
350 @if test -f $(DEST)/o$(EGGEXEC); then \
351 rm -f $(DEST)/o$(EGGEXEC); \
352 fi
353 @if test -h $(DEST)/$(EGGEXEC); then \
354 echo "Removing symlink to archival eggdrop binary."; \
355 rm -f $(DEST)/$(EGGEXEC); \
356 fi
357 @if test -f $(DEST)/$(EGGEXEC); then \
358 echo "Renaming old '$(EGGEXEC)' executable to 'o$(EGGEXEC)'."; \
359 mv -f $(DEST)/$(EGGEXEC) $(DEST)/o$(EGGEXEC); \
360 fi
361 @echo "Copying new '$(EGGEXEC)' executable and creating symlink."
362 @$(INSTALL_PROGRAM) $(EGGEXEC) $(DEST)/$(EGGEXEC)-$(EGGVERSION)
363 @(cd $(DEST) && $(LN_S) $(EGGEXEC)-$(EGGVERSION) $(EGGEXEC))
364
365 install-modules:
366 @if test -h $(DEST)/modules; then \
367 echo "Removing symlink to archival modules subdirectory."; \
368 rm -f $(DEST)/modules; \
369 fi
370 @if test -d $(DEST)/modules; then \
371 echo "Moving old modules into 'modules.old' subdirectory."; \
372 rm -rf $(DEST)/modules.old; \
373 mv -f $(DEST)/modules $(DEST)/modules.old; \
374 fi
375 @if test ! "x`echo *.$(MOD_EXT)`" = "x*.$(MOD_EXT)"; then \
376 if test ! -d $(DEST)/modules-$(EGGVERSION); then \
377 echo "Creating 'modules-$(EGGVERSION)' subdirectory and symlink."; \
378 $(top_srcdir)/misc/mkinstalldirs $(DEST)/modules-$(EGGVERSION) >/dev/null; \
379 fi; \
380 (cd $(DEST) && $(LN_S) modules-$(EGGVERSION) modules); \
381 echo "Copying new modules."; \
382 for i in *.$(MOD_EXT); do \
383 $(INSTALL_PROGRAM) $$i $(DEST)/modules-$(EGGVERSION)/; \
384 done; \
385 fi
386
387 install-data:
388 @if test ! -f $(DEST)/eggdrop.conf; then \
389 $(INSTALL_DATA) $(srcdir)/eggdrop.conf $(DEST)/; \
390 fi
391 @if test ! -d $(DEST)/logs; then \
392 echo "Creating 'logs' subdirectory."; \
393 $(top_srcdir)/misc/mkinstalldirs $(DEST)/logs >/dev/null; \
394 $(INSTALL_DATA) $(srcdir)/logs/CONTENTS $(DEST)/logs/; \
395 fi;
396 @if test ! -d $(DEST)/text; then \
397 echo "Creating 'text' subdirectory."; \
398 $(top_srcdir)/misc/mkinstalldirs $(DEST)/text >/dev/null; \
399 fi;
400 @if test ! -f $(DEST)/text/motd; then \
401 $(INSTALL_DATA) $(srcdir)/text/motd $(DEST)/text/; \
402 fi
403 @if test ! -f $(DEST)/text/banner; then \
404 $(INSTALL_DATA) $(srcdir)/text/banner $(DEST)/text/; \
405 fi
406
407 install-help:
408 @echo "Copying help files."
409 @if test ! "x`echo $(srcdir)/help/*.help`" = "x$(srcdir)/help/*.help"; then \
410 if test ! -d $(DEST)/help; then \
411 echo "Creating 'help' subdirectory."; \
412 $(top_srcdir)/misc/mkinstalldirs $(DEST)/help >/dev/null; \
413 fi; \
414 for i in $(srcdir)/help/*.help; do \
415 $(INSTALL_DATA) $$i $(DEST)/help/; \
416 done; \
417 fi
418 @if test ! "x`echo $(srcdir)/help/msg/*.help`" = "x$(srcdir)/help/msg/*.help"; then \
419 if test ! -d $(DEST)/help/msg; then \
420 echo "Creating 'help/msg' subdirectory."; \
421 $(top_srcdir)/misc/mkinstalldirs $(DEST)/help/msg >/dev/null; \
422 fi; \
423 for i in $(srcdir)/help/msg/*.help; do \
424 $(INSTALL_DATA) $$i $(DEST)/help/msg/; \
425 done; \
426 fi
427 @if test ! "x`echo $(srcdir)/help/set/*.help`" = "x$(srcdir)/help/set/*.help"; then \
428 if test ! -d $(DEST)/help/set; then \
429 echo "Creating 'help/set' subdirectory."; \
430 $(top_srcdir)/misc/mkinstalldirs $(DEST)/help/set >/dev/null; \
431 fi; \
432 for i in $(srcdir)/help/set/*.help; do \
433 $(INSTALL_DATA) $$i $(DEST)/help/set/; \
434 done; \
435 fi
436 @cd src/mod/ && $(MAKE_INSTALL) install-help
437
438 install-language:
439 @echo "Copying language files."
440 @if test ! "x`echo $(srcdir)/language/*.lang`" = "x$(srcdir)/language/*.lang"; then \
441 if test ! -d $(DEST)/language; then \
442 echo "Creating 'language' subdirectory."; \
443 $(top_srcdir)/misc/mkinstalldirs $(DEST)/language >/dev/null; \
444 fi; \
445 for i in $(srcdir)/language/*.lang; do \
446 $(INSTALL_DATA) $$i $(DEST)/language/; \
447 done; \
448 fi
449 @cd src/mod && $(MAKE_INSTALL) install-language
450
451 install-filesys:
452 @if test ! -d $(DEST)/filesys; then \
453 echo "Creating skeletal filesystem subdirectories."; \
454 $(top_srcdir)/misc/mkinstalldirs $(DEST)/filesys >/dev/null; \
455 $(top_srcdir)/misc/mkinstalldirs $(DEST)/filesys/incoming >/dev/null; \
456 fi
457
458 install-doc:
459 @$(INSTALL_DATA) $(srcdir)/README $(DEST)
460 @cd doc/ && $(MAKE_INSTALL) install
461
462 install-scripts:
463 @cd scripts/ && $(MAKE_INSTALL) install
464
465 install-end:
466 @echo
467 @echo "Installation completed."
468 @echo ""
469 @echo "You MUST ensure that you edit/verify your configuration file."
470 @echo "An example configuration file, eggdrop.conf, is distributed with Eggdrop."
471 @echo ""
472 @echo "Remember to change directory to $(DEST) before you proceed."
473 @echo ""
474
475 #safety hash

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23