X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=make%2Fcalcdep.pl;h=65e19773e0e29fe1c08d84b408a59954464f8750;hb=42b7f65a06e9307bf18deff2837535730b895d4a;hp=2348edcebdd9f043ba121300281068e39548ae7a;hpb=cf94052d8fae19b12e43e25eb154ab89e2648f56;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/make/calcdep.pl b/make/calcdep.pl index 2348edceb..65e19773e 100755 --- a/make/calcdep.pl +++ b/make/calcdep.pl @@ -85,6 +85,12 @@ END my $out = find_output $file; dep_cpp $file, $out, 'gen-o'; next if $file =~ m#^socketengines/# && $file ne "socketengines/socketengine_$ENV{SOCKETENGINE}.cpp"; + # Having a module in the src directory is a bad idea because it will be linked to the core binary + if ($file =~ /^(m|core)_.*\.cpp/) { + my $correctsubdir = ($file =~ /^m_/ ? "modules" : "coremods"); + print "Error: module $file is in the src directory, put it in src/$correctsubdir instead!\n"; + exit 1; + } push @core_deps, $out; }