]>
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 = \ | |
ec40aa0d | 30 | chm_operonly_compat.c \ |
b50c1127 | 31 | chm_quietunreg_compat.c \ |
6d1a8b6e | 32 | chm_sslonly_compat.c \ |
212380e3 | 33 | createauthonly.c \ |
45ed9777 | 34 | createoperonly.c \ |
212380e3 AC |
35 | extb_account.c \ |
36 | extb_canjoin.c \ | |
37 | extb_channel.c \ | |
38 | extb_oper.c \ | |
39 | extb_server.c \ | |
0e51998b | 40 | extb_ssl.c \ |
212380e3 AC |
41 | extb_realname.c \ |
42 | extb_extgecos.c \ | |
30ae6c6f | 43 | force_user_invis.c \ |
212380e3 AC |
44 | hurt.c \ |
45 | ip_cloaking.c \ | |
762cc38c | 46 | ip_cloaking_old.c \ |
212380e3 AC |
47 | sno_farconnect.c \ |
48 | sno_globalkline.c \ | |
49 | sno_globaloper.c \ | |
9e6feafe | 50 | sno_whois.c \ |
212380e3 | 51 | m_42.c \ |
aee6f890 | 52 | m_adminwall.c \ |
212380e3 AC |
53 | m_findforwards.c \ |
54 | m_identify.c \ | |
55 | m_mkpasswd.c \ | |
56 | m_ojoin.c \ | |
57 | m_olist.c \ | |
58 | m_okick.c \ | |
59 | m_omode.c \ | |
60 | m_opme.c \ | |
61 | m_webirc.c \ | |
6dc16f7e | 62 | no_locops.c \ |
212380e3 AC |
63 | no_oper_invis.c \ |
64 | spy_admin_notice.c \ | |
65 | spy_info_notice.c \ | |
66 | spy_links_notice.c \ | |
67 | spy_motd_notice.c \ | |
68 | spy_stats_notice.c \ | |
69 | spy_stats_p_notice.c \ | |
70 | spy_trace_notice.c \ | |
212380e3 AC |
71 | example_module.c |
72 | ||
73 | OBJS = ${SRCS:.c=.so} | |
74 | ||
75 | default: build | |
76 | build: all | |
77 | all: $(OBJS) | |
78 | ||
79 | install: all | |
80 | -@if test ! -d $(DESTDIR)$(AUTOMODULEDIR); then \ | |
81 | mkdir $(DESTDIR)$(AUTOMODULEDIR); \ | |
82 | fi | |
83 | @echo "Installing modules into $(DESTDIR)$(AUTOMODULEDIR) .." | |
84 | @for file in $(OBJS); do \ | |
85 | $(INSTALL_DATA) $$file $(DESTDIR)$(AUTOMODULEDIR); \ | |
86 | done | |
87 | ||
88 | .SUFFIXES: .so | |
89 | ||
90 | .c.so: | |
91 | ${CC} ${PICFLAGS} ${CPPFLAGS} ${CFLAGS} $< -o $@ | |
92 | ||
93 | .PHONY: depend clean distclean | |
94 | depend: | |
95 | @${MKDEP} ${CPPFLAGS} ${SRCS} > .depend | |
96 | @sed s/\\\.o/\\\.so/ < .depend > .depend.tmp | |
97 | @sed -e '/^# DO NOT DELETE THIS LINE/,$$d' <Makefile >Makefile.depend | |
98 | @echo '# DO NOT DELETE THIS LINE!!!' >>Makefile.depend | |
99 | @echo '# make depend needs it.' >>Makefile.depend | |
100 | @cat .depend.tmp >>Makefile.depend | |
101 | @mv Makefile.depend Makefile | |
102 | @rm -f .depend.tmp .depend | |
103 | ||
104 | clean: | |
105 | ${RM} -f *.so *~ | |
106 | ||
107 | distclean: clean | |
108 | ${RM} -f Makefile | |
109 |