ptolemy.copernicus.c
Class MakeFileGenerator

java.lang.Object
  extended by ptolemy.copernicus.c.MakeFileGenerator
Direct Known Subclasses:
MakefileGenerator_C6000

public class MakeFileGenerator
extends java.lang.Object

A class that generates the makefile for the given class. The generated file has the name (class).make.

Since:
Ptolemy II 2.0
Version:
$Id: MakeFileGenerator.java,v 1.56 2006/03/28 23:58:35 cxh Exp $
Author:
Ankush Varma
Accepted Rating:
Red (ankush)
Proposed Rating:
Red (ankush)

Constructor Summary
MakeFileGenerator()
           
 
Method Summary
static java.lang.String classNameToMakeFileName(java.lang.String className)
          Finds the filename corresponding to this class.
static void generateMakeFile(java.lang.String classPath, java.lang.String className)
          Create the MakeFile.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MakeFileGenerator

public MakeFileGenerator()
Method Detail

classNameToMakeFileName

public static java.lang.String classNameToMakeFileName(java.lang.String className)
Finds the filename corresponding to this class.

Parameters:
className - The name of the class.
Returns:
The corresponding filename as it should be written to the makeFile.

generateMakeFile

public static void generateMakeFile(java.lang.String classPath,
                                    java.lang.String className)
Create the MakeFile.

Parameters:
classPath - The classPath.
className - The class for which the Makefile is to be generated. The makefile will have the name className.make.