2007-01-25 06:40:21 +00:00
|
|
|
#
|
|
|
|
# Makefile.in for ircd/contrib
|
|
|
|
#
|
2007-07-06 07:48:28 +00:00
|
|
|
# $Id: Makefile.in 3522 2007-07-06 07:48:28Z nenolod $
|
2007-01-25 06:40:21 +00:00
|
|
|
#
|
|
|
|
CC = @CC@
|
|
|
|
RM = @RM@
|
|
|
|
SED = @SED@
|
|
|
|
LEX = @LEX@
|
|
|
|
LEXLIB = @LEXLIB@
|
|
|
|
CFLAGS = @IRC_CFLAGS@ -DIRCD_PREFIX=\"@prefix@\"
|
|
|
|
PICFLAGS = @PICFLAGS@
|
|
|
|
MKDEP = @MKDEP@
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
INSTALL_SUID = @INSTALL_PROGRAM@ -o root -m 4755
|
|
|
|
SHELL = /bin/sh
|
2012-03-01 02:41:09 +00:00
|
|
|
|
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
libdir = @libdir@
|
|
|
|
pkglibdir = @pkglibdir@
|
|
|
|
moduledir = @moduledir@
|
|
|
|
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
|
|
|
AUTOMODULEDIR = $(moduledir)/extensions
|
2007-01-25 06:40:21 +00:00
|
|
|
|
|
|
|
SSL_LIBS = @SSL_LIBS@
|
|
|
|
SSL_INCLUDES = @SSL_INCLUDES@
|
|
|
|
|
|
|
|
IRCDLIBS = @LIBS@ $(SSL_LIBS)
|
|
|
|
|
2008-04-01 22:18:44 +00:00
|
|
|
INCLUDES = -I. -I../include -I../libratbox/include $(SSL_INCLUDES)
|
2007-01-25 06:40:21 +00:00
|
|
|
CPPFLAGS = ${INCLUDES} @CPPFLAGS@
|
|
|
|
|
|
|
|
SRCS = \
|
2008-08-13 17:04:27 +00:00
|
|
|
chm_adminonly.c \
|
2008-07-27 08:19:21 +00:00
|
|
|
chm_operonly.c \
|
2008-04-08 17:40:41 +00:00
|
|
|
chm_operonly_compat.c \
|
2012-04-01 03:56:14 +00:00
|
|
|
chm_nonotice.c \
|
2007-12-25 12:56:05 +00:00
|
|
|
chm_quietunreg_compat.c \
|
2008-07-27 08:47:40 +00:00
|
|
|
chm_sslonly.c \
|
2008-04-08 17:29:19 +00:00
|
|
|
chm_sslonly_compat.c \
|
2007-01-25 06:40:21 +00:00
|
|
|
createauthonly.c \
|
2007-05-24 04:28:36 +00:00
|
|
|
createoperonly.c \
|
2007-01-25 06:40:21 +00:00
|
|
|
extb_account.c \
|
|
|
|
extb_canjoin.c \
|
|
|
|
extb_channel.c \
|
|
|
|
extb_oper.c \
|
|
|
|
extb_server.c \
|
2008-04-08 17:24:23 +00:00
|
|
|
extb_ssl.c \
|
2007-01-25 06:40:21 +00:00
|
|
|
extb_realname.c \
|
2012-01-22 09:46:08 +00:00
|
|
|
extb_usermode.c \
|
2007-01-25 06:40:21 +00:00
|
|
|
extb_extgecos.c \
|
2008-03-29 20:36:39 +00:00
|
|
|
force_user_invis.c \
|
2007-01-25 06:40:21 +00:00
|
|
|
hurt.c \
|
|
|
|
ip_cloaking.c \
|
2007-07-06 07:48:28 +00:00
|
|
|
ip_cloaking_old.c \
|
2010-02-18 13:30:26 +00:00
|
|
|
ip_cloaking_3.0.c \
|
|
|
|
ip_cloaking_4.0.c \
|
2010-12-07 05:44:55 +00:00
|
|
|
override.c \
|
2012-11-01 06:48:08 +00:00
|
|
|
restrict-unauthenticated.c \
|
2007-01-25 06:40:21 +00:00
|
|
|
sno_farconnect.c \
|
|
|
|
sno_globalkline.c \
|
|
|
|
sno_globaloper.c \
|
2007-05-24 03:58:27 +00:00
|
|
|
sno_whois.c \
|
2007-01-25 06:40:21 +00:00
|
|
|
m_42.c \
|
2007-12-18 21:54:18 +00:00
|
|
|
m_adminwall.c \
|
2007-01-25 06:40:21 +00:00
|
|
|
m_findforwards.c \
|
|
|
|
m_identify.c \
|
|
|
|
m_mkpasswd.c \
|
2013-04-20 06:07:55 +00:00
|
|
|
m_nokillservices.c \
|
2007-01-25 06:40:21 +00:00
|
|
|
m_ojoin.c \
|
|
|
|
m_olist.c \
|
|
|
|
m_okick.c \
|
|
|
|
m_omode.c \
|
|
|
|
m_opme.c \
|
2008-07-28 22:09:03 +00:00
|
|
|
m_sendbans.c \
|
2007-01-25 06:40:21 +00:00
|
|
|
m_webirc.c \
|
2012-02-04 08:20:56 +00:00
|
|
|
m_remove.c \
|
2010-12-09 23:44:24 +00:00
|
|
|
m_roleplay.c \
|
2007-12-25 12:27:41 +00:00
|
|
|
no_locops.c \
|
2007-01-25 06:40:21 +00:00
|
|
|
no_oper_invis.c \
|
|
|
|
spy_admin_notice.c \
|
|
|
|
spy_info_notice.c \
|
|
|
|
spy_links_notice.c \
|
|
|
|
spy_motd_notice.c \
|
|
|
|
spy_stats_notice.c \
|
|
|
|
spy_stats_p_notice.c \
|
|
|
|
spy_trace_notice.c \
|
|
|
|
example_module.c
|
|
|
|
|
|
|
|
OBJS = ${SRCS:.c=.so}
|
|
|
|
|
|
|
|
default: build
|
|
|
|
build: all
|
|
|
|
all: $(OBJS)
|
|
|
|
|
|
|
|
install: all
|
|
|
|
-@if test ! -d $(DESTDIR)$(AUTOMODULEDIR); then \
|
|
|
|
mkdir $(DESTDIR)$(AUTOMODULEDIR); \
|
|
|
|
fi
|
|
|
|
@echo "Installing modules into $(DESTDIR)$(AUTOMODULEDIR) .."
|
|
|
|
@for file in $(OBJS); do \
|
|
|
|
$(INSTALL_DATA) $$file $(DESTDIR)$(AUTOMODULEDIR); \
|
|
|
|
done
|
|
|
|
|
|
|
|
.SUFFIXES: .so
|
|
|
|
|
|
|
|
.c.so:
|
2011-07-14 00:23:34 +00:00
|
|
|
${CC} ${PICFLAGS} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} $< -o $@
|
2007-01-25 06:40:21 +00:00
|
|
|
|
|
|
|
.PHONY: depend clean distclean
|
|
|
|
depend:
|
|
|
|
@${MKDEP} ${CPPFLAGS} ${SRCS} > .depend
|
|
|
|
@sed s/\\\.o/\\\.so/ < .depend > .depend.tmp
|
|
|
|
@sed -e '/^# DO NOT DELETE THIS LINE/,$$d' <Makefile >Makefile.depend
|
|
|
|
@echo '# DO NOT DELETE THIS LINE!!!' >>Makefile.depend
|
|
|
|
@echo '# make depend needs it.' >>Makefile.depend
|
|
|
|
@cat .depend.tmp >>Makefile.depend
|
|
|
|
@mv Makefile.depend Makefile
|
|
|
|
@rm -f .depend.tmp .depend
|
|
|
|
|
|
|
|
clean:
|
|
|
|
${RM} -f *.so *~
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
${RM} -f Makefile
|
|
|
|
|