]> jfr.im git - irc/rqf/shadowircd.git/blob - extensions/Makefile.in
Add explicit support for being installed into a system triggered with --enable-fhs...
[irc/rqf/shadowircd.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_quietunreg_compat.c \
41 chm_sslonly.c \
42 chm_sslonly_compat.c \
43 createauthonly.c \
44 createoperonly.c \
45 extb_account.c \
46 extb_canjoin.c \
47 extb_channel.c \
48 extb_oper.c \
49 extb_server.c \
50 extb_ssl.c \
51 extb_realname.c \
52 extb_extgecos.c \
53 force_user_invis.c \
54 hurt.c \
55 ip_cloaking.c \
56 sno_farconnect.c \
57 sno_globalkline.c \
58 sno_globaloper.c \
59 sno_whois.c \
60 m_42.c \
61 m_adminwall.c \
62 m_cycle.c \
63 m_findforwards.c \
64 m_force.c \
65 m_identify.c \
66 m_mkpasswd.c \
67 m_oaccept.c \
68 m_ojoin.c \
69 m_olist.c \
70 m_okick.c \
71 m_omode.c \
72 m_opme.c \
73 m_sendbans.c \
74 m_webirc.c \
75 no_locops.c \
76 no_oper_invis.c \
77 m_roleplay.c \
78 spy_admin_notice.c \
79 spy_info_notice.c \
80 spy_links_notice.c \
81 spy_motd_notice.c \
82 spy_stats_notice.c \
83 spy_stats_p_notice.c \
84 spy_trace_notice.c \
85 example_module.c
86
87 OBJS = ${SRCS:.c=.so}
88
89 default: build
90 build: all
91 all: $(OBJS)
92
93 install: all
94 -@if test ! -d $(DESTDIR)$(AUTOMODULEDIR); then \
95 mkdir $(DESTDIR)$(AUTOMODULEDIR); \
96 fi
97 @echo "Installing modules into $(DESTDIR)$(AUTOMODULEDIR) .."
98 @for file in $(OBJS); do \
99 $(INSTALL_DATA) $$file $(DESTDIR)$(AUTOMODULEDIR); \
100 done
101
102 .SUFFIXES: .so
103
104 .c.so:
105 ${CC} ${PICFLAGS} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} $< -o $@
106
107 .PHONY: depend clean distclean
108 depend:
109 @${MKDEP} ${CPPFLAGS} ${SRCS} > .depend
110 @sed s/\\\.o/\\\.so/ < .depend > .depend.tmp
111 @sed -e '/^# DO NOT DELETE THIS LINE/,$$d' <Makefile >Makefile.depend
112 @echo '# DO NOT DELETE THIS LINE!!!' >>Makefile.depend
113 @echo '# make depend needs it.' >>Makefile.depend
114 @cat .depend.tmp >>Makefile.depend
115 @mv Makefile.depend Makefile
116 @rm -f .depend.tmp .depend
117
118 clean:
119 ${RM} -f *.so *~
120
121 distclean: clean
122 ${RM} -f Makefile
123