Add quotes around some variable definitions; add a "clean" target.

This commit is contained in:
Guido van Rossum 1998-03-07 05:10:00 +00:00
parent cef85a29f7
commit 2addd2a6da
1 changed files with 10 additions and 5 deletions

View File

@ -25,10 +25,11 @@ def makemakefile(outfp, vars, files, target):
def realwork(vars, files, target): def realwork(vars, files, target):
print "# Makefile for Windows (NT or 95) generated by freeze.py script" print "# Makefile for Windows (NT or 95) generated by freeze.py script"
print print
print "target =", target print 'target = %s' % target
print "pythonhome =", vars['prefix'] print 'pythonhome = "%s"' % vars['prefix']
# XXX The following line is fishy and may need manual fixing # XXX The following line is fishy and may need manual fixing
print "pythonlib =", vars['exec_prefix'] + "/pcbuild/release/python15.lib" print 'pythonlib = "%s"' % (vars['exec_prefix'] +
"/pcbuild/release/python15.lib")
print "subsystem =", vars['subsystem'] print "subsystem =", vars['subsystem']
print print
print "all: $(target).exe" print "all: $(target).exe"
@ -39,11 +40,11 @@ def realwork(vars, files, target):
base = os.path.basename(file) base = os.path.basename(file)
base, ext = os.path.splitext(base) base, ext = os.path.splitext(base)
objects.append(base + ".obj") objects.append(base + ".obj")
print "%s.obj: %s" % (base, file) print '%s.obj: "%s"' % (base, file)
print "\t$(CC) -c $(cdl)", print "\t$(CC) -c $(cdl)",
print "-I$(pythonhome)/Include -I$(pythonhome)/PC \\" print "-I$(pythonhome)/Include -I$(pythonhome)/PC \\"
print "\t\t$(cflags) $(cdebug) $(cinclude) \\" print "\t\t$(cflags) $(cdebug) $(cinclude) \\"
print "\t\t", file print '\t\t"%s"' % file
print print
print "$(target).exe:", print "$(target).exe:",
@ -54,6 +55,10 @@ def realwork(vars, files, target):
print "\\" print "\\"
print "\t\t$(pythonlib) $(lcustom) shell32.lib comdlg32.lib wsock32.lib \\" print "\t\t$(pythonlib) $(lcustom) shell32.lib comdlg32.lib wsock32.lib \\"
print "\t\t-subsystem:$(subsystem) $(resources)" print "\t\t-subsystem:$(subsystem) $(resources)"
print
print "clean:"
print "\t\t-rm *.obj"
print "\t\t-rm $(target).exe"
# Local Variables: # Local Variables:
# indent-tabs-mode: nil # indent-tabs-mode: nil