summary refs log tree commit diff stats
path: root/plugins/lua/makefile.mak
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/lua/makefile.mak')
-rw-r--r--plugins/lua/makefile.mak20
1 files changed, 20 insertions, 0 deletions
diff --git a/plugins/lua/makefile.mak b/plugins/lua/makefile.mak
new file mode 100644
index 00000000..97a7e10b
--- /dev/null
+++ b/plugins/lua/makefile.mak
@@ -0,0 +1,20 @@
+include "..\..\src\makeinc.mak"

+

+DIRENTLIB = ..\..\src\common\dirent-win32.lib

+

+all: lua.obj lua.def

+	link $(LDFLAGS) $(LIBS) /dll /out:xclua.dll $(LUALIB).lib $(DIRENTLIB) /def:lua.def lua.obj 

+

+lua.def:

+	echo EXPORTS > lua.def

+	echo xchat_plugin_init >> lua.def

+	echo xchat_plugin_deinit >> lua.def

+

+lua.obj: lua.c makefile.mak

+	cl $(CFLAGS) /I.. /Dsnprintf=g_snprintf lua.c

+

+clean:

+	del *.obj

+	del *.dll

+	del *.exp

+	del *.lib