- foreach $file (sort keys %wxGeneric) {
- next if $wxGeneric{$file} =~ /\bX\b/;
-
- ($fileobj = $file) =~ s/cp?p?$/\o/;
- ($filedep = $file) =~ s/cp?p?$/\d/;
-
- $project{"MOTIF_SOURCES"} .= "generic/" . $file . " ";
- $project{"GENERICOBJS"} .= $fileobj . " ";
- $project{"GENERICDEPS"} .= $filedep . " "
- }
-
- foreach $file (sort keys %wxCommon) {
- next if $wxCommon{$file} =~ /\bX\b/;
-
- ($fileobj = $file) =~ s/cp?p?$/\o/;
- ($filedep = $file) =~ s/cp?p?$/\d/;
-
- $project{"MOTIF_SOURCES"} .= "common/" . $file . " ";
- $project{"COMMONOBJS"} .= $fileobj . " ";
- $project{"COMMONDEPS"} .= $filedep . " "
- }
-
- foreach $file (sort keys %wxMOTIF) {
- ($fileobj = $file) =~ s/cp?p?$/\o/;
- ($filedep = $file) =~ s/cp?p?$/\d/;
-
- $project{"MOTIF_SOURCES"} .= "motif/" . $file . " ";
- $project{"GUIOBJS"} .= $fileobj . " ";
- $project{"GUIDEPS"} .= $filedep . " "
- }
-
- foreach $file (sort keys %wxUNIX) {
- ($fileobj = $file) =~ s/cp?p?$/\o/;
- ($filedep = $file) =~ s/cp?p?$/\d/;
-
- $project{"MOTIF_SOURCES"} .= "unix/" . $file . " ";
- $project{"UNIXOBJS"} .= $fileobj . " ";
- $project{"UNIXDEPS"} .= $filedep . " "
- }
-
- foreach $file (sort keys %wxHTML) {
- ($fileobj = $file) =~ s/cp?p?$/\o/;
- ($filedep = $file) =~ s/cp?p?$/\d/;
+ my @generic = grep_not_fileflag 'NotX', @wxGeneric;
+ my @common = grep_not_fileflag 'NotX', @wxCommon;
+ my @motif = ( @wxMotif,
+ grep_source( grep_fileflag 'Motif', @wxALL ) );