From 5d5285f24b1fe306faa2a6d0565ba1cff0f17f11 Mon Sep 17 00:00:00 2001 From: w00t Date: Mon, 22 Oct 2007 14:13:48 +0000 Subject: Move cmd_*.cpp to src/commands/. Not done in the nicest of ways yet, but ah well :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8299 e03df62e-2008-0410-955e-edbf42e46eb7 --- configure | 58 +++++++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 41 insertions(+), 17 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 0c5420150..12a3b9170 100755 --- a/configure +++ b/configure @@ -1332,7 +1332,7 @@ sub write_dynamic_makefile { my $i = 0; my @cmdlist = (); - opendir(DIRHANDLE, "src"); + opendir(DIRHANDLE, "src/commands"); foreach $name (sort readdir(DIRHANDLE)) { if ($name =~ /^cmd_(.+)\.cpp$/) { $cmdlist[$i++] = $1; @@ -1340,13 +1340,6 @@ sub write_dynamic_makefile { } closedir(DIRHANDLE); - my $cmdobjs = ""; - my $srcobjs = ""; - foreach my $cmd (@cmdlist) { - $cmdobjs = $cmdobjs . "cmd_$cmd.so "; - $srcobjs = $srcobjs . "cmd_$cmd.cpp "; - } - $se = "socketengine_select"; if (($has_kqueue) && ($config{USE_KQUEUE} eq "y")) { $se = "socketengine_kqueue"; @@ -1383,12 +1376,15 @@ EOM if ($config{IS_DARWIN} eq "YES") { print FH <src/commands/Makefile") or die("Could not write src/commands/Makefile"); + print FH <