/[svn]/ircd-hybrid/modules/Makefile.in
ViewVC logotype

Contents of /ircd-hybrid/modules/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 398 - (show annotations)
Tue Feb 7 12:00:21 2006 UTC (15 years, 4 months ago) by michael
File size: 4121 byte(s)
- Ripped out lazylinks as discussed on irc. the main concept wasn't very well
  designed and will be done in a better way some day.  Anyways, they propably
  never worked and were considered bloat by most people.  Good bye!

1 #
2 # Makefile.in for ircd/modules
3 #
4 # $Id$
5 #
6 CC = @CC@
7 AR = @AR@
8 RM = @RM@
9 SED = @SED@
10 SEDOBJ = @SEDOBJ@
11 STDOUT = @STDOUT@
12 CFLAGS = @IRC_CFLAGS@
13 PICFLAGS = @PICFLAGS@
14 MKDEP = @MKDEP@
15 INSTALL = @INSTALL@
16 INSTALL_DATA = @INSTALL_DATA@
17 MV = @MV@
18 LD = @LD@
19
20 SSL_LIBS = @SSL_LIBS@
21 SSL_INCLUDES = @SSL_INCLUDES@
22 IRCDLIBS = @LIBS@ $(SSL_LIBS)
23
24 prefix = $(DESTDIR)@prefix@
25 # Change this later! -- adrian
26 moduledir = ${prefix}/modules
27 automoduledir = ${moduledir}/autoload
28
29 INCLUDES = -I../include -I../libio $(SSL_INCLUDES)
30 CPPFLAGS = ${INCLUDES} @CPPFLAGS@
31
32 CORE_SRCS = \
33 core/m_die.c \
34 core/m_join.c \
35 core/m_kick.c \
36 core/m_kill.c \
37 core/m_message.c \
38 core/m_mode.c \
39 core/m_nick.c \
40 core/m_part.c \
41 core/m_quit.c \
42 core/m_server.c \
43 core/m_sjoin.c \
44 core/m_squit.c
45
46 SSL_SRCS = \
47 m_challenge.c \
48 m_cryptlink.c
49
50 SRCS = \
51 m_accept.c \
52 m_admin.c \
53 m_away.c \
54 m_capab.c \
55 m_close.c \
56 @SSL_SRCS_ENABLE@ \
57 m_connect.c \
58 m_encap.c \
59 m_eob.c \
60 m_etrace.c \
61 m_hash.c \
62 m_help.c \
63 m_gline.c \
64 m_info.c \
65 m_invite.c \
66 m_ison.c \
67 m_kline.c \
68 m_knock.c \
69 m_links.c \
70 m_list.c \
71 m_locops.c \
72 m_lusers.c \
73 m_map.c \
74 m_motd.c \
75 m_names.c \
76 m_omotd.c \
77 m_oper.c \
78 m_operwall.c \
79 m_pass.c \
80 m_ping.c \
81 m_pong.c \
82 m_post.c \
83 m_rehash.c \
84 m_restart.c \
85 m_resv.c \
86 m_rkline.c \
87 m_rxline.c \
88 m_set.c \
89 m_stats.c \
90 m_svinfo.c \
91 m_tburst.c \
92 m_testmask.c \
93 m_testline.c \
94 m_time.c \
95 m_topic.c \
96 m_trace.c \
97 m_user.c \
98 m_userhost.c \
99 m_users.c \
100 m_version.c \
101 m_wallops.c \
102 m_watch.c \
103 m_who.c \
104 m_whois.c \
105 m_whowas.c \
106 m_xline.c
107
108 ALL_SRCS = $(CORE_SRCS) $(SRCS) @SSL_SRCS_ENABLE@
109
110 SH_OBJS = ${SRCS:.c=.so}
111 SH_CORE_OBJS = ${CORE_SRCS:.c=.so}
112
113 HPUX_OBJS = ${SH_OBJS:.so=.sl}
114 HPUX_CORE_OBJS = ${SH_CORE_OBJS:.so=.sl}
115
116 S_OBJS = ${ALL_SRCS:.c=.o}
117
118 default: build
119 build: all
120 all: .depend @MOD_TARGET@
121
122 shared_modules: $(SH_CORE_OBJS) $(SH_OBJS)
123
124 hpux_shared: $(SH_CORE_OBJS) $(SH_OBJS) $(HPUX_CORE_OBJS) $(HPUX_OBJS)
125
126 libmodules.a: $(S_OBJS)
127 $(RM) -f $@
128 $(AR) csrv $@ $(S_OBJS)
129
130 install-mkdirs:
131 mkdir -p $(prefix)
132
133 -@if test -d $(moduledir)-old; then \
134 echo "${RM} -rf $(moduledir)-old"; \
135 ${RM} -rf $(moduledir)-old; \
136 fi
137 -@if test -d $(moduledir); then \
138 echo "${MV} $(moduledir) $(moduledir)-old"; \
139 ${MV} $(moduledir) $(moduledir)-old; \
140 fi
141
142 mkdir -p $(moduledir) $(automoduledir)
143
144 install: install_@MOD_TARGET@
145
146 install_libmodules.a: libmodules.a
147 # Ye olde noop here.
148
149 install_shared_modules: install-mkdirs
150 @echo "Installing core modules into $(moduledir) .."
151 @for file in $(SH_CORE_OBJS); do \
152 $(INSTALL_DATA) $$file $(moduledir); \
153 done
154 @echo "Installing modules into $(automoduledir) .."
155 @for file in $(SH_OBJS); do \
156 $(INSTALL_DATA) $$file $(automoduledir); \
157 done
158
159 install_hpux_shared: install-mkdirs
160 @echo "Installing core modules into $(moduledir) .."
161 @for file in $(HPUX_CORE_OBJS); do \
162 $(INSTALL_DATA) $$file $(moduledir); \
163 done
164 @echo "Installing modules into $(automoduledir) .."
165 @for file in $(HPUX_OBJS); do \
166 $(INSTALL_DATA) $$file $(automoduledir); \
167 done
168
169 .SUFFIXES: .sl .so .o
170
171 .c.o:
172 ${CC} ${CPPFLAGS} ${CFLAGS} -c $< -o $@
173
174 .c.so:
175 ${CC} ${PICFLAGS} ${CPPFLAGS} ${CFLAGS} $< -o $@
176
177 .so.sl:
178 $(LD) -b $< -o $@
179
180 .depend:
181 ${MKDEP} ${CPPFLAGS} ${ALL_SRCS} ${STDOUT}
182 ${SED} -e '${SEDOBJ}' < .depend > .depend.tmp-1
183 ${SED} -e 's/^m_\(server\|squit\|die\|join\|kick\|kill\|message\|mode\|nick\|part\|quit\|sjoin\)/core\/m_\1/' .depend.tmp-1 > .depend.tmp
184 @${SED} -e '/^# Autogenerated - do not delete/,$$d' <Makefile >Makefile.depend
185 @echo '# Autogenerated - do not delete' >>Makefile.depend
186 @echo 'include .depend' >> Makefile.depend
187 @${MV} Makefile.depend Makefile
188 ${MV} -f .depend.tmp .depend
189 ${RM} -f .depend.tmp-1
190
191 clean:
192 ${RM} -f *.so *.sl *~ *.o *.a so_locations
193 ${RM} -f core/*.so core/*.sl core/*~ core/*.o
194
195 distclean: clean
196 ${RM} -f Makefile .depend
197
198 .PHONY: clean distclean install install_hpux_shared hpux_shared install_shared_modules shared_modules install_libmodules.a install-mkdirs build

Properties

Name Value
svn:eol-style native
svn:keywords Id Revision

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28