]> jfr.im git - irc/rqf/shadowircd.git/blob - modules/Makefile.in
Revert all presence-related changes
[irc/rqf/shadowircd.git] / modules / Makefile.in
1 #
2 # Makefile.in for ircd/modules
3 #
4 # $Id: Makefile.in 3372 2007-04-03 10:18:07Z nenolod $
5 #
6 CC = @CC@
7 AR = @AR@
8 RANLIB = @RANLIB@
9 RM = @RM@
10 SED = @SED@
11 LEX = @LEX@
12 LEXLIB = @LEXLIB@
13 CFLAGS = @IRC_CFLAGS@ -DIRCD_PREFIX=\"@prefix@\"
14 PICFLAGS = @PICFLAGS@
15 MKDEP = @MKDEP@ -DIRCD_PREFIX=\"@prefix@\"
16 INSTALL = @INSTALL@
17 INSTALL_PROGRAM = @INSTALL_PROGRAM@
18 INSTALL_DATA = @INSTALL_DATA@
19 INSTALL_SUID = @INSTALL_PROGRAM@ -o root -m 4755
20 SEDOBJ = @SEDOBJ@
21 SHELL = /bin/sh
22 MV = @MV@
23 LD = @LD@
24
25 SSL_LIBS = @SSL_LIBS@
26 SSL_INCLUDES = @SSL_INCLUDES@
27
28 IRCDLIBS = @LIBS@ $(SSL_LIBS)
29
30 prefix = @prefix@
31 moduledir = @moduledir@
32 # Change this later! -- adrian
33 automoduledir = @moduledir@/autoload
34
35 INCLUDES = -I../include -I../libratbox/include $(SSL_INCLUDES)
36 CPPFLAGS = ${INCLUDES} @CPPFLAGS@
37
38 CORE_SRCS = \
39 core/m_die.c \
40 core/m_error.c \
41 core/m_join.c \
42 core/m_kick.c \
43 core/m_kill.c \
44 core/m_message.c \
45 core/m_mode.c \
46 core/m_nick.c \
47 core/m_part.c \
48 core/m_quit.c \
49 core/m_server.c \
50 core/m_squit.c
51
52 TSRCS = \
53 m_accept.c \
54 m_admin.c \
55 m_away.c \
56 m_cap.c \
57 m_capab.c \
58 m_challenge.c \
59 m_chghost.c \
60 m_close.c \
61 m_cmessage.c \
62 m_connect.c \
63 m_dline.c \
64 m_encap.c \
65 m_etrace.c \
66 m_help.c \
67 m_info.c \
68 m_invite.c \
69 m_ison.c \
70 m_kline.c \
71 m_knock.c \
72 m_links.c \
73 m_list.c \
74 m_locops.c \
75 m_lusers.c \
76 m_map.c \
77 m_monitor.c \
78 m_motd.c \
79 m_names.c \
80 m_oper.c \
81 m_operspy.c \
82 m_pass.c \
83 m_ping.c \
84 m_pong.c \
85 m_post.c \
86 m_privs.c \
87 m_rehash.c \
88 m_restart.c \
89 m_resv.c \
90 m_sasl.c \
91 m_scan.c \
92 m_services.c \
93 m_set.c \
94 m_signon.c \
95 m_snote.c \
96 m_stats.c \
97 m_svinfo.c \
98 m_tb.c \
99 m_testline.c \
100 m_testmask.c \
101 m_time.c \
102 m_topic.c \
103 m_trace.c \
104 m_user.c \
105 m_userhost.c \
106 m_users.c \
107 m_version.c \
108 m_wallops.c \
109 m_who.c \
110 m_whois.c \
111 m_whowas.c \
112 m_unreject.c \
113 m_xline.c \
114 sno_routing.c
115
116 SRCS = ${TSRCS}
117
118 ALL_SRCS = $(CORE_SRCS) \
119 $(SRCS)
120
121 SH_OBJS = ${SRCS:.c=.so}
122 SH_CORE_OBJS = ${CORE_SRCS:.c=.so}
123
124 HPUX_OBJS = ${SH_OBJS:.so=.sl}
125 HPUX_CORE_OBJS = ${SH_CORE_OBJS:.so=.sl}
126
127 S_OBJS = ${ALL_SRCS:.c=.o}
128
129 DOLLAR = $$
130
131 default: build
132 build: all
133 all: @MOD_TARGET@
134
135 shared_modules: $(SH_CORE_OBJS) $(SH_OBJS)
136
137 hpux_modules: $(HPUX_CORE_OBJS) $(HPUX_OBJS)
138
139 hpux_shared: $(SH_CORE_OBJS) $(SH_OBJS)
140 ${MAKE} hpux_modules
141
142 static_modules.c: static_modules.c.SH
143 /bin/sh ./static_modules.c.SH $(S_OBJS)
144
145 libmodules.a: $(S_OBJS) static_modules.o
146 $(RM) -f $@
147 $(AR) cqv $@ $(S_OBJS) static_modules.o
148 $(RANLIB) $@
149
150
151 install-mkdirs:
152 @echo "ircd: setting up modular directory structure"
153 -@if test ! -d $(DESTDIR)$(moduledir); then \
154 mkdir $(DESTDIR)$(moduledir); \
155 fi
156 -@if test -d $(DESTDIR)$(moduledir)-old; then \
157 rm -rf $(DESTDIR)$(moduledir)-old; \
158 fi
159 -@if test -d $(DESTDIR)$(moduledir); then \
160 echo "ircd: backing up modules"; \
161 mv $(DESTDIR)$(moduledir) $(DESTDIR)$(moduledir)-old; \
162 fi
163
164 @mkdir -p -m 755 $(DESTDIR)$(moduledir)
165 @mkdir -p -m 755 $(DESTDIR)$(automoduledir)
166
167 install: install_@MOD_TARGET@
168
169 install_libmodules.a: libmodules.a
170 # Ye olde noop here.
171
172 install_shared_modules: install-mkdirs
173 @echo "ircd: installing modules"
174 @for file in $(SH_CORE_OBJS); do \
175 $(INSTALL_DATA) $$file $(DESTDIR)$(moduledir); \
176 done
177 @for file in $(SH_OBJS); do \
178 $(INSTALL_DATA) $$file $(DESTDIR)$(automoduledir); \
179 done
180
181 install_hpux_shared: install-mkdirs
182 @echo "ircd: installing modules"
183 @for file in $(HPUX_CORE_OBJS); do \
184 $(INSTALL_DATA) $$file $(DESTDIR)$(moduledir); \
185 done
186 @for file in $(HPUX_OBJS); do \
187 $(INSTALL_DATA) $$file $(DESTDIR)$(automoduledir); \
188 done
189
190 .SUFFIXES: .sl .so .o
191
192 .c.o:
193 ${CC} ${CPPFLAGS} ${CFLAGS} -DMODNAME=`basename $< .c`_mheader -c $< -o $@
194
195 .c.so:
196 ${CC} ${PICFLAGS} ${CPPFLAGS} ${CFLAGS} $< -o $@
197
198 .so.sl:
199 $(LD) -b $< -o $@
200
201 .PHONY: depend clean distclean
202 depend:
203 @$(RM) -f .depend
204 ${MKDEP} ${CPPFLAGS} ${ALL_SRCS} > .depend
205 @$(SED) -e '${SEDOBJ}' < .depend > .depend.tmp-1
206 @$(SED) -e 's#^m_die\.#core/&#' -e 's#^m_error\.#core/&#' -e 's#^m_join\.#core/&#' -e 's#^m_kick\.#core/&#' -e 's#^m_kill\.#core/&#' -e 's#^m_message\.#core/&#' -e 's#^m_mode\.#core/&#' -e 's#^m_nick\.#core/&#' -e 's#^m_part\.#core/&#' -e 's#^m_quit\.#core/&#' -e 's#^m_server\.#core/&#' -e 's#^m_squit\.#core/&#' .depend.tmp-1 > .depend.tmp
207 @$(MV) -f .depend.tmp .depend
208 @$(RM) -f .depend.tmp-1
209
210 clean:
211 ${RM} -f *.so *.sl *~ *.o *.a
212 ${RM} -f core/*.so core/*.sl core/*~ core/*.o
213
214 lint:
215 lint -aacgprxhH ${CPPFLAGS} -DIRCD_PREFIX=\"@prefix@\" $(ALL_SRCS) >../lint.out
216
217 distclean: clean
218 ${RM} -f Makefile
219
220 include .depend