1 # Makefile for Microsoft compiler statically linking
\rPYVERSION = 2.2
\rPYHOME = \Python$(PYVERSION:.=)
\rPYINCLUDE = -I$(PYHOME)\include
\rPYLIB = /LIBPATH:$(PYHOME)\libs python22.lib
\r\rCFLAGS = $(PYINCLUDE) /Ox /W3 /GX -nologo
\r.SUFFIXES: .exe .dll .obj .c .cpp .pyx
\r\r.pyx.c:
\r $(PYHOME)\Python.exe ../../pyrexc.py $<
\r\rall: main.exe
\r\rclean:
\r -del /Q/F *.obj embedded.h embedded.c main.exe
\r\rmain.exe: main.obj embedded.obj
\r link /nologo $** $(PYLIB) /OUT:main.exe
\r\rembedded.h: embedded.c
\rmain.obj: embedded.h
\r