]> jfr.im git - solanum.git/blob - extensions/Makefile.in
import marienz's extb_combi module (ref #74)
[solanum.git] / extensions / Makefile.in
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
20 prefix = @prefix@
21 exec_prefix = @exec_prefix@
22 libdir = @libdir@
23 pkglibdir = @pkglibdir@
24 moduledir = @moduledir@
25 PACKAGE_TARNAME = @PACKAGE_TARNAME@
26 AUTOMODULEDIR = $(moduledir)/extensions
27
28 SSL_LIBS = @SSL_LIBS@
29 SSL_INCLUDES = @SSL_INCLUDES@
30
31 IRCDLIBS = @LIBS@ $(SSL_LIBS)
32
33 INCLUDES = -I. -I../include -I../libratbox/include $(SSL_INCLUDES)
34 CPPFLAGS = ${INCLUDES} @CPPFLAGS@
35
36 SRCS = \
37 chm_adminonly.c \
38 chm_operonly.c \
39 chm_operonly_compat.c \
40 chm_nonotice.c \
41 chm_quietunreg_compat.c \
42 chm_sslonly.c \
43 chm_sslonly_compat.c \
44 createauthonly.c \
45 createoperonly.c \
46 extb_account.c \
47 extb_canjoin.c \
48 extb_channel.c \
49 extb_oper.c \
50 extb_server.c \
51 extb_ssl.c \
52 extb_realname.c \
53 extb_usermode.c \
54 extb_extgecos.c \
55 extb_combi.c \
56 force_user_invis.c \
57 hurt.c \
58 ip_cloaking.c \
59 ip_cloaking_old.c \
60 ip_cloaking_3.0.c \
61 ip_cloaking_4.0.c \
62 override.c \
63 restrict-unauthenticated.c \
64 sno_farconnect.c \
65 sno_globalkline.c \
66 sno_globaloper.c \
67 sno_whois.c \
68 m_42.c \
69 m_adminwall.c \
70 m_findforwards.c \
71 m_identify.c \
72 m_mkpasswd.c \
73 m_ojoin.c \
74 m_okick.c \
75 m_omode.c \
76 m_opme.c \
77 m_sendbans.c \
78 m_webirc.c \
79 m_remove.c \
80 m_roleplay.c \
81 no_kill_services.c \
82 no_locops.c \
83 no_oper_invis.c \
84 spy_admin_notice.c \
85 spy_info_notice.c \
86 spy_links_notice.c \
87 spy_motd_notice.c \
88 spy_stats_notice.c \
89 spy_stats_p_notice.c \
90 spy_trace_notice.c \
91 example_module.c
92
93 OBJS = ${SRCS:.c=.so}
94
95 default: build
96 build: all
97 all: $(OBJS)
98
99 install: all
100 -@if test ! -d $(DESTDIR)$(AUTOMODULEDIR); then \
101 mkdir $(DESTDIR)$(AUTOMODULEDIR); \
102 fi
103 @echo "Installing modules into $(DESTDIR)$(AUTOMODULEDIR) .."
104 @for file in $(OBJS); do \
105 $(INSTALL_DATA) $$file $(DESTDIR)$(AUTOMODULEDIR); \
106 done
107
108 .SUFFIXES: .so
109
110 .c.so:
111 ${CC} ${PICFLAGS} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} $< -o $@
112
113 .PHONY: depend clean distclean
114 depend:
115 @${MKDEP} ${CPPFLAGS} ${SRCS} > .depend
116 @sed s/\\\.o/\\\.so/ < .depend > .depend.tmp
117 @sed -e '/^# DO NOT DELETE THIS LINE/,$$d' <Makefile >Makefile.depend
118 @echo '# DO NOT DELETE THIS LINE!!!' >>Makefile.depend
119 @echo '# make depend needs it.' >>Makefile.depend
120 @cat .depend.tmp >>Makefile.depend
121 @mv Makefile.depend Makefile
122 @rm -f .depend.tmp .depend
123
124 clean:
125 ${RM} -f *.so *~
126
127 distclean: clean
128 ${RM} -f Makefile
129