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-07-28 01:17:44 +0200
committerberkeviktor@aol.com <berkeviktor@aol.com>2011-07-28 01:17:44 +0200
commit88a9f72d177076566899884e5a2230ae25a1911f (patch)
tree3b56ef20553dc88f1b0fa419a7bd7a36c874f7e9 /plugins/python/makefile.mak
parent1fa63a74016444efc1cc68bca26eb011865348d8 (diff)
parent96caff1fbdf201164339e5e94fde04d8cb7968e8 (diff)
Merge with default
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