- when compiling on windows, override CC=gcc with CC=..../cl_wrapper.pl

and use the Python.h in the lib/windows/python/include directory.
  MSVC++ doesn't like linking with a gcc compiled frozen library.
This commit is contained in:
Frank van Beek 2003-01-04 16:27:26 +00:00
parent 45b243ac47
commit 76f4ae72f3
1 changed files with 5 additions and 0 deletions

View File

@ -26,6 +26,11 @@ def makemakefile(outfp, makevars, files, target):
outfp.write("%s=%s\n" % (key, makevars[key]))
outfp.write("\n\ninclude nan_definitions.mk\n")
outfp.write("ifeq ($(OS),windows)\n")
outfp.write(" CC=$(NANBLENDERHOME)/source/tools/cygwin/cl_wrapper.pl\n")
outfp.write(" CFLAGS=-I../../../../lib/windows/python/include/python2.2/ $(OPT)\n")
outfp.write("endif\n")
outfp.write("\nall: %s\n\n" % libtarget)
deps = []