From b34cff91a39481744107ef0453f8d44ae5c7fb73 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Fri, 25 Aug 2006 08:33:39 +0000 Subject: Move threadframe inside bindings directory, will add more stuff there. --- (limited to 'bindings/threadframe/GNUmakefile.mingw2') diff --git a/bindings/threadframe/GNUmakefile.mingw2 b/bindings/threadframe/GNUmakefile.mingw2 new file mode 100644 index 0000000..f5c0df4 --- /dev/null +++ b/bindings/threadframe/GNUmakefile.mingw2 @@ -0,0 +1,18 @@ +PYTHON:= $(shell python -c "import sys;print '%%d%%d' %% sys.version_info[:2]") + +threadframe.pyd: threadframe.o libpython$(PYTHON).a + dllwrap --dllname threadframe.pyd --driver-name=gcc --def threadframe.def -o threadframe.pyd threadframe.o -s --entry _DllMain@12 --target=i386-mingw32 -L. -lpython$(PYTHON) + +threadframe.o: threadframemodule.c + gcc -I"C:\Program Files\Python$(PYTHON)\include" -O3 -c -o $@ -DNDEBUG $< +libpython$(PYTHON).a: python$(PYTHON).def C:\WINNT\system32\python$(PYTHON).dll + dlltool --dllname python$(PYTHON).dll --def python$(PYTHON).def --output-lib libpython$(PYTHON).a + +python$(PYTHON).def: C:\WINNT\system32\python$(PYTHON).dll + pexports C:\WINNT\system32\python$(PYTHON).dll > python$(PYTHON).def + +clean: + -del threadframe.pyd + -del libpython$(PYTHON).a + -del threadframe.o + -del python$(PYTHON).def -- cgit v0.9.1