]>
Commit | Line | Data |
---|---|---|
212380e3 AC |
1 | # |
2 | # Makefile.in for ircd/contrib | |
3 | # | |
59e2698a | 4 | # $Id: Makefile.in 3474 2007-05-24 04:16:02Z nenolod $ |
212380e3 AC |
5 | # |
6 | CC = @CC@ | |
7 | RM = @RM@ | |
8 | SED = @SED@ | |
9 | LEX = @LEX@ | |
10 | LEXLIB = @LEXLIB@ | |
11 | CFLAGS = @IRC_CFLAGS@ -DIRCD_PREFIX=\"@prefix@\" | |
12 | PICFLAGS = @PICFLAGS@ | |
13 | MKDEP = @MKDEP@ | |
14 | INSTALL = @INSTALL@ | |
15 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
16 | INSTALL_DATA = @INSTALL_DATA@ | |
17 | INSTALL_SUID = @INSTALL_PROGRAM@ -o root -m 4755 | |
18 | SHELL = /bin/sh | |
19 | AUTOMODULEDIR = @moduledir@/extensions | |
20 | ||
21 | SSL_LIBS = @SSL_LIBS@ | |
22 | SSL_INCLUDES = @SSL_INCLUDES@ | |
23 | ||
24 | IRCDLIBS = @LIBS@ $(SSL_LIBS) | |
25 | ||
26 | INCLUDES = -I. -I../include -I../libcharybdis -I../adns $(SSL_INCLUDES) | |
27 | CPPFLAGS = ${INCLUDES} @CPPFLAGS@ | |
28 | ||
29 | SRCS = \ | |
30 | createauthonly.c \ | |
31 | extb_account.c \ | |
32 | extb_canjoin.c \ | |
33 | extb_channel.c \ | |
34 | extb_oper.c \ | |
35 | extb_server.c \ | |
36 | extb_realname.c \ | |
37 | extb_extgecos.c \ | |
38 | hurt.c \ | |
39 | ip_cloaking.c \ | |
59e2698a | 40 | sno_channeljoin.c \ |
212380e3 AC |
41 | sno_farconnect.c \ |
42 | sno_globalkline.c \ | |
43 | sno_globaloper.c \ | |
9e6feafe | 44 | sno_whois.c \ |
212380e3 AC |
45 | m_42.c \ |
46 | m_findforwards.c \ | |
47 | m_identify.c \ | |
48 | m_mkpasswd.c \ | |
49 | m_ojoin.c \ | |
50 | m_olist.c \ | |
51 | m_okick.c \ | |
52 | m_omode.c \ | |
53 | m_opme.c \ | |
54 | m_webirc.c \ | |
55 | no_oper_invis.c \ | |
56 | spy_admin_notice.c \ | |
57 | spy_info_notice.c \ | |
58 | spy_links_notice.c \ | |
59 | spy_motd_notice.c \ | |
60 | spy_stats_notice.c \ | |
61 | spy_stats_p_notice.c \ | |
62 | spy_trace_notice.c \ | |
212380e3 AC |
63 | example_module.c |
64 | ||
65 | OBJS = ${SRCS:.c=.so} | |
66 | ||
67 | default: build | |
68 | build: all | |
69 | all: $(OBJS) | |
70 | ||
71 | install: all | |
72 | -@if test ! -d $(DESTDIR)$(AUTOMODULEDIR); then \ | |
73 | mkdir $(DESTDIR)$(AUTOMODULEDIR); \ | |
74 | fi | |
75 | @echo "Installing modules into $(DESTDIR)$(AUTOMODULEDIR) .." | |
76 | @for file in $(OBJS); do \ | |
77 | $(INSTALL_DATA) $$file $(DESTDIR)$(AUTOMODULEDIR); \ | |
78 | done | |
79 | ||
80 | .SUFFIXES: .so | |
81 | ||
82 | .c.so: | |
83 | ${CC} ${PICFLAGS} ${CPPFLAGS} ${CFLAGS} $< -o $@ | |
84 | ||
85 | .PHONY: depend clean distclean | |
86 | depend: | |
87 | @${MKDEP} ${CPPFLAGS} ${SRCS} > .depend | |
88 | @sed s/\\\.o/\\\.so/ < .depend > .depend.tmp | |
89 | @sed -e '/^# DO NOT DELETE THIS LINE/,$$d' <Makefile >Makefile.depend | |
90 | @echo '# DO NOT DELETE THIS LINE!!!' >>Makefile.depend | |
91 | @echo '# make depend needs it.' >>Makefile.depend | |
92 | @cat .depend.tmp >>Makefile.depend | |
93 | @mv Makefile.depend Makefile | |
94 | @rm -f .depend.tmp .depend | |
95 | ||
96 | clean: | |
97 | ${RM} -f *.so *~ | |
98 | ||
99 | distclean: clean | |
100 | ${RM} -f Makefile | |
101 |