ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-7.2/modules/Makefile.in
Revision: 885
Committed: Wed Oct 31 18:09:24 2007 UTC (16 years, 5 months ago) by michael
File size: 4174 byte(s)
Log Message:
- Removed LazyLinks in 7.2 to stop people from asking why we keep
  broken code for half a decade. LL will be implemented in a smarter
  fashion in due time

File Contents

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