Initial import
[ratbox-ambernet.git] / Makefile.in
blobb2a8b9a949b422da390bf0ef535a0036a00d7621
1 #************************************************************************
2 #* IRC - Internet Relay Chat, Makefile
3 #* Copyright (C) 1990, Jarkko Oikarinen
4 #*
5 #* This program is free software; you can redistribute it and/or modify
6 #* it under the terms of the GNU General Public License as published by
7 #* the Free Software Foundation; either version 1, or (at your option)
8 #* any later version.
9 #*
10 #* This program is distributed in the hope that it will be useful,
11 #* but WITHOUT ANY WARRANTY; without even the implied warranty of
12 #* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 #* GNU General Public License for more details.
15 #* You should have received a copy of the GNU General Public License
16 #* along with this program; if not, write to the Free Software
17 #* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 #* $Id: Makefile.in 18107 2004-12-10 21:28:20Z leeh $
20 #*/
22 RM=@RM@
23 prefix = @prefix@
24 exec_prefix = @exec_prefix@
25 bindir = @bindir@
26 mandir = @mandir@
27 moduledir = @moduledir@
28 helpdir = @helpdir@
29 confdir = @confdir@
30 logdir = @logdir@
32 # Default CFLAGS
33 # CFLAGS = -g -O2 -DNDEBUG
34 CFLAGS = @CFLAGS@
35 # Developers CFLAGS
36 #CFLAGS= -g -O2 -Wunused -Wall -ggdb -pedantic -Wshadow -Wmissing-declarations
38 # Default make flags - you may want to uncomment this on a multicpu machine
39 #MFLAGS = -j 4
42 # For developers
43 #CFLAGS= -g -O2 -Wall
45 # You may need to define the FD_SETSIZE in order to overrule
46 # the system one.
47 #CFLAGS= -DNDEBUG -g -O2 -D"FD_SETSIZE=1024"
48 SHELL=/bin/sh
49 SUBDIRS=modules adns src tools servlink doc help
50 CLEANDIRS = ${SUBDIRS} contrib
51 RSA_FILES=rsa_respond/README rsa_respond/respond.c rsa_respond/Makefile
53 MAKE = make ${MFLAGS}
55 all: build
58 autoconf: configure.ac
59 autoconf
60 autoheader
61 ${RM} -f config.cache
63 build:
64 -@if [ ! -f include/setup.h ] ; then \
65 echo "Hmm...doesn't look like you've run configure..."; \
66 echo "Doing so now."; \
67 sh configure; \
69 @for i in $(SUBDIRS); do \
70 echo "build ==> $$i";\
71 cd $$i;\
72 ${MAKE} build || exit; cd ..;\
73 done
75 clean:
76 ${RM} -f *~ core rsa_respond.tar rsa_respond.tar.gz
77 @for i in $(CLEANDIRS); do \
78 echo "clean ==> $$i";\
79 cd $$i;\
80 ${MAKE} clean; cd ..;\
81 done
82 -@if [ -f include/setup.h ] ; then \
83 echo "To really restart installation, make distclean" ; \
86 distclean:
87 ${RM} -f Makefile *~ *.rej *.orig core ircd.core
88 ${RM} -f config.status config.cache config.log
89 cd include; ${RM} -f setup.h *~ *.rej *.orig ; cd ..
90 @for i in $(CLEANDIRS); do \
91 echo "distclean ==> $$i";\
92 cd $$i;\
93 ${MAKE} distclean; cd ..;\
94 done
96 depend:
97 @for i in $(SUBDIRS); do \
98 echo "depend ==> $$i";\
99 cd $$i;\
100 ${MAKE} depend; cd ..;\
101 done
103 lint:
104 @for i in $(SUBDIRS); do \
105 echo "lint ==> $$i";\
106 cd $$i;\
107 ${MAKE} lint; cd ..;\
108 done
110 install-mkdirs:
111 @echo "ircd: setting up ircd directory structure"
112 -@if test ! -d $(DESTDIR)$(prefix); then \
113 mkdir $(DESTDIR)$(prefix); \
115 -@if test ! -d $(DESTDIR)$(bindir); then \
116 mkdir $(DESTDIR)$(bindir); \
118 -@if test ! -d $(DESTDIR)$(confdir); then \
119 mkdir $(DESTDIR)$(confdir); \
121 -@if test ! -d $(DESTDIR)$(mandir); then \
122 mkdir $(DESTDIR)$(mandir); \
124 -@if test ! -d $(DESTDIR)$(moduledir); then \
125 mkdir $(DESTDIR)$(moduledir); \
127 -@if test ! -d $(DESTDIR)$(helpdir); then \
128 mkdir $(DESTDIR)$(helpdir); \
130 -@if test ! -d $(DESTDIR)$(logdir); then \
131 mkdir $(DESTDIR)$(logdir); \
134 install: install-mkdirs all
135 @for i in $(SUBDIRS); do \
136 echo "install ==> $$i";\
137 cd $$i;\
138 ${MAKE} install; \
139 cd ..; \
140 done
142 rsa_respond:
143 @cd tools;\
144 echo "Creating rsa_respond.tar.gz";\
145 tar cf ../rsa_respond.tar $(RSA_FILES);\
146 cd ..;\
147 gzip rsa_respond.tar