summary refs log tree commit diff stats
path: root/plugins/lua/makefile.mak
blob: 97a7e10bdb29a404594cfb4294862689d658e720 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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