You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
500 B
1 line
500 B
# Makefile for Microsoft compiler statically linking
|
|
PYVERSION = 2.2
|
|
PYHOME = \Python$(PYVERSION:.=)
|
|
PYINCLUDE = -I$(PYHOME)\include
|
|
PYLIB = /LIBPATH:$(PYHOME)\libs python22.lib
|
|
|
|
CFLAGS = $(PYINCLUDE) /Ox /W3 /GX -nologo
|
|
.SUFFIXES: .exe .dll .obj .c .cpp .pyx
|
|
|
|
.pyx.c:
|
|
$(PYHOME)\Python.exe ../../pyrexc.py $<
|
|
|
|
all: main.exe
|
|
|
|
clean:
|
|
-del /Q/F *.obj embedded.h embedded.c main.exe
|
|
|
|
main.exe: main.obj embedded.obj
|
|
link /nologo $** $(PYLIB) /OUT:main.exe
|
|
|
|
embedded.h: embedded.c
|
|
main.obj: embedded.h
|