3 IDN_PATH=..\..\libidn-1.15
4 OPENSSL_PATH=..\..\openssl-0.9.8k
6 LUA_INCLUDE=$(LUA_PATH)\include
7 LUA_LIB=$(LUA_PATH)\lib\lua5.1.lib
9 IDN_LIB=$(IDN_PATH)\win32\lib\libidn.lib
10 IDN_INCLUDE1=$(IDN_PATH)\lib
11 IDN_INCLUDE2=$(IDN_PATH)\win32\include
12 OPENSSL_LIB=$(OPENSSL_PATH)\out32dll\libeay32.lib
13 OPENSSL_INCLUDE=$(OPENSSL_PATH)\include
17 all: encodings.dll hashes.dll windows.dll
19 install: encodings.dll hashes.dll windows.dll
20 copy /Y *.dll ..\util\
23 del encodings.dll encodings.exp encodings.lib encodings.obj encodings.dll.manifest
24 del hashes.dll hashes.exp hashes.lib hashes.obj hashes.dll.manifest
25 del windows.dll windows.exp windows.lib windows.obj windows.dll.manifest
27 encodings.dll: encodings.c
28 $(CL) encodings.c /I"$(LUA_INCLUDE)" /I"$(IDN_INCLUDE1)" /I"$(IDN_INCLUDE2)" /link "$(LUA_LIB)" "$(IDN_LIB)" /export:luaopen_util_encodings
29 del encodings.exp encodings.lib encodings.obj encodings.dll.manifest
32 $(CL) hashes.c /I"$(LUA_INCLUDE)" /I"$(OPENSSL_INCLUDE)" /link "$(LUA_LIB)" "$(OPENSSL_LIB)" /export:luaopen_util_hashes
33 del hashes.exp hashes.lib hashes.obj hashes.dll.manifest
35 windows.dll: windows.c
36 $(CL) windows.c /I"$(LUA_INCLUDE)" /link "$(LUA_LIB)" dnsapi.lib /export:luaopen_util_windows
37 del windows.exp windows.lib windows.obj windows.dll.manifest