diff options
author | Ian Hinder <ian.hinder@aei.mpg.de> | 2013-09-12 13:44:40 +0200 |
---|---|---|
committer | Ian Hinder <ian.hinder@aei.mpg.de> | 2013-09-12 13:44:40 +0200 |
commit | 5238aa95745f46501d3f1ac657a02af0b0a44477 (patch) | |
tree | 918dadcb95ba94f42eb6cc865924d3ad0e56b736 | |
parent | 01478e8bf1bc509f67a3f8fa2c18021dc9b975f3 (diff) |
KrancThorn.m: Use sources variable for list of source files in makefile
Currently we assume that all source files with extension "cc" are to be included in the makefile. This excludes header files and CaKernel code files.
-rw-r--r-- | Tools/CodeGen/KrancThorn.m | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Tools/CodeGen/KrancThorn.m b/Tools/CodeGen/KrancThorn.m index 5678410..630235b 100644 --- a/Tools/CodeGen/KrancThorn.m +++ b/Tools/CodeGen/KrancThorn.m @@ -389,10 +389,7 @@ CreateKrancThorn[groupsOrig_, parentDirectory_, thornName_, opts:OptionsPattern[ ------------------------------------------------------------------------ *) InfoMessage[Terse, "Creating make file"]; - make = CreateMakefile[Join[{"Startup.cc", "RegisterSymmetries.cc"}, - {"RegisterMoL.cc"}, If[Length[OptionValue[ParameterConditions]] > 0, {"ParamCheck.cc"}, {}], - incFilenames, - Map[lookup[#, Filename] &, boundarySources]]]; + make = CreateMakefile[Sort[Select[lookup[#, Filename] & /@ sources, StringMatchQ[#, "*.cc"] &]]]; (* ------------------------------------------------------------------------ Create thorn |