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