/**
 * 
 */
package utils;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;

/**
 * @author dlariviere
 * MakefileGenerator is a simple class designed to generate
 * GNU Makefiles in order to easily compile the outputted assembly
 * generated by dsplc. 
 */
public class MakefileGenerator {

	/**
	 * 
	 * @param sourceFilename: assumed to be sourceFilename
	 */
	public void generateMakefile(String sourceFilename) { 
		try {
			PrintWriter writer = new PrintWriter(new File("Makefile"));
			writer.println("all: "); 
			//writer.println("\tgcc -o ")
			
		
		} catch (FileNotFoundException e) {
			System.out.println("Error generating Makefile"); 
			e.printStackTrace();
		} 
	}

}
