ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-7.2/modules/Makefile.in
Revision: 503
Committed: Fri Mar 3 19:53:47 2006 UTC (18 years, 1 month ago) by michael
File size: 4195 byte(s)
Log Message:
- Backported CAP changes from HEAD since it doesn't affect
  any of the ircd's core components and should be supported
  as soon as possible.

File Contents

# User Rev Content
1 adx 30 #
2     # Makefile.in for ircd/modules
3     #
4 knight 31 # $Id$
5 adx 30 #
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../lib/pcre $(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 michael 503 m_cap.c \
55 adx 30 m_capab.c \
56     m_cburst.c \
57     m_close.c \
58     @SSL_SRCS_ENABLE@ \
59     m_connect.c \
60     m_drop.c \
61     m_encap.c \
62     m_eob.c \
63     m_etrace.c \
64     m_hash.c \
65     m_help.c \
66     m_gline.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_lljoin.c \
75     m_llnick.c \
76     m_locops.c \
77     m_lusers.c \
78     m_map.c \
79     m_motd.c \
80     m_names.c \
81     m_nburst.c \
82     m_omotd.c \
83     m_oper.c \
84     m_operwall.c \
85     m_pass.c \
86     m_ping.c \
87     m_pong.c \
88     m_post.c \
89     m_rehash.c \
90     m_restart.c \
91     m_resv.c \
92     m_rkline.c \
93     m_rxline.c \
94     m_set.c \
95     m_stats.c \
96     m_svinfo.c \
97 michael 326 m_tburst.c \
98 adx 30 m_testmask.c \
99     m_testline.c \
100     m_time.c \
101     m_topic.c \
102     m_trace.c \
103     m_user.c \
104     m_userhost.c \
105     m_users.c \
106     m_version.c \
107     m_wallops.c \
108     m_who.c \
109     m_whois.c \
110     m_whowas.c \
111     m_xline.c
112    
113     ALL_SRCS = $(CORE_SRCS) $(SRCS) @SSL_SRCS_ENABLE@
114    
115     SH_OBJS = ${SRCS:.c=.so}
116     SH_CORE_OBJS = ${CORE_SRCS:.c=.so}
117    
118     HPUX_OBJS = ${SH_OBJS:.so=.sl}
119     HPUX_CORE_OBJS = ${SH_CORE_OBJS:.so=.sl}
120    
121     S_OBJS = ${ALL_SRCS:.c=.o}
122    
123     default: build
124     build: all
125     all: .depend @MOD_TARGET@
126    
127     shared_modules: $(SH_CORE_OBJS) $(SH_OBJS)
128    
129     hpux_shared: $(SH_CORE_OBJS) $(SH_OBJS) $(HPUX_CORE_OBJS) $(HPUX_OBJS)
130    
131     libmodules.a: $(S_OBJS)
132     $(RM) -f $@
133     $(AR) csrv $@ $(S_OBJS)
134    
135     install-mkdirs:
136     mkdir -p $(prefix)
137    
138     -@if test -d $(moduledir)-old; then \
139     echo "${RM} -rf $(moduledir)-old"; \
140     ${RM} -rf $(moduledir)-old; \
141     fi
142     -@if test -d $(moduledir); then \
143     echo "${MV} $(moduledir) $(moduledir)-old"; \
144     ${MV} $(moduledir) $(moduledir)-old; \
145     fi
146    
147     mkdir -p $(moduledir) $(automoduledir)
148    
149     install: install_@MOD_TARGET@
150    
151     install_libmodules.a: libmodules.a
152     # Ye olde noop here.
153    
154     install_shared_modules: install-mkdirs
155     @echo "Installing core modules into $(moduledir) .."
156     @for file in $(SH_CORE_OBJS); do \
157     $(INSTALL_DATA) $$file $(moduledir); \
158     done
159     @echo "Installing modules into $(automoduledir) .."
160     @for file in $(SH_OBJS); do \
161     $(INSTALL_DATA) $$file $(automoduledir); \
162     done
163    
164     install_hpux_shared: install-mkdirs
165     @echo "Installing core modules into $(moduledir) .."
166     @for file in $(HPUX_CORE_OBJS); do \
167     $(INSTALL_DATA) $$file $(moduledir); \
168     done
169     @echo "Installing modules into $(automoduledir) .."
170     @for file in $(HPUX_OBJS); do \
171     $(INSTALL_DATA) $$file $(automoduledir); \
172     done
173    
174     .SUFFIXES: .sl .so .o
175    
176     .c.o:
177     ${CC} ${CPPFLAGS} ${CFLAGS} -c $< -o $@
178    
179     .c.so:
180     ${CC} ${PICFLAGS} ${CPPFLAGS} ${CFLAGS} $< -o $@
181    
182     .so.sl:
183     $(LD) -b $< -o $@
184    
185     .depend:
186     ${MKDEP} ${CPPFLAGS} ${ALL_SRCS} ${STDOUT}
187     ${SED} -e '${SEDOBJ}' < .depend > .depend.tmp-1
188     ${SED} -e 's/^m_\(server\|squit\|die\|join\|kick\|kill\|message\|mode\|nick\|part\|quit\|sjoin\)/core\/m_\1/' .depend.tmp-1 > .depend.tmp
189     @${SED} -e '/^# Autogenerated - do not delete/,$$d' <Makefile >Makefile.depend
190     @echo '# Autogenerated - do not delete' >>Makefile.depend
191     @echo 'include .depend' >> Makefile.depend
192     @${MV} Makefile.depend Makefile
193     ${MV} -f .depend.tmp .depend
194     ${RM} -f .depend.tmp-1
195    
196     clean:
197     ${RM} -f *.so *.sl *~ *.o *.a so_locations
198     ${RM} -f core/*.so core/*.sl core/*~ core/*.o
199    
200     distclean: clean
201     ${RM} -f Makefile .depend
202    
203     .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