summary refs log tree commit diff stats
path: root/plugins/python/makefile.mak
diff options
context:
space:
mode:
authorberkeviktor@aol.com <berkeviktor@aol.com>2011-02-28 19:18:32 +0100
committerberkeviktor@aol.com <berkeviktor@aol.com>2011-02-28 19:18:32 +0100
commit6355e6a76e73dfd3b8f49fcec524e7d2bbb5a11c (patch)
tree3f24aeb80bebcc90465b6e723d9fc10aa5e41d61 /plugins/python/makefile.mak
parentd3330fbe6f3cdcf3cc43550bb61c3393eb7cd794 (diff)
parentdd58a0aa9e29efc87bcdb287b37018c1c6fd132e (diff)
merge with xchat r1490
Diffstat (limited to 'plugins/python/makefile.mak')
-rw-r--r--plugins/python/makefile.mak25
1 files changed, 25 insertions, 0 deletions
diff --git a/plugins/python/makefile.mak b/plugins/python/makefile.mak
new file mode 100644
index 00000000..8cbba3f5
--- /dev/null
+++ b/plugins/python/makefile.mak
@@ -0,0 +1,25 @@
+include "..\..\src\makeinc.mak"
+
+DIRENTLIB = ..\..\src\common\dirent.lib
+TARGET = $(PYTHONOUTPUT)
+
+all: $(TARGET)
+
+python.def:
+	echo EXPORTS > python.def
+	echo xchat_plugin_init >> python.def
+	echo xchat_plugin_deinit >> python.def
+	echo xchat_plugin_get_info >> python.def
+
+python.obj: python.c
+	$(CC) $(CFLAGS) /I.. /Dusleep=_sleep /DPATH_MAX=255 python.c $(GLIB) /I$(PYTHONPATH)\include /DPYTHON_DLL=\"$(PYTHONLIB).dll\"
+
+$(TARGET): python.obj python.def
+	$(LINK) /dll /out:$(TARGET) $(LDFLAGS) python.obj /libpath:$(PYTHONPATH)\libs $(PYTHONLIB).lib $(DIRENTLIB) $(LIBS) /def:python.def
+
+clean:
+	del $(TARGET)
+	del *.obj
+	del python.def
+	del *.lib
+	del *.exp