2007-01-25 07:40:21 +01:00
|
|
|
#
|
|
|
|
# Makefile.in for ircd/unsupported
|
|
|
|
#
|
2007-05-24 17:10:06 +02:00
|
|
|
# $Id: Makefile.in 3478 2007-05-24 15:10:06Z jilles $
|
2007-01-25 07:40:21 +01: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
|
|
|
|
AUTOMODULEDIR = @moduledir@/unsupported
|
|
|
|
|
|
|
|
SSL_LIBS = @SSL_LIBS@
|
|
|
|
SSL_INCLUDES = @SSL_INCLUDES@
|
|
|
|
|
|
|
|
IRCDLIBS = @LIBS@ $(SSL_LIBS)
|
|
|
|
|
2008-04-01 23:22:35 +02:00
|
|
|
INCLUDES = -I. -I../include -I../libcharybdis -I../libratbox/include $(SSL_INCLUDES)
|
2007-01-25 07:40:21 +01:00
|
|
|
CPPFLAGS = ${INCLUDES} @CPPFLAGS@
|
|
|
|
|
|
|
|
SRCS = \
|
|
|
|
m_clearchan.c \
|
2007-05-24 17:10:06 +02:00
|
|
|
m_force.c \
|
|
|
|
sno_channeljoin.c
|
2007-01-25 07:40:21 +01:00
|
|
|
|
|
|
|
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:
|
|
|
|
${CC} ${PICFLAGS} ${CPPFLAGS} ${CFLAGS} $< -o $@
|
|
|
|
|
|
|
|
.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
|
|
|
|
|