]> jfr.im git - solanum.git/blob - extensions/Makefile.in
Merge pull request #20 from quora-wings/master
[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 force_user_invis.c \
56 hurt.c \
57 ip_cloaking.c \
58 ip_cloaking_old.c \
59 ip_cloaking_3.0.c \
60 ip_cloaking_4.0.c \
61 override.c \
62 restrict-unauthenticated.c \
63 sno_farconnect.c \
64 sno_globalkline.c \
65 sno_globaloper.c \
66 sno_whois.c \
67 m_42.c \
68 m_adminwall.c \
69 m_findforwards.c \
70 m_identify.c \
71 m_mkpasswd.c \
72 m_nokillservices.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_locops.c \
82 no_oper_invis.c \
83 spy_admin_notice.c \
84 spy_info_notice.c \
85 spy_links_notice.c \
86 spy_motd_notice.c \
87 spy_stats_notice.c \
88 spy_stats_p_notice.c \
89 spy_trace_notice.c \
90 example_module.c
91
92 OBJS = ${SRCS:.c=.so}
93
94 default: build
95 build: all
96 all: $(OBJS)
97
98 install: all
99 -@if test ! -d $(DESTDIR)$(AUTOMODULEDIR); then \
100 mkdir $(DESTDIR)$(AUTOMODULEDIR); \
101 fi
102 @echo "Installing modules into $(DESTDIR)$(AUTOMODULEDIR) .."
103 @for file in $(OBJS); do \
104 $(INSTALL_DATA) $$file $(DESTDIR)$(AUTOMODULEDIR); \
105 done
106
107 .SUFFIXES: .so
108
109 .c.so:
110 ${CC} ${PICFLAGS} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} $< -o $@
111
112 .PHONY: depend clean distclean
113 depend:
114 @${MKDEP} ${CPPFLAGS} ${SRCS} > .depend
115 @sed s/\\\.o/\\\.so/ < .depend > .depend.tmp
116 @sed -e '/^# DO NOT DELETE THIS LINE/,$$d' <Makefile >Makefile.depend
117 @echo '# DO NOT DELETE THIS LINE!!!' >>Makefile.depend
118 @echo '# make depend needs it.' >>Makefile.depend
119 @cat .depend.tmp >>Makefile.depend
120 @mv Makefile.depend Makefile
121 @rm -f .depend.tmp .depend
122
123 clean:
124 ${RM} -f *.so *~
125
126 distclean: clean
127 ${RM} -f Makefile
128