summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-18 17:53:53 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-18 17:53:53 +0000
commitb3aa4ab27067fcdaae325bd8410fa4d8ccdad611 (patch)
tree7e2147483e2bd4d6c4ab1515e19ade9711797d2a /configure
parentf791758ec88f30bbc789eda58e97e7c4b83a73f4 (diff)
Module splitting now works!
Heres how it works (and m_spanningtree will make use of it): Create a directory in src/modules whos name starts m_, e.g. src/modules/m_spanningtree/ Inside it place .cpp files and headers. When configure runs, it scans for dirs matching the pattern, goes into them (note: it does not recurse, it only reads that dir) and compiles a list of .cpp files within. (all other file types are ignored). It then queries each .cpp file for its 'configure macros' as found in other modules, on a file by file basis. The makefile will then build a set of rules that will compile the whole lot together on a module by module basis, and "ar" the lot up then link the .a file (as in modes/) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6371 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index fc7ec4979..bbf74ef59 100755
--- a/configure
+++ b/configure
@@ -1265,7 +1265,7 @@ EOCHEESE
$crapola = $crapola . " \$(CC) -pipe -I../../../include \$(FLAGS) $cmflags -export-dynamic -c $name/$fname\n";
$oname = $fname;
$oname =~ s/\.cpp$/.o/g;
- $crap2 = $crap2 . " $name/$oname";
+ $crap2 = $crap2 . " $oname";
$crap3 = $crap3 . " $name/$fname";
}
}