diff options
-rwxr-xr-x | configure | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1255,6 +1255,8 @@ EOCHEESE $crap3 = ""; # A module made of multiple files, in a dir, e.g. src/modules/m_spanningtree/ if (opendir(MDIRHANDLE, "src/modules/$name") != 0) { + print "Composing Makefile rules for folder \033[1;32m$name\033[0m... "; + my $i = 0; print FILEHANDLE "$name.a: ../../include/modules.h ../../include/users.h ../../include/channels.h ../../include/base.h ../../include/inspircd_config.h ../../include/inspircd.h ../../include/configreader.h $deps"; foreach $fname (sort readdir(MDIRHANDLE)) { if ($fname =~ /\.cpp$/) { @@ -1267,8 +1269,10 @@ EOCHEESE $oname =~ s/\.cpp$/.o/g; $crap2 = $crap2 . " $oname"; $crap3 = $crap3 . " $name/$fname"; + $i++; } } + print "(\033[1;32m$i files found\033[0m)\n"; print FILEHANDLE "\n$crapola\n"; print FILEHANDLE "$name.so: $name.a ../../include/modules.h ../../include/users.h ../../include/channels.h ../../include/base.h ../../include/inspircd_config.h ../../include/inspircd.h ../../include/configreader.h$crap3\n $crap2\n"; print FILEHANDLE " ranlib $name.a$crap3\n"; |