@@ -25,10 +25,11 @@ def makemakefile(outfp, vars, files, target):
2525def realwork (vars , files , target ):
2626 print "# Makefile for Windows (NT or 95) generated by freeze.py script"
2727 print
28- print " target =" , target
29- print " pythonhome =" , vars ['prefix' ]
28+ print ' target = %s' % target
29+ print ' pythonhome = "%s"' % vars ['prefix' ]
3030 # XXX The following line is fishy and may need manual fixing
31- print "pythonlib =" , vars ['exec_prefix' ] + "/pcbuild/release/python15.lib"
31+ print 'pythonlib = "%s"' % (vars ['exec_prefix' ] +
32+ "/pcbuild/release/python15.lib" )
3233 print "subsystem =" , vars ['subsystem' ]
3334 print
3435 print "all: $(target).exe"
@@ -39,11 +40,11 @@ def realwork(vars, files, target):
3940 base = os .path .basename (file )
4041 base , ext = os .path .splitext (base )
4142 objects .append (base + ".obj" )
42- print " %s.obj: %s" % (base , file )
43+ print ' %s.obj: " %s"' % (base , file )
4344 print "\t $(CC) -c $(cdl)" ,
4445 print "-I$(pythonhome)/Include -I$(pythonhome)/PC \\ "
4546 print "\t \t $(cflags) $(cdebug) $(cinclude) \\ "
46- print " \t \t ", file
47+ print ' \t \t "%s"' % file
4748 print
4849
4950 print "$(target).exe:" ,
@@ -54,6 +55,10 @@ def realwork(vars, files, target):
5455 print "\\ "
5556 print "\t \t $(pythonlib) $(lcustom) shell32.lib comdlg32.lib wsock32.lib \\ "
5657 print "\t \t -subsystem:$(subsystem) $(resources)"
58+ print
59+ print "clean:"
60+ print "\t \t -rm *.obj"
61+ print "\t \t -rm $(target).exe"
5762
5863# Local Variables:
5964# indent-tabs-mode: nil
0 commit comments