]> jfr.im git - solanum.git/blobdiff - modules/Makefile.in
During installation, don't unconditionally create an empty `modules-old' directory.
[solanum.git] / modules / Makefile.in
index dd9666448e38210078f04cf040bc5cb0063d74bb..8f5d2a725f789339ce101def8ab608c68a4c9c4f 100644 (file)
@@ -36,6 +36,7 @@ INCLUDES      = -I../include -I../libratbox/include $(SSL_INCLUDES)
 CPPFLAGS       = ${INCLUDES} @CPPFLAGS@
 
 CORE_SRCS = \
+  core/m_ban.c \
   core/m_die.c \
   core/m_error.c \
   core/m_join.c \
@@ -151,9 +152,6 @@ libmodules.a: $(S_OBJS) static_modules.o
 
 install-mkdirs:
        @echo "ircd: setting up modular directory structure"
-       -@if test ! -d $(DESTDIR)$(moduledir); then \
-                mkdir $(DESTDIR)$(moduledir); \
-        fi
        -@if test -d $(DESTDIR)$(moduledir)-old; then \
                rm -rf $(DESTDIR)$(moduledir)-old; \
        fi
@@ -194,7 +192,7 @@ install_hpux_shared: install-mkdirs
        ${CC} ${CPPFLAGS} ${CFLAGS} -DMODNAME=`basename $< .c`_mheader -c $< -o $@
 
 .c.so:
-       ${CC} ${PICFLAGS} ${CPPFLAGS} ${CFLAGS} $< -o $@
+       ${CC} ${PICFLAGS} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} $< -o $@
 
 .so.sl:
        $(LD) -b $< -o $@