2 # This is the makefile for the bytecode freezing of all modules which
3 # the main file depends on (last argument in importer rule)
5 include nan_definitions.mk
9 TARGETDIR = $(OCGDIR)/blender/bpython/frozen
11 ifeq ($(FREE_WINDOWS),true)
12 export NAN_PYTHON_BINARY = python
19 # fake all and debug targets
25 ifeq ($(FREE_WINDOWS),true)
26 cp $(NAN_PYTHON)/lib/python22.dll .
27 dlltool.exe -v --output-lib $(NAN_PYTHON)/lib/freepy.a \
28 --input-def $(NANBLENDERHOME)/dlltool/python.def \
29 --dllname python22.dll
30 ranlib $(NAN_PYTHON)/lib/freepy.a
32 @[ -d $(TARGETDIR) ] || mkdir -p $(TARGETDIR)
34 $(NAN_PYTHON_BINARY) $(PYFLAGS) freeze.py -d -x os -x pprint -x string -x copy -I $(SRCDIR) -o $(TARGETDIR) $(SRCDIR)/VRMLmain.py
35 $(MAKE) -C $(TARGETDIR)