LUA_PATH = $( LUA_DEV)
IDN_PATH = ..\. .\l ibidn-1.15
OPENSSL_PATH = ..\. .\o penssl-0.9.8k
LUA_INCLUDE = $( LUA_PATH) \i nclude
LUA_LIB = $( LUA_PATH) \l ib\l ua5.1.lib
IDN_LIB = $( IDN_PATH) \w in32\l ib\l ibidn.lib
IDN_INCLUDE1 = $( IDN_PATH) \l ib
IDN_INCLUDE2 = $( IDN_PATH) \w in32\i nclude
OPENSSL_LIB = $( OPENSSL_PATH) \o ut32dll\l ibeay32.lib
OPENSSL_INCLUDE = $( OPENSSL_PATH) \i nclude
CL = cl /LD /MD /nologo
all : encodings .dll hashes .dll windows .dll
install : encodings .dll hashes .dll windows .dll
copy /Y *.dll ..\u til\
clean :
del encodings.dll encodings.exp encodings.lib encodings.obj encodings.dll.manifest
del hashes.dll hashes.exp hashes.lib hashes.obj hashes.dll.manifest
del windows.dll windows.exp windows.lib windows.obj windows.dll.manifest
encodings.dll : encodings .c
$( CL) encodings.c /I" $( LUA_INCLUDE) " /I" $( IDN_INCLUDE1) " /I" $( IDN_INCLUDE2) " /link " $( LUA_LIB) " " $( IDN_LIB) " /export:luaopen_util_encodings
del encodings.exp encodings.lib encodings.obj encodings.dll.manifest
hashes.dll : hashes .c
$( CL) hashes.c /I" $( LUA_INCLUDE) " /I" $( OPENSSL_INCLUDE) " /link " $( LUA_LIB) " " $( OPENSSL_LIB) " /export:luaopen_util_hashes
del hashes.exp hashes.lib hashes.obj hashes.dll.manifest
windows.dll : windows .c
$( CL) windows.c /I" $( LUA_INCLUDE) " /link " $( LUA_LIB) " dnsapi.lib /export:luaopen_util_windows
del windows.exp windows.lib windows.obj windows.dll.manifest