1LUA_INC=c:\lua5.1\include
2LUA_DIR=c:\lua5.1\lua
3LUA_LIBDIR=c:\lua5.1
4LUA_LIB=c:\lua5.1\lua5.1.lib
5
6T=firebird
7
8DRIVER_INCLUDE=
9DRIVER_LIBS=fbclient_ms.lib
10
11OBJS= src\luasql.obj src\ls_$T.obj
12
13.c.obj:
14	cl /c /Fo$@ /O2 /I$(LUA_INC) /D_CRT_SECURE_NO_DEPRECATE $(DRIVER_INCLUDE) $<
15
16src\$T.dll: $(OBJS)
17	link /dll /def:src\$T.def /out:$@ $(OBJS) $(DRIVER_LIBS) $(LUA_LIB)
18
19install:
20	IF NOT EXIST $(LUA_LIBDIR)\luasql mkdir $(LUA_LIBDIR)\luasql
21	copy src\$T.dll $(LUA_LIBDIR)\luasql
22
23clean:
24	del src\$T.dll
25	del src\$T.exp
26	del src\$T.lib
27	del $(OBJS)
28
29