From 5238aa95745f46501d3f1ac657a02af0b0a44477 Mon Sep 17 00:00:00 2001 From: Ian Hinder Date: Thu, 12 Sep 2013 13:44:40 +0200 Subject: 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. --- Tools/CodeGen/KrancThorn.m | 5 +---- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3