summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authoraquanight <aquanight@e03df62e-2008-0410-955e-edbf42e46eb7>2008-02-24 14:07:25 +0000
committeraquanight <aquanight@e03df62e-2008-0410-955e-edbf42e46eb7>2008-02-24 14:07:25 +0000
commitfeda1f5f9b1046223b3cc109ecfc0d017243a023 (patch)
treee1b6c46a7ce7d3ce5415e084b9c5c53ebfecb892 /make
parent8df7899385b6b2d856c5967941ea70a291efa73c (diff)
Make run-cc.pl show all sources on multi-source BUILDS (== socketengine and threadengine)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9012 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'make')
-rwxr-xr-xmake/run-cc.pl16
1 files changed, 13 insertions, 3 deletions
diff --git a/make/run-cc.pl b/make/run-cc.pl
index 0b0ac5bad..b12466e2c 100755
--- a/make/run-cc.pl
+++ b/make/run-cc.pl
@@ -86,9 +86,19 @@ foreach my $n (@ARGV)
{
if ($n =~ /\.cpp$/)
{
- $action = "BUILD";
- $name = $n;
- last;
+ if ($action eq "BUILD")
+ {
+ $name .= " " . $n;
+ }
+ else
+ {
+ $action = "BUILD";
+ $name = $n;
+ }
+ }
+ elsif ($action eq "BUILD") # .cpp has priority.
+ {
+ next;
}
elsif ($n eq "-o")
{