def generate_makefile(input_dsf_file, output_dgb_file, output_trace_file, max_n, dgasm_line, dgsim_line):
    """
    Generates a very simple Makefile.
    """
    makefile_template = f"{output_trace_file}:{output_dgb_file}\n" \
                        f"\t{dgsim_line}\n\n" \
                        f"{output_dgb_file}:{input_dsf_file}\n" \
                        f"\t{dgasm_line}\n\n" \
                        f"html:{output_trace_file}\n" \
                        f"\txdg-open {output_trace_file}\n\n" \
                        f"clean:\n" \
                        f"\t rm *.dgb\n" \
                        f"\t rm *.html\n" \
                        f"\t rm *.css\n" 
    
    return makefile_template