diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-01-18 17:53:53 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-01-18 17:53:53 +0000 |
commit | b3aa4ab27067fcdaae325bd8410fa4d8ccdad611 (patch) | |
tree | 7e2147483e2bd4d6c4ab1515e19ade9711797d2a /configure | |
parent | f791758ec88f30bbc789eda58e97e7c4b83a73f4 (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-x | configure | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"; } } |