ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-7.2/modules/Makefile.in
Revision: 876
Committed: Wed Oct 24 21:51:21 2007 UTC (18 years, 11 months ago) by michael
File size: 4247 byte(s)
Log Message:
Backported WATCH

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