]>
Commit | Line | Data |
---|---|---|
212380e3 AC |
1 | # |
2 | # Makefile.in for ircd/contrib | |
3 | # | |
762cc38c | 4 | # $Id: Makefile.in 3522 2007-07-06 07:48:28Z 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 | ||
f24a7dfb | 26 | INCLUDES = -I. -I../include -I../libratbox/include $(SSL_INCLUDES) |
212380e3 AC |
27 | CPPFLAGS = ${INCLUDES} @CPPFLAGS@ |
28 | ||
29 | SRCS = \ | |
6538a4cb | 30 | chm_adminonly.c \ |
216574be | 31 | chm_operonly.c \ |
ec40aa0d | 32 | chm_operonly_compat.c \ |
b50c1127 | 33 | chm_quietunreg_compat.c \ |
80ce25be | 34 | chm_sslonly.c \ |
6d1a8b6e | 35 | chm_sslonly_compat.c \ |
212380e3 | 36 | createauthonly.c \ |
45ed9777 | 37 | createoperonly.c \ |
212380e3 AC |
38 | extb_account.c \ |
39 | extb_canjoin.c \ | |
40 | extb_channel.c \ | |
41 | extb_oper.c \ | |
42 | extb_server.c \ | |
0e51998b | 43 | extb_ssl.c \ |
212380e3 | 44 | extb_realname.c \ |
0b18e32c | 45 | extb_usermode.c \ |
212380e3 | 46 | extb_extgecos.c \ |
30ae6c6f | 47 | force_user_invis.c \ |
212380e3 AC |
48 | hurt.c \ |
49 | ip_cloaking.c \ | |
762cc38c | 50 | ip_cloaking_old.c \ |
4cbfc368 AC |
51 | ip_cloaking_3.0.c \ |
52 | ip_cloaking_4.0.c \ | |
429cf1b7 | 53 | override.c \ |
212380e3 AC |
54 | sno_farconnect.c \ |
55 | sno_globalkline.c \ | |
56 | sno_globaloper.c \ | |
9e6feafe | 57 | sno_whois.c \ |
212380e3 | 58 | m_42.c \ |
aee6f890 | 59 | m_adminwall.c \ |
212380e3 AC |
60 | m_findforwards.c \ |
61 | m_identify.c \ | |
62 | m_mkpasswd.c \ | |
63 | m_ojoin.c \ | |
64 | m_olist.c \ | |
65 | m_okick.c \ | |
66 | m_omode.c \ | |
67 | m_opme.c \ | |
b0ccacd2 | 68 | m_sendbans.c \ |
212380e3 | 69 | m_webirc.c \ |
925c50ef | 70 | m_remove.c \ |
8ffa8275 | 71 | m_roleplay.c \ |
6dc16f7e | 72 | no_locops.c \ |
212380e3 AC |
73 | no_oper_invis.c \ |
74 | spy_admin_notice.c \ | |
75 | spy_info_notice.c \ | |
76 | spy_links_notice.c \ | |
77 | spy_motd_notice.c \ | |
78 | spy_stats_notice.c \ | |
79 | spy_stats_p_notice.c \ | |
80 | spy_trace_notice.c \ | |
212380e3 AC |
81 | example_module.c |
82 | ||
83 | OBJS = ${SRCS:.c=.so} | |
84 | ||
85 | default: build | |
86 | build: all | |
87 | all: $(OBJS) | |
88 | ||
89 | install: all | |
90 | -@if test ! -d $(DESTDIR)$(AUTOMODULEDIR); then \ | |
91 | mkdir $(DESTDIR)$(AUTOMODULEDIR); \ | |
92 | fi | |
93 | @echo "Installing modules into $(DESTDIR)$(AUTOMODULEDIR) .." | |
94 | @for file in $(OBJS); do \ | |
95 | $(INSTALL_DATA) $$file $(DESTDIR)$(AUTOMODULEDIR); \ | |
96 | done | |
97 | ||
98 | .SUFFIXES: .so | |
99 | ||
100 | .c.so: | |
101 | ${CC} ${PICFLAGS} ${CPPFLAGS} ${CFLAGS} $< -o $@ | |
102 | ||
103 | .PHONY: depend clean distclean | |
104 | depend: | |
105 | @${MKDEP} ${CPPFLAGS} ${SRCS} > .depend | |
106 | @sed s/\\\.o/\\\.so/ < .depend > .depend.tmp | |
107 | @sed -e '/^# DO NOT DELETE THIS LINE/,$$d' <Makefile >Makefile.depend | |
108 | @echo '# DO NOT DELETE THIS LINE!!!' >>Makefile.depend | |
109 | @echo '# make depend needs it.' >>Makefile.depend | |
110 | @cat .depend.tmp >>Makefile.depend | |
111 | @mv Makefile.depend Makefile | |
112 | @rm -f .depend.tmp .depend | |
113 | ||
114 | clean: | |
115 | ${RM} -f *.so *~ | |
116 | ||
117 | distclean: clean | |
118 | ${RM} -f Makefile | |
119 |