7 #include "modulehandler.h"
10 #define MKDIR(s) mkdir(s)
12 #define MKDIR(s) mkdir(s, 0755)
20 typedef set
<string
> set_string
;
24 v2s ( const string_list
& v
, int wrap_at
)
30 for ( size_t i
= 0; i
< v
.size(); i
++ )
34 if ( wrap_at
> 0 && wrap_count
++ == wrap_at
)
44 Directory::Directory ( const string
& name_
)
50 Directory::Add ( const char* subdir
)
53 string s1
= string ( subdir
);
54 if ( ( i
= s1
.find ( '$' ) ) != string::npos
)
56 throw InvalidOperationException ( __FILE__
,
58 "No environment variables can be used here. Path was %s",
62 const char* p
= strpbrk ( subdir
, "/\\" );
64 p
= subdir
+ strlen(subdir
);
65 string
s ( subdir
, p
-subdir
);
66 if ( subdirs
.find(s
) == subdirs
.end() )
67 subdirs
[s
] = new Directory(s
);
69 subdirs
[s
]->Add ( p
);
73 Directory::mkdir_p ( const char* path
)
76 directory
= opendir ( path
);
77 if ( directory
!= NULL
)
79 closedir ( directory
);
83 if ( MKDIR ( path
) != 0 )
84 throw AccessDeniedException ( string ( path
) );
89 Directory::CreateDirectory ( string path
)
93 if ( isalpha ( path
[0] ) && path
[1] == ':' && path
[2] == CSEP
)
95 nextIndex
= path
.find ( CSEP
, 3);
98 nextIndex
= path
.find ( CSEP
);
100 bool directoryWasCreated
= false;
101 while ( nextIndex
!= string::npos
)
103 nextIndex
= path
.find ( CSEP
, index
+ 1 );
104 directoryWasCreated
= mkdir_p ( path
.substr ( 0, nextIndex
).c_str () );
107 return directoryWasCreated
;
111 Directory::ReplaceVariable ( string name
,
115 size_t i
= path
.find ( name
);
116 if ( i
!= string::npos
)
117 return path
.replace ( i
, name
.length (), value
);
123 Directory::ResolveVariablesInPath ( char* buf
,
126 string s
= ReplaceVariable ( "$(INTERMEDIATE)", Environment::GetIntermediatePath (), path
);
127 s
= ReplaceVariable ( "$(OUTPUT)", Environment::GetOutputPath (), s
);
128 s
= ReplaceVariable ( "$(INSTALL)", Environment::GetInstallPath (), s
);
129 strcpy ( buf
, s
.c_str () );
133 Directory::GenerateTree ( const string
& parent
,
138 if ( parent
.size () > 0 )
142 path
= parent
+ SSEP
+ name
;
143 ResolveVariablesInPath ( buf
, path
);
144 if ( CreateDirectory ( buf
) && verbose
)
145 printf ( "Created %s\n", buf
);
150 for ( directory_map::iterator i
= subdirs
.begin ();
154 i
->second
->GenerateTree ( path
, verbose
);
159 Directory::EscapeSpaces ( string path
)
166 newpath
= newpath
+ "\\ ";
168 newpath
= newpath
+ *p
;
175 Directory::CreateRule ( FILE* f
,
176 const string
& parent
)
180 if ( parent
.size() > 0 )
182 string escapedParent
= EscapeSpaces ( parent
);
185 escapedParent
.c_str (),
187 EscapeSpaces ( name
).c_str (),
188 escapedParent
.c_str () );
191 "\t$(ECHO_MKDIR)\n" );
196 path
= parent
+ SSEP
+ name
;
201 for ( directory_map::iterator i
= subdirs
.begin();
205 i
->second
->CreateRule ( f
, path
);
210 static class MingwFactory
: public Backend::Factory
213 MingwFactory() : Factory ( "mingw" ) {}
214 Backend
* operator() ( Project
& project
,
215 Configuration
& configuration
)
217 return new MingwBackend ( project
,
223 MingwBackend::MingwBackend ( Project
& project
,
224 Configuration
& configuration
)
225 : Backend ( project
, configuration
),
226 intermediateDirectory ( new Directory ("$(INTERMEDIATE)" ) ),
227 outputDirectory ( new Directory ( "$(OUTPUT)" ) ),
228 installDirectory ( new Directory ( "$(INSTALL)" ) )
232 MingwBackend::~MingwBackend()
234 delete intermediateDirectory
;
235 delete outputDirectory
;
236 delete installDirectory
;
240 MingwBackend::AddDirectoryTarget ( const string
& directory
,
241 Directory
* directoryTree
)
243 if ( directory
.length () > 0)
244 directoryTree
->Add ( directory
.c_str() );
245 return directoryTree
->name
;
249 MingwBackend::ProcessModules ()
251 printf ( "Processing modules..." );
253 vector
<MingwModuleHandler
*> v
;
255 for ( i
= 0; i
< ProjectNode
.modules
.size (); i
++ )
257 Module
& module
= *ProjectNode
.modules
[i
];
258 MingwModuleHandler
* h
= MingwModuleHandler::InstanciateHandler (
261 if ( module
.host
== HostDefault
)
263 module
.host
= h
->DefaultHost();
264 assert ( module
.host
!= HostDefault
);
269 size_t iend
= v
.size ();
271 for ( i
= 0; i
< iend
; i
++ )
272 v
[i
]->GenerateObjectMacro();
273 fprintf ( fMakefile
, "\n" );
274 for ( i
= 0; i
< iend
; i
++ )
275 v
[i
]->GenerateTargetMacro();
276 fprintf ( fMakefile
, "\n" );
278 GenerateAllTarget ( v
);
279 GenerateInitTarget ();
280 GenerateRegTestsRunTarget ();
282 for ( i
= 0; i
< iend
; i
++ )
283 v
[i
]->GenerateOtherMacros();
285 for ( i
= 0; i
< iend
; i
++ )
287 MingwModuleHandler
& h
= *v
[i
];
288 h
.GeneratePreconditionDependencies ();
290 h
.GenerateInvocations ();
291 h
.GenerateCleanTarget ();
292 h
.GenerateInstallTarget ();
300 MingwBackend::Process ()
303 DetectPipeSupport ();
307 GenerateGlobalVariables ();
308 GenerateXmlBuildFilesMacro ();
310 GenerateInstallTarget ();
311 GenerateTestTarget ();
312 GenerateDirectoryTargets ();
313 GenerateDirectories ();
314 UnpackWineResources ();
315 GenerateTestSupportCode ();
316 GenerateProxyMakefiles ();
317 CheckAutomaticDependencies ();
322 MingwBackend::CreateMakefile ()
324 fMakefile
= fopen ( ProjectNode
.makefile
.c_str (), "w" );
326 throw AccessDeniedException ( ProjectNode
.makefile
);
327 MingwModuleHandler::SetBackend ( this );
328 MingwModuleHandler::SetMakefile ( fMakefile
);
329 MingwModuleHandler::SetUsePch ( use_pch
);
333 MingwBackend::CloseMakefile () const
336 fclose ( fMakefile
);
340 MingwBackend::GenerateHeader () const
342 fprintf ( fMakefile
, "# THIS FILE IS AUTOMATICALLY GENERATED, EDIT 'ReactOS.xml' INSTEAD\n\n" );
346 MingwBackend::GenerateIncludesAndDefines ( IfableData
& data
) const
348 string includeParameters
= MingwModuleHandler::GenerateGccIncludeParametersFromVector ( data
.includes
);
349 string defineParameters
= MingwModuleHandler::GenerateGccDefineParametersFromVector ( data
.defines
);
350 return includeParameters
+ " " + defineParameters
;
354 MingwBackend::GenerateProjectCFlagsMacro ( const char* assignmentOperation
,
355 IfableData
& data
) const
360 assignmentOperation
);
364 GenerateIncludesAndDefines ( data
).c_str() );
366 fprintf ( fMakefile
, "\n" );
370 MingwBackend::GenerateGlobalCFlagsAndProperties (
371 const char* assignmentOperation
,
372 IfableData
& data
) const
376 for ( i
= 0; i
< data
.properties
.size(); i
++ )
378 Property
& prop
= *data
.properties
[i
];
379 fprintf ( fMakefile
, "%s := %s\n",
381 prop
.value
.c_str() );
384 if ( data
.includes
.size() || data
.defines
.size() )
386 GenerateProjectCFlagsMacro ( assignmentOperation
,
390 for ( i
= 0; i
< data
.ifs
.size(); i
++ )
392 If
& rIf
= *data
.ifs
[i
];
393 if ( rIf
.data
.defines
.size()
394 || rIf
.data
.includes
.size()
395 || rIf
.data
.ifs
.size() )
399 "ifeq (\"$(%s)\",\"%s\")\n",
400 rIf
.property
.c_str(),
402 GenerateGlobalCFlagsAndProperties (
413 MingwBackend::GenerateProjectGccOptionsMacro ( const char* assignmentOperation
,
414 IfableData
& data
) const
420 "PROJECT_GCCOPTIONS %s",
421 assignmentOperation
);
423 for ( i
= 0; i
< data
.compilerFlags
.size(); i
++ )
428 data
.compilerFlags
[i
]->flag
.c_str() );
431 fprintf ( fMakefile
, "\n" );
435 MingwBackend::GenerateProjectGccOptions (
436 const char* assignmentOperation
,
437 IfableData
& data
) const
441 if ( data
.compilerFlags
.size() )
443 GenerateProjectGccOptionsMacro ( assignmentOperation
,
447 for ( i
= 0; i
< data
.ifs
.size(); i
++ )
449 If
& rIf
= *data
.ifs
[i
];
450 if ( rIf
.data
.compilerFlags
.size()
451 || rIf
.data
.ifs
.size() )
455 "ifeq (\"$(%s)\",\"%s\")\n",
456 rIf
.property
.c_str(),
458 GenerateProjectGccOptions (
469 MingwBackend::GenerateProjectLFLAGS () const
472 for ( size_t i
= 0; i
< ProjectNode
.linkerFlags
.size (); i
++ )
474 LinkerFlag
& linkerFlag
= *ProjectNode
.linkerFlags
[i
];
475 if ( lflags
.length () > 0 )
477 lflags
+= linkerFlag
.flag
;
483 MingwBackend::GenerateGlobalVariables () const
485 GenerateGlobalCFlagsAndProperties ( "=", ProjectNode
.non_if_data
);
486 GenerateProjectGccOptions ( "=", ProjectNode
.non_if_data
);
488 fprintf ( fMakefile
, "PROJECT_RCFLAGS := $(PROJECT_CFLAGS)\n" );
489 fprintf ( fMakefile
, "PROJECT_WIDLFLAGS := $(PROJECT_CFLAGS)\n" );
490 fprintf ( fMakefile
, "PROJECT_LFLAGS := %s\n",
491 GenerateProjectLFLAGS ().c_str () );
492 fprintf ( fMakefile
, "PROJECT_CFLAGS += -Wall\n" );
493 fprintf ( fMakefile
, "PROJECT_CFLAGS += $(PROJECT_GCCOPTIONS)\n" );
494 fprintf ( fMakefile
, "\n" );
498 MingwBackend::IncludeInAllTarget ( const Module
& module
) const
500 if ( MingwModuleHandler::ReferenceObjects ( module
) )
502 if ( module
.type
== BootSector
)
504 if ( module
.type
== Iso
)
506 if ( module
.type
== LiveIso
)
508 if ( module
.type
== Test
)
514 MingwBackend::GenerateAllTarget ( const vector
<MingwModuleHandler
*>& handlers
) const
516 fprintf ( fMakefile
, "all:" );
518 size_t iend
= handlers
.size ();
519 for ( size_t i
= 0; i
< iend
; i
++ )
521 const Module
& module
= handlers
[i
]->module
;
522 if ( IncludeInAllTarget ( module
) )
524 if ( wrap_count
++ == 5 )
525 fprintf ( fMakefile
, " \\\n\t\t" ), wrap_count
= 0;
528 GetTargetMacro(module
).c_str () );
531 fprintf ( fMakefile
, "\n\t\n\n" );
535 MingwBackend::GetBuildToolDependencies () const
538 for ( size_t i
= 0; i
< ProjectNode
.modules
.size (); i
++ )
540 Module
& module
= *ProjectNode
.modules
[i
];
541 if ( module
.type
== BuildTool
)
543 if ( dependencies
.length () > 0 )
545 dependencies
+= module
.GetDependencyPath ();
552 MingwBackend::GenerateInitTarget () const
556 GetBuildToolDependencies ().c_str () );
557 fprintf ( fMakefile
, "\n" );
561 MingwBackend::GenerateRegTestsRunTarget () const
564 "REGTESTS_RUN_TARGET = regtests.dll\n" );
566 "$(REGTESTS_RUN_TARGET):\n" );
568 "\t$(cp) $(REGTESTS_TARGET) $(REGTESTS_RUN_TARGET)\n" );
569 fprintf ( fMakefile
, "\n" );
573 MingwBackend::GenerateXmlBuildFilesMacro() const
576 "XMLBUILDFILES = %s \\\n",
577 ProjectNode
.GetProjectFilename ().c_str () );
578 string xmlbuildFilenames
;
579 int numberOfExistingFiles
= 0;
580 for ( size_t i
= 0; i
< ProjectNode
.xmlbuildfiles
.size (); i
++ )
582 XMLInclude
& xmlbuildfile
= *ProjectNode
.xmlbuildfiles
[i
];
583 if ( !xmlbuildfile
.fileExists
)
585 numberOfExistingFiles
++;
586 if ( xmlbuildFilenames
.length () > 0 )
587 xmlbuildFilenames
+= " ";
588 xmlbuildFilenames
+= NormalizeFilename ( xmlbuildfile
.topIncludeFilename
);
589 if ( numberOfExistingFiles
% 5 == 4 || i
== ProjectNode
.xmlbuildfiles
.size () - 1 )
593 xmlbuildFilenames
.c_str ());
594 if ( i
== ProjectNode
.xmlbuildfiles
.size () - 1 )
596 fprintf ( fMakefile
, "\n" );
602 xmlbuildFilenames
.c_str () );
604 xmlbuildFilenames
.resize ( 0 );
606 numberOfExistingFiles
++;
608 fprintf ( fMakefile
, "\n" );
612 MingwBackend::GetBin2ResExecutable ()
614 return NormalizeFilename ( Environment::GetOutputPath () + SSEP
+ "tools/bin2res/bin2res" + EXEPOSTFIX
);
618 MingwBackend::UnpackWineResources ()
620 printf ( "Unpacking WINE resources..." );
621 WineResource
wineResource ( ProjectNode
,
622 GetBin2ResExecutable () );
623 wineResource
.UnpackResources ( configuration
.Verbose
);
628 MingwBackend::GenerateTestSupportCode ()
630 printf ( "Generating test support code..." );
631 TestSupportCode
testSupportCode ( ProjectNode
);
632 testSupportCode
.GenerateTestSupportCode ( configuration
.Verbose
);
637 MingwBackend::GenerateProxyMakefiles ()
639 printf ( "Generating proxy makefiles..." );
640 ProxyMakefile
proxyMakefile ( ProjectNode
);
641 proxyMakefile
.GenerateProxyMakefiles ( configuration
.Verbose
);
646 MingwBackend::CheckAutomaticDependencies ()
648 if ( configuration
.AutomaticDependencies
)
650 printf ( "Checking automatic dependencies..." );
651 AutomaticDependency
automaticDependency ( ProjectNode
);
652 automaticDependency
.Process ();
653 automaticDependency
.CheckAutomaticDependencies ( configuration
.Verbose
);
659 MingwBackend::IncludeDirectoryTarget ( const string
& directory
) const
661 if ( directory
== "$(INTERMEDIATE)" SSEP
"tools")
668 MingwBackend::GenerateDirectories ()
670 printf ( "Creating directories..." );
671 intermediateDirectory
->GenerateTree ( "", configuration
.Verbose
);
672 outputDirectory
->GenerateTree ( "", configuration
.Verbose
);
673 if ( !configuration
.MakeHandlesInstallDirectories
)
674 installDirectory
->GenerateTree ( "", configuration
.Verbose
);
679 MingwBackend::TryToDetectThisCompiler ( const string
& compiler
)
681 string command
= ssprintf (
685 int exitcode
= system ( command
.c_str () );
686 return (exitcode
== 0);
690 MingwBackend::DetectCompiler ()
692 printf ( "Detecting compiler..." );
694 bool detectedCompiler
= false;
695 const string
& ROS_PREFIXValue
= Environment::GetVariable ( "ROS_PREFIX" );
696 if ( ROS_PREFIXValue
.length () > 0 )
698 compilerCommand
= ROS_PREFIXValue
+ "-gcc";
699 detectedCompiler
= TryToDetectThisCompiler ( compilerCommand
);
702 if ( !detectedCompiler
)
704 compilerCommand
= "gcc";
705 detectedCompiler
= TryToDetectThisCompiler ( compilerCommand
);
708 if ( !detectedCompiler
)
710 compilerCommand
= "mingw32-gcc";
711 detectedCompiler
= TryToDetectThisCompiler ( compilerCommand
);
713 if ( detectedCompiler
)
714 printf ( "detected (%s)\n", compilerCommand
.c_str () );
716 printf ( "not detected\n" );
720 MingwBackend::DetectPipeSupport ()
722 printf ( "Detecting compiler -pipe support..." );
724 string pipe_detection
= "tools" SSEP
"rbuild" SSEP
"backend" SSEP
"mingw" SSEP
"pipe_detection.c";
725 string pipe_detectionObjectFilename
= ReplaceExtension ( pipe_detection
,
727 string command
= ssprintf (
728 "%s -pipe -c %s -o %s 2>%s",
729 compilerCommand
.c_str (),
730 pipe_detection
.c_str (),
731 pipe_detectionObjectFilename
.c_str (),
733 int exitcode
= system ( command
.c_str () );
734 FILE* f
= fopen ( pipe_detectionObjectFilename
.c_str (), "rb" );
737 usePipe
= (exitcode
== 0);
739 unlink ( pipe_detectionObjectFilename
.c_str () );
745 printf ( "detected\n" );
747 printf ( "not detected\n" );
751 MingwBackend::DetectPCHSupport ()
753 printf ( "Detecting compiler pre-compiled header support..." );
755 string path
= "tools" SSEP
"rbuild" SSEP
"backend" SSEP
"mingw" SSEP
"pch_detection.h";
756 string cmd
= ssprintf (
758 compilerCommand
.c_str (),
761 system ( cmd
.c_str () );
764 FILE* f
= fopen ( path
.c_str (), "rb" );
769 unlink ( path
.c_str () );
775 printf ( "detected\n" );
777 printf ( "not detected\n" );
781 MingwBackend::GetNonModuleInstallTargetFiles (
782 vector
<string
>& out
) const
784 for ( size_t i
= 0; i
< ProjectNode
.installfiles
.size (); i
++ )
786 const InstallFile
& installfile
= *ProjectNode
.installfiles
[i
];
787 string targetFilenameNoFixup
= installfile
.base
+ SSEP
+ installfile
.newname
;
788 string targetFilename
= MingwModuleHandler::PassThruCacheDirectory (
789 NormalizeFilename ( targetFilenameNoFixup
),
791 out
.push_back ( targetFilename
);
796 MingwBackend::GetModuleInstallTargetFiles (
797 vector
<string
>& out
) const
799 for ( size_t i
= 0; i
< ProjectNode
.modules
.size (); i
++ )
801 const Module
& module
= *ProjectNode
.modules
[i
];
802 if ( module
.installName
.length () > 0 )
804 string targetFilenameNoFixup
;
805 if ( module
.installBase
.length () > 0 )
806 targetFilenameNoFixup
= module
.installBase
+ SSEP
+ module
.installName
;
808 targetFilenameNoFixup
= module
.installName
;
809 string targetFilename
= MingwModuleHandler::PassThruCacheDirectory (
810 NormalizeFilename ( targetFilenameNoFixup
),
812 out
.push_back ( targetFilename
);
818 MingwBackend::GetInstallTargetFiles (
819 vector
<string
>& out
) const
821 GetNonModuleInstallTargetFiles ( out
);
822 GetModuleInstallTargetFiles ( out
);
826 MingwBackend::OutputInstallTarget ( const string
& sourceFilename
,
827 const string
& targetFilename
,
828 const string
& targetDirectory
)
830 string fullTargetFilename
;
831 if ( targetDirectory
.length () > 0)
832 fullTargetFilename
= targetDirectory
+ SSEP
+ targetFilename
;
834 fullTargetFilename
= targetFilename
;
835 string normalizedTargetFilename
= MingwModuleHandler::PassThruCacheDirectory (
836 NormalizeFilename ( fullTargetFilename
),
838 string normalizedTargetDirectory
= MingwModuleHandler::PassThruCacheDirectory (
839 NormalizeFilename ( targetDirectory
),
843 normalizedTargetFilename
.c_str (),
844 sourceFilename
.c_str (),
845 normalizedTargetDirectory
.c_str () );
849 "\t${cp} %s %s 1>$(NUL)\n",
850 sourceFilename
.c_str (),
851 normalizedTargetFilename
.c_str () );
855 MingwBackend::OutputNonModuleInstallTargets ()
857 for ( size_t i
= 0; i
< ProjectNode
.installfiles
.size (); i
++ )
859 const InstallFile
& installfile
= *ProjectNode
.installfiles
[i
];
860 OutputInstallTarget ( installfile
.GetPath (),
867 MingwBackend::OutputModuleInstallTargets ()
869 for ( size_t i
= 0; i
< ProjectNode
.modules
.size (); i
++ )
871 const Module
& module
= *ProjectNode
.modules
[i
];
872 if ( module
.installName
.length () > 0 )
874 string sourceFilename
= MingwModuleHandler::PassThruCacheDirectory (
875 NormalizeFilename ( module
.GetPath () ),
877 OutputInstallTarget ( sourceFilename
,
879 module
.installBase
);
885 MingwBackend::GetRegistrySourceFiles ()
887 return "bootdata" SSEP
"hivecls.inf "
888 "bootdata" SSEP
"hivedef.inf "
889 "bootdata" SSEP
"hiveinst.inf "
890 "bootdata" SSEP
"hivesft.inf "
891 "bootdata" SSEP
"hivesys.inf";
895 MingwBackend::GetRegistryTargetFiles ()
897 string system32ConfigDirectory
= NormalizeFilename (
898 MingwModuleHandler::PassThruCacheDirectory (
899 "system32" SSEP
"config" SSEP
,
900 installDirectory
) );
901 return system32ConfigDirectory
+ SSEP
"default " +
902 system32ConfigDirectory
+ SSEP
"sam " +
903 system32ConfigDirectory
+ SSEP
"security " +
904 system32ConfigDirectory
+ SSEP
"software " +
905 system32ConfigDirectory
+ SSEP
"system";
909 MingwBackend::OutputRegistryInstallTarget ()
911 string system32ConfigDirectory
= NormalizeFilename (
912 MingwModuleHandler::PassThruCacheDirectory (
913 "system32" SSEP
"config" SSEP
,
914 installDirectory
) );
916 string registrySourceFiles
= GetRegistrySourceFiles ();
917 string registryTargetFiles
= GetRegistryTargetFiles ();
919 "install_registry: %s\n",
920 registryTargetFiles
.c_str () );
922 "%s: %s %s $(MKHIVE_TARGET)\n",
923 registryTargetFiles
.c_str (),
924 registrySourceFiles
.c_str (),
925 system32ConfigDirectory
.c_str () );
927 "\t$(ECHO_MKHIVE)\n" );
929 "\t$(MKHIVE_TARGET) bootdata %s bootdata" SSEP
"hiveinst.inf\n",
930 system32ConfigDirectory
.c_str () );
936 MingwBackend::GenerateInstallTarget ()
938 vector
<string
> vInstallTargetFiles
;
939 GetInstallTargetFiles ( vInstallTargetFiles
);
940 string installTargetFiles
= v2s ( vInstallTargetFiles
, 5 );
941 string registryTargetFiles
= GetRegistryTargetFiles ();
945 installTargetFiles
.c_str (),
946 registryTargetFiles
.c_str () );
947 OutputNonModuleInstallTargets ();
948 OutputModuleInstallTargets ();
949 OutputRegistryInstallTarget ();
955 MingwBackend::GetModuleTestTargets (
956 vector
<string
>& out
) const
958 for ( size_t i
= 0; i
< ProjectNode
.modules
.size (); i
++ )
960 const Module
& module
= *ProjectNode
.modules
[i
];
961 if ( module
.type
== Test
)
962 out
.push_back ( module
.name
);
967 MingwBackend::GenerateTestTarget ()
969 vector
<string
> vTestTargets
;
970 GetModuleTestTargets ( vTestTargets
);
971 string testTargets
= v2s ( vTestTargets
, 5 );
975 testTargets
.c_str () );
981 MingwBackend::GenerateDirectoryTargets ()
983 intermediateDirectory
->CreateRule ( fMakefile
, "" );
984 outputDirectory
->CreateRule ( fMakefile
, "" );
985 installDirectory
->CreateRule ( fMakefile
, "" );