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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 502 - (hide annotations)
Fri Mar 3 19:49:25 2006 UTC (15 years, 3 months ago) by michael
File size: 4133 byte(s)
- Implemented CAP command handler based uppon ircu's m_cap()
- Added somewhat outdated draft-mitchell-irc-capabilities-01.txt until
  I get the latest version from kev.
- Added "multi-prefix" cap so clients supporting "multi-prefix"
  may recieve multi prefixed NAMES replies, e.g. @%+nick1 @+nick2 ..
- Fixed "make clean" for src/conf/

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