Comparison

util-src/Makefile.win @ 442:722f63c70a77

Makefile now works on windows with Microsoft's compiler
author Waqas Hussain <waqas20@gmail.com>
date Thu, 27 Nov 2008 21:49:31 +0500
child 1830:dc4d47d91d66
comparison
equal deleted inserted replaced
441:4089b62b510c 442:722f63c70a77
1
2 LUA_PATH=$(LUA_DEV)
3 IDN_PATH=.\libidn-1.9
4 OPENSSL_PATH=.\openssl-0.9.8i
5
6 LUA_INCLUDE=$(LUA_PATH)\include
7 LUA_LIB=$(LUA_PATH)\lib\lua5.1.lib
8
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
14
15 all: encodings.dll hashes.dll
16
17 install: encodings.dll hashes.dll
18 copy /Y *.dll ..\util\
19
20 clean:
21 del encodings.dll encodings.exp encodings.lib encodings.obj
22 del hashes.dll hashes.exp hashes.lib hashes.obj
23
24 encodings.dll: encodings.c
25 cl /LD /nologo encodings.c /I"$(LUA_INCLUDE)" /I"$(IDN_INCLUDE1)" /I"$(IDN_INCLUDE2)" /link "$(LUA_LIB)" "$(IDN_LIB)" /export:luaopen_util_encodings
26
27 hashes.dll: hashes.c
28 cl /LD /nologo hashes.c /I"$(LUA_INCLUDE)" /I"$(OPENSSL_INCLUDE)" /link "$(LUA_LIB)" "$(OPENSSL_LIB)" /export:luaopen_util_hashes
29