/[svn]/contrib/Makefile.in
ViewVC logotype

Contents of /contrib/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 812 - (show annotations)
Thu Sep 7 09:41:54 2006 UTC (4 years ago) by michael
File size: 3352 byte(s)
- Imported contrib/
1 #
2 # Makefile.in for ircd/contrib
3 #
4 # $Id: Makefile.in 810 2006-09-04 20:18:53Z adx $
5 #
6 CC = @CC@
7 RM = @RM@
8 SED = @SED@
9 SEDOBJ = @SEDOBJ@
10 STDOUT = @STDOUT@
11 MV = @MV@
12 CFLAGS = @IRC_CFLAGS@
13 LD = @LD@
14 LN = @LN@
15 PICFLAGS = @PICFLAGS@
16 MKDEP = @MKDEP@
17 INSTALL = @INSTALL@
18 INSTALL_DATA = @INSTALL_DATA@
19
20 prefix = $(DESTDIR)@prefix@
21
22 AUTOMODULEDIR = ${prefix}/modules
23
24 SSL_LIBS = @SSL_LIBS@
25 SSL_INCLUDES = @SSL_INCLUDES@
26
27 IRCDLIBS = @LIBS@ $(SSL_LIBS)
28
29 INCLUDES = -I../include -I../libio $(SSL_INCLUDES)
30 CPPFLAGS = ${INCLUDES} @CPPFLAGS@
31
32 SRCS = \
33 ip_cloaking.c \
34 oper_override.c \
35 recode.c \
36 soft_reboot.c \
37 m_capture.c \
38 m_change.c \
39 m_clearchan.c \
40 m_classlist.c \
41 m_ctrace.c \
42 m_flags.c \
43 m_force.c \
44 m_jupe.c \
45 m_killhost.c \
46 m_mkpasswd.c \
47 m_ojoin.c \
48 m_operspy.c \
49 m_opme.c \
50 m_services.c \
51 m_spoof.c
52
53 SHARED_ONLY_SRCS = \
54 spy_admin_notice.c \
55 spy_info_notice.c \
56 spy_links_notice.c \
57 spy_motd_notice.c \
58 spy_stats_notice.c \
59 spy_stats_p_notice.c \
60 spy_trace_notice.c \
61 spy_whois_notice.c
62
63 OBJS = ${SRCS:.c=.so} ${SHARED_ONLY_SRCS:.c=.so}
64 SOBJS = ${SRCS:.c=.o}
65 SLOBJS = ${OBJS:.so=.sl}
66
67 default: build
68 build: all
69 all: .depend @MOD_TARGET@
70
71 libmodules.a: ../modules/libmodules.a $(SOBJS)
72 @echo "WARNING WARNING WARNING"
73 @echo "These modules are unsupported by the hybrid team, but due to the"
74 @echo "limits of your OS we link them all in by default. If you do NOT"
75 @echo "want this to happen, take out references to the modules you don't"
76 @echo "want in include/modules.h, src/modules.c, and this Makefile (SRCS.)"
77 @echo "YOU HAVE BEEN WARNED!"
78
79 $(AR) csrv ../modules/libmodules.a $(SOBJS)
80
81 cd ../src && \
82 $(CC) $(CPPFLAGS) $(CFLAGS) -DBUILD_CONTRIB -c modules.c || exit; \
83 ${MAKE} ircd
84
85 @echo "New statically linked ircd binary has been generated; suggest $(MAKE) install."
86
87 shared_modules: $(OBJS)
88
89 hpux_shared: $(OBJS) $(SLOBJS)
90
91 ../modules/libmodules.a:
92 cd ../modules && ${MAKE}
93
94 install: all install_@MOD_TARGET@ install_help
95
96 install_shared_modules: $(OBJS)
97 mkdir -p $(AUTOMODULEDIR)
98 @echo "Installing modules into $(AUTOMODULEDIR) .."
99 @for file in $(OBJS); do \
100 $(INSTALL_DATA) $$file $(AUTOMODULEDIR); \
101 done
102
103 install_hpux_shared: $(SLOBJS)
104 mkdir -p $(AUTOMODULEDIR)
105 @echo "Installing modules into $(AUTOMODULEDIR) .."
106 @for file in $(SLOBJS); do \
107 $(INSTALL_DATA) $$file $(AUTOMODULEDIR); \
108 done
109
110 install_help:
111 cd help && ${MAKE} install || exit; cd ..;
112
113 install_libmodules.a:
114 # Ye olde noop.
115
116 .SUFFIXES: .so .sl .o
117
118 .c.so:
119 ${CC} ${PICFLAGS} ${CPPFLAGS} ${CFLAGS} $< -o $@ -liconv
120
121 .c.o:
122 ${CC} ${CPPFLAGS} ${CFLAGS} -c $< -o $@
123
124 .so.sl:
125 ${LD} -b $< -o $@
126
127 .depend:
128 ${MKDEP} ${CPPFLAGS} ${SRCS} ${STDOUT}
129 ${SED} -e '${SEDOBJ}' < .depend > .depend.tmp
130 @${SED} -e '/^# Autogenerated - do not delete/,$$d' <Makefile >Makefile.depend
131 @echo '# Autogenerated - do not delete' >>Makefile.depend
132 @echo 'include .depend' >> Makefile.depend
133 @${MV} Makefile.depend Makefile
134 ${MV} -f .depend.tmp .depend
135
136 clean:
137 ${RM} -f *.so *.o *.sl *~
138 cd help && ${MAKE} clean || exit; cd ..;
139
140 distclean: clean
141 ${RM} -f Makefile .depend
142 cd help && ${MAKE} distclean || exit; cd ..;
143
144 .PHONY: depend clean distclean install_hpux_shared install_libmodules.a install_help shared_modules install hpux_shared build

Properties

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

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