2 # Makefile.in for ircd/contrib
4 # $Id: Makefile.in 3522 2007-07-06 07:48:28Z nenolod $
11 CFLAGS = @IRC_CFLAGS@ -DIRCD_PREFIX=\"@prefix@\"
15 INSTALL_PROGRAM = @INSTALL_PROGRAM@
16 INSTALL_DATA = @INSTALL_DATA@
17 INSTALL_SUID = @INSTALL_PROGRAM@ -o root -m 4755
21 exec_prefix = @exec_prefix@
23 pkglibdir = @pkglibdir@
24 moduledir = @moduledir@
25 PACKAGE_TARNAME = @PACKAGE_TARNAME@
26 AUTOMODULEDIR = $(moduledir)/extensions
29 SSL_INCLUDES = @SSL_INCLUDES@
31 IRCDLIBS = @LIBS@ $(SSL_LIBS)
33 INCLUDES = -I. -I../include -I../libratbox/include $(SSL_INCLUDES)
34 CPPFLAGS = ${INCLUDES} @CPPFLAGS@
39 chm_operonly_compat.c \
41 chm_quietunreg_compat.c \
43 chm_sslonly_compat.c \
62 restrict-unauthenticated.c \
89 spy_stats_p_notice.c \
100 -@if test ! -d $(DESTDIR)$(AUTOMODULEDIR); then \
101 mkdir $(DESTDIR)$(AUTOMODULEDIR); \
103 @echo "Installing modules into $(DESTDIR)$(AUTOMODULEDIR) .."
104 @for file in $(OBJS); do \
105 $(INSTALL_DATA) $$file $(DESTDIR)$(AUTOMODULEDIR); \
111 ${CC} ${PICFLAGS} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} $< -o $@
113 .PHONY: depend clean distclean
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